您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

解决连接Oracle 11g报ORA-01034和ORA-27101的错误和报ORA-00119和ORA-00132这个问题

bubuko 2022/1/25 20:08:03 其他 字数 7065 阅读 893 来源 http://www.bubuko.com/infolist-5-1.html

错误出现的场景: 使用sqlplus连接oracle,提示ORA-01034和ORA-27101,具体内容如下: ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Process ...

  错误出现的场景:

   使用sqlplus连接oracle,提示ORA-01034和ORA-27101,具体内容如下:

ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Serial number: 0

解决方法:
使用cmd命令执行以下:

  1、sqlplus /nolog

  2、conn / as sysdba

  3、startup

C:\Users\kk>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 7 17:16:47 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
 ORACLE 例程已经启动。
 Total System Global Area 3423965184 bytes
 Fixed Size                  2180544 bytes
 Variable Size            2684357184 bytes
 Database Buffers          721420288 bytes
 Redo Buffers               16007168 bytes
 数据库装载完毕。
 数据库已经打开。

如果出现以上的提示,那么重启pl/sql,应该就能重新连接了,若不行则试多几次

C:\Users\kk>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 7 17:16:47 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ora-00119:invalid specification for system parameter
ora-00132:syntax error or unresolved network name LISTENER_ORCL

如果等了一会,出现以上的提示,那么又有另外一种错误了:oracle没有启动

解决方法:
使用cmd命令执行以下:

  1、sqlplus /nolog

  2、conn / as sysdba

  3、create spfile from pfile = ‘E:\app\kk\admin\orcl\pfile\init.ora.824201901221‘

其中,上面的第三点:‘E:\app\kk\admin\orcl\pfile\init.ora.824201901221‘,文件目录是在安装Oracle安装的文件目录中找(根据实际情况来修改)

还有需要注意的,init.ora.824201901221文件中的这一变量(local_listener)的值需要换成tnsnames.ora中:

local_listener="(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))"

技术分享图片

 

 技术分享图片

再这些修改完后,再执行第三步命令

 ORACLE 例程已经启动。
 Total System Global Area 3423965184 bytes
 Fixed Size                  2180544 bytes
 Variable Size            2684357184 bytes
 Database Buffers          721420288 bytes
 Redo Buffers               16007168 bytes
 数据库装载完毕。
 数据库已经打开。

则可重启pl/sql,重新连接,就可以连接上,不行就行重试几次



解决连接Oracle 11g报ORA-01034和ORA-27101的错误和报ORA-00119和ORA-00132这个问题

原文:https://www.cnblogs.com/liangxiaojin/p/12420599.html


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶