lsnrctl status区分静态注册与动态注册
2012-02-21 13:06
274 查看
unknow:静态注册
ready或blocked:动态注册
a、如果先启动监听,后启动数据库
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下既有动态注册又有静态注册
(Service "PLSExtProc" 是在 listener.ora 文件中为数据库实例缺省配置的,允许PL/SQL包访问外部程序;
Service "orcl" 也是在 listener.ora 文件中配置,是每个数据库连接使用的标准模式;
Service "orclXDB" 是Oracle 9i以后版本创建数据库时默认包含的XML DB特性,提供http、ftp等服务,在初始化文spfile(或pfile)中定义)
b、重启监听
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service..
Service "orcl" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl1" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听失败
c、删除listener.ora,重启监听
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MICROSOF-3033D5)(PORT=1521)))
The listener supports no services
The command completed successfully
从显示信息可以看出这种情况下动态注册监听和静态注册监听都失败
等待片刻(1min)。。。。
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听成功,pomn定时向监听器注册
d、修改listener.ora为SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:/oradata/orcl)
)
)重启监听
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听失败,静态注册数据库实例失败
等待片刻(1min)。。。。
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听成功,pomn定时向监听器注册
总结
重启监听并不一定都造成动态注册监听的失败:如果listener.ora文件被删除时,这种现象只是暂时的,oracle中pmon进程会定时像监听器动态注册(个人观点)
ready或blocked:动态注册
a、如果先启动监听,后启动数据库
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下既有动态注册又有静态注册
(Service "PLSExtProc" 是在 listener.ora 文件中为数据库实例缺省配置的,允许PL/SQL包访问外部程序;
Service "orcl" 也是在 listener.ora 文件中配置,是每个数据库连接使用的标准模式;
Service "orclXDB" 是Oracle 9i以后版本创建数据库时默认包含的XML DB特性,提供http、ftp等服务,在初始化文spfile(或pfile)中定义)
b、重启监听
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service..
Service "orcl" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl1" has 1 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听失败
c、删除listener.ora,重启监听
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MICROSOF-3033D5)(PORT=1521)))
The listener supports no services
The command completed successfully
从显示信息可以看出这种情况下动态注册监听和静态注册监听都失败
等待片刻(1min)。。。。
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听成功,pomn定时向监听器注册
d、修改listener.ora为SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:/oradata/orcl)
)
)重启监听
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听失败,静态注册数据库实例失败
等待片刻(1min)。。。。
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
从显示信息可以看出这种情况下动态注册监听成功,pomn定时向监听器注册
总结
重启监听并不一定都造成动态注册监听的失败:如果listener.ora文件被删除时,这种现象只是暂时的,oracle中pmon进程会定时像监听器动态注册(个人观点)
相关文章推荐
- lsnrctl status区分静态注册与动态注册
- 使用lsnrctl status命令区分动态注册,静态注册
- BroadcastReceiver的两种注册方式(静态注册和动态注册)
- 关于动态语言和静态语言、强类型定义语言和弱类型定义语言的概念区分
- Android Studio使用JNI (静态注册和动态注册jni函数)
- Oracle 动态/静态监听注册
- oracle监听静态注册和动态注册相关知识整理
- Oracle Listener 动态注册 与 静态注册
- 关于PHP-Zend framework2 框架 学习过程。 阅前须知: ZF2中的配置文件是可以静态文件配置来注册和通过相关函数动态注册。 1.EventManager(事件驱动),关于事件驱动,在ZF2相关资料没有详细说明,可以参考ANDROID的事件驱动,MFC的消息响应/事件驱动。
- Android广播的静态与动态注册
- oracle动态注册和静态注册监听器
- oracle监听 动态注册与静态注册
- Android的广播Receiver动态注册和静态注册示例
- 简单区分:弱类型语言/强类型语言,动态语言/静态语言,解释型语言/编译型语言
- Android jni 静态注册 和动态注册
- 初识JNI(二)-静态注册和动态注册
- ORACLE 监听动态注册与静态注
- 什么是动态网页和静态网页?怎么区分静态和动态的网页
- spring bean装配 注册动态工厂和静态工厂
- Oracle Listener 动态注册 与 静态注册