20121203 监听启不来

---重启数据库后监听启动不起来

根据日志发现是listener.ora中配置的$ORACLE_HOME有问题,修改后重启成功


oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> sqlplus / as sysdba;

SQL*Plus: Release 11.1.0.7.0 - Production on Sun Dec 2 23:01:52 2012

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size                  2154176 bytes
Variable Size            1023410496 bytes
Database Buffers          570425344 bytes
Redo Buffers                7421952 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> lsnrctl start

LSNRCTL for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production on 02-DEC-2012 23:02:42

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

Starting /oracle/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
System parameter file is /oracle/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /oracle/app/diag/tnslsnr/mds/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.65.2.9)(PORT=1521)))
TNS-01201: Listener cannot find executable /opt/oracle/app/oracle/product/11.1.0/db_1/bin/oracle for SID mds

Listener failed to start. See the error message(s) above...

oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> more listener.ora
# listener.ora Network Configuration File: /oracle/app/product/11g/db/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.65.2.9)(PORT = 1521))
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = ora11g)
      (ORACLE_HOME = /opt/oracle/app/oracle/product/11.1.0/db_1)
      (SID_NAME = mds)
    )
  )
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin>
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin>
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> ls
20121203listener.ora        listener.ora_bak_1121       samples                     tnsnames.ora
listener.ora                listener10111912AM0926.bak  shrept.lst                  tnsnames10111912AM0926.bak
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> more listener.ora
# listener.ora Network Configuration File: /oracle/app/product/11g/db/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.65.2.9)(PORT = 1521))
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = ora11g)
      (ORACLE_HOME = /opt/oracle/app/oracle/product/11.1.0/db_1)
      (SID_NAME = mds)
    )
  )
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> tail -f /oracle/app/diag/tnslsnr/mds/listener/alert/log.xml
 host_addr='UNKNOWN'>
 <txt>TNS-01201: Listener cannot find executable /opt/oracle/app/oracle/product/11.1.0/db_1/bin/oracle for SID mds
 </txt>
</msg>
<msg time='2012-12-02T23:02:42.619-05:45' org_id='oracle' comp_id='tnslsnr'
 type='UNKNOWN' level='16' host_id='mds'
 host_addr='UNKNOWN'>
 <txt>No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.65.2.9)(PORT=1521)))
 </txt>
</msg>

^Coracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> cd /opt/oracle/app/oracle/product/11.1.0/db_1/bin/oracle
ksh: /opt/oracle/app/oracle/product/11.1.0/db_1/bin/oracle:  not found.
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> cd $ORACLE_HOME
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1> PWD
ksh: PWD:  not found.
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1> pwd
/oracle/app/oracle/product/11.1.0/db_1
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1> cd /opt/oracle/app/oracle/product/11.1.0/db_1
ksh: /opt/oracle/app/oracle/product/11.1.0/db_1:  not found.
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1> cd /oracle/app/oracle/product/11.1.0/db_1/network/admin
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> ls
20121203listener.ora        listener.ora_bak_1121       samples                     tnsnames.ora
listener.ora                listener10111912AM0926.bak  shrept.lst                  tnsnames10111912AM0926.bak
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> vi listener.ora
"listener.ora" 17 lines, 449 characters
# listener.ora Network Configuration File: /oracle/app/product/11g/db/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.65.2.9)(PORT = 1521))
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = ora11g)
      (ORACLE_HOME = /oracle/app/oracle/product/11.1.0/db_1)
      (SID_NAME = mds)
    )
  )
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"listener.ora" 17 lines, 445 characters
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> ls
20121203listener.ora        listener.ora_bak_1121       samples                     tnsnames.ora
listener.ora                listener10111912AM0926.bak  shrept.lst                  tnsnames10111912AM0926.bak
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin> lsnrctl start

LSNRCTL for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production on 02-DEC-2012 23:09:40

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

Starting /oracle/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
System parameter file is /oracle/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /oracle/app/diag/tnslsnr/mds/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.65.2.9)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.65.2.9)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
Start Date                02-DEC-2012 23:09:41
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File   /oracle/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File         /oracle/app/diag/tnslsnr/mds/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.65.2.9)(PORT=1521)))
Services Summary...
Service "ora11g" has 1 instance(s).
  Instance "mds", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
oracle:mds:/oracle/app/oracle/product/11.1.0/db_1/network/admin>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值