Chinaunix首页 | 论坛 | 博客
  • 博客访问: 251056
  • 博文数量: 59
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 698
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-19 21:17
文章分类

全部博文(59)

文章存档

2009年(14)

2008年(45)

我的朋友

分类: Oracle

2008-11-18 22:50:19

动态注册
 
监听文件内容如下:
LISTENER =
  (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora10g)(PORT = 1522))
  )
SID_LIST_LISTENER =
  (SID_LIST =
     (SID_DESC =
       (ORACLE_HOME = /oracle/10g/db)
       (GLOBAL_DBNAME= antiper)
       (SID_NAME=antiper)
      )
)

PMON默认只会动态注册1521的端口,而如果要动态注册非默认的1521端口,那么需要设定local_listener参数。
两种方式指定
1)
SQL> alter system set local_listener='(DESCRIPTION =(ADDRESS = (PROTOCOL=TCP)(HOST=ora10g)(PORT =1522)))';
2)在tnsnames.ora中指定
LISTENER =
  (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora10g)(PORT = 1522))
  )
  然后设置alter system set local_listener='listener';
3)使用上述任一种方式设置后,手工注册
   alter system register;
4)查看状态
   lsnrctl status
 
Service "antiper" has 2 instance(s).
  Instance "antiper", status UNKNOWN, has 1 handler(s) for this service...
  Instance "antiper", status READY, has 1 handler(s) for this service...
 
注意:动态注册的端口和listener.ora中监听的名字是一样的
     如果在tnsnames.ora设置时需要指定监听的名字与listener.ora中指定监听的名字一致的。
阅读(632) | 评论(0) | 转发(0) |
0

上一篇:oracle 8i恢复

下一篇:不完全恢复

给主人留下些什么吧!~~