ITPub博客

首页 > 数据库 > Oracle > ORA-01034: ORACLE not available

ORA-01034: ORACLE not available

原创 Oracle 作者:yaweidt 时间:2019-02-25 16:19:38 0 删除 编辑


SQL> select * from v$instance;

select * from v$instance

*

ERROR at line 1:

ORA-01034: ORACLE not available

Process ID: 0

Session ID: 0 Serial number: 0


报这个错误,查看本机的监听情况

[oracle@localhost ~]$ lsnrctl status


LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 25-FEB-2019 11:02:52


Copyright (c) 1991, 2013, Oracle.  All rights reserved.


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

TNS-12541: TNS:no listener

 TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   Linux Error: 111: Connection refused

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))

TNS-12541: TNS:no listener

 TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   Linux Error: 111: Connection refused



开启监听


[oracle@localhost ~]$ lsnrctl start


LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 25-FEB-2019 11:03:04


Copyright (c) 1991, 2013, Oracle.  All rights reserved.


Starting /app/oracle/11204/bin/tnslsnr: please wait...


TNSLSNR for Linux: Version 11.2.0.4.0 - Production

System parameter file is /app/oracle/11204/network/admin/listener.ora

Log messages written to /app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1)(PORT=1521)))


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production

Start Date                25-FEB-2019 11:03:06

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /app/oracle/11204/network/admin/listener.ora

Listener Log File         /app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1)(PORT=1521)))

The listener supports no services

The command completed successfully


查看~/.bash_profile的ORACLE_SID是否于数据库相同


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16642052/viewspace-2636929/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-08-02

  • 博文量
    6
  • 访问量
    26991