状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist

连接Oracle服务器提示:状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist

状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist_第1张图片

解决办法:

1.确认Oracle相关服务已启动:

状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist_第2张图片

2.修改pfile文件:

pfile根据Oracle安装的路径而定
状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist_第3张图片

3.pfile文件修改内容:

找到下图标注位置
######################
# Network Registration
######################
local_listener=”(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))”
状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist_第4张图片

4.找到tnsnames.ora文件:

D:\Oracle\app\hp\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
将下图中标注内容复制到步骤3中pfile文件中
状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist_第5张图片

5.执行以下命令:

sqlplus /nolog
conn system/manager as sysdba
startup
startup pfile=’D:\Oracle\app\hp\admin\orcl\pfile\init.ora.914201714171’
状态: 失败 -测试失败: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist_第6张图片

你可能感兴趣的:(Oracle)