Oracle DBA之配置静态监听(listener registered statically)

 (1)listener.ora

 本次实验将配置静态监听到listener L1上,项目SID_LIST_L1为L1的静态监听配置信息:


(2)listener.ora文件编辑好后,使用reload重新读取该配置文件(reload同时也会重新注册动态监听):

RELOAD

Purpose

Use the RELOAD command to reread the listener.ora file. This command enables you to add or change statically configured services without actually stopping the listener.

In addition, the database services, instances, service handlers, and listening endpoints that were dynamically registered with the listener will be unregistered and subsequently registered again.

http://download.oracle.com/docs/cd/A97630_01/network.920/a96581/lsnrctl.htm


可以看到状态为UNKNOWN的静态监听已经起起来来了,而状态为READY的动态监听由于重新注册存在一定延时,所以还没起起来。
等上一段时间后,我们发现动态监听也起起来了。

(3)以scott用户进行测试:

测试的时候报了个ORA-12518的错:

 

以sys用户登录进去,发现是dispatchers设置有问题:

重设dispatchers:

(4)以scott用户进行再测试,问题解决:

(5)总结

配置静态监听需要先在listener.ora文件中配置一条SID_LIST_listenername的条目,然后需要用reload重新读取配置文件,碰到“监听程序无法分发客户机连接”的错误时,需要设置dispatchers参数。

Ref:

http://www.51testing.com/?uid-117986-action-viewspace-itemid-197431

http://download.oracle.com/docs/cd/A97630_01/network.920/a96581/lsnrctl.htm

http://download.oracle.com/docs/cd/B13789_01/network.101/b10775/listenercfg.htm

posted @ 2011-07-25 00:35  生活不是用来挥霍的  阅读(225)  评论(0编辑  收藏  举报