Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

87

积分

0

好友

3

主题
1#
发表于 2012-6-12 19:52:42 | 查看: 5762| 回复: 3
RHEL 5.5  X64

10gR2 RAC node 2

SQL> select * from v$version where rownum<3;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production

=====================================================
  1. $ lsnrctl status

  2. LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 12-JUN-2012 15:53:57

  3. Copyright (c) 1991, 2010, Oracle.  All rights reserved.

  4. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
  5. TNS-12541: TNS:no listener
  6. TNS-12560: TNS:protocol adapter error
  7.   TNS-00511: No listener
  8.    Linux Error: 111: Connection refused
复制代码




  1. $ cat /data/oracle/product/10.2.0/db/network/admin/listener.ora
  2. # listener.ora.sjdb1 Network Configuration File: /data/oracle/product/10.2.0/db/network/admin/listener.ora.sjdb1
  3. # Generated by Oracle configuration tools.

  4. LISTENER_SJDB1 =
  5.   (DESCRIPTION_LIST =
  6.     (DESCRIPTION =
  7.       (ADDRESS = (PROTOCOL = TCP)(HOST = sjdb1_vip)(PORT = 1521)(IP = FIRST))
  8.       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.108.15)(PORT = 1521)(IP = FIRST))
  9.     )
  10.   )

  11. SID_LIST_LISTENER_SJDB1 =
  12.   (SID_LIST =
  13.     (SID_DESC =
  14.       (SID_NAME = PLSExtProc)
  15.       (ORACLE_HOME = /data/oracle/product/10.2.0/db)
  16.       (PROGRAM = extproc)
  17.     )
  18.   )
复制代码


  1. show parameter listener

  2. NAME                                 TYPE        VALUE
  3. ------------------------------------ ----------- ------------------------------
  4. local_listener                       string      (ADDRESS = (PROTOCOL = TCP)(HO
  5.                                                  ST = 192.168.108.16)(PORT = 15
  6.                                                  21))
  7. remote_listener                      string      LISTENERS_SJDB
复制代码



  1. $ lsnrctl status LISTENER_SJDB1

  2. LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 12-JUN-2012 15:56:40

  3. Copyright (c) 1991, 2010, Oracle.  All rights reserved.

  4. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sjdb1_vip)(PORT=1521)(IP=FIRST)))
  5. STATUS of the LISTENER
  6. ------------------------
  7. Alias                     LISTENER_SJDB1
  8. Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production
  9. Start Date                08-JUN-2012 15:16:28
  10. Uptime                    4 days 0 hr. 40 min. 11 sec
  11. Trace Level               off
  12. Security                  ON: Local OS Authentication
  13. SNMP                      OFF
  14. Listener Parameter File   /data/oracle/product/10.2.0/db/network/admin/listener.ora
  15. Listener Log File         /data/oracle/product/10.2.0/db/network/log/listener_sjdb1.log
  16. Listening Endpoints Summary...
  17.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.108.16)(PORT=1521)))
  18.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.108.15)(PORT=1521)))
  19. Services Summary...
  20. Service "PLSExtProc" has 1 instance(s).
  21.   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
  22. Service "SJDB" has 2 instance(s).
  23.   Instance "SJDB1", status READY, has 2 handler(s) for this service...
  24.   Instance "SJDB2", status READY, has 1 handler(s) for this service...
  25. Service "SJDBXDB" has 2 instance(s).
  26.   Instance "SJDB1", status READY, has 1 handler(s) for this service...
  27.   Instance "SJDB2", status READY, has 1 handler(s) for this service...
  28. Service "SJDB_XPT" has 2 instance(s).
  29.   Instance "SJDB1", status READY, has 2 handler(s) for this service...
  30.   Instance "SJDB2", status READY, has 1 handler(s) for this service...
  31. The command completed successfully
复制代码



问题:监听器是动态注册的,那么使用lsnrctl status 看不到呢
2#
发表于 2012-6-12 20:00:48
"监听器是动态注册的,那么使用lsnrctl status 看不到呢"

不理解你的这句话

回复 只看该作者 道具 举报

3#
发表于 2012-6-12 21:43:34
其实说白了,就是我不理解$ lsnrctl status 与 $ lsnrctl status LISTENER_SJDB1 的区别

请解答下,谢谢~

回复 只看该作者 道具 举报

4#
发表于 2012-6-12 22:45:19
我的理解是
lsnrctl status  默认查看的监听名字叫  LISTENER

因为你没有配置 LISTENER这个名字的监听 ,当然提示no listener

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-25 23:46 , Processed in 0.046038 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569