lsnrctl status区分静态注册与动态注册
unknow:靜態(tài)注冊(cè)
ready或blocked:動(dòng)態(tài)注冊(cè)
a、如果先啟動(dòng)監(jiān)聽,后啟動(dòng)數(shù)據(jù)庫(kù)
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
從顯示信息可以看出這種情況下既有動(dòng)態(tài)注冊(cè)又有靜態(tài)注冊(cè)
?(Service "PLSExtProc" 是在 listener.ora 文件中為數(shù)據(jù)庫(kù)實(shí)例缺省配置的,允許PL/SQL包訪問外部程序;
??? Service "orcl" 也是在 listener.ora 文件中配置,是每個(gè)數(shù)據(jù)庫(kù)連接使用的標(biāo)準(zhǔn)模式;
??? Service "orclXDB" 是Oracle 9i以后版本創(chuàng)建數(shù)據(jù)庫(kù)時(shí)默認(rèn)包含的XML DB特性,提供http、ftp等服務(wù),在初始化文spfile(或pfile)中定義)
b、重啟監(jiān)聽
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
從顯示信息可以看出這種情況下動(dòng)態(tài)注冊(cè)監(jiān)聽失敗
c、刪除listener.ora,重啟監(jiān)聽
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MICROSOF-3033D5)(PORT=1521)))
The listener supports no services
The command completed successfully
從顯示信息可以看出這種情況下動(dòng)態(tài)注冊(cè)監(jiān)聽和靜態(tài)注冊(cè)監(jiān)聽都失敗
等待片刻(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
從顯示信息可以看出這種情況下動(dòng)態(tài)注冊(cè)監(jiān)聽成功,pomn定時(shí)向監(jiān)聽器注冊(cè)
?
d、修改listener.ora為SID_LIST_LISTENER =
? (SID_LIST =
??? (SID_DESC =
????? (PROGRAM = extproc)
????? (SID_NAME = PLSExtProc)
????? (ORACLE_HOME = D:/oradata/orcl)
??? )
? )重啟監(jiān)聽
Service "PLSExtProc" has 1 instance(s).
? Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
從顯示信息可以看出這種情況下動(dòng)態(tài)注冊(cè)監(jiān)聽失敗,靜態(tài)注冊(cè)數(shù)據(jù)庫(kù)實(shí)例失敗
等待片刻(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
從顯示信息可以看出這種情況下動(dòng)態(tài)注冊(cè)監(jiān)聽成功,pomn定時(shí)向監(jiān)聽器注冊(cè)
總結(jié)
重啟監(jiān)聽并不一定都造成動(dòng)態(tài)注冊(cè)監(jiān)聽的失敗:如果listener.ora文件被刪除時(shí),這種現(xiàn)象只是暫時(shí)的,oracle中pmon進(jìn)程會(huì)定時(shí)像監(jiān)聽器動(dòng)態(tài)注冊(cè)(個(gè)人觀點(diǎn))
總結(jié)
以上是生活随笔為你收集整理的lsnrctl status区分静态注册与动态注册的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows 7系统如何重装或安装IE
- 下一篇: 以最短的宕机时间升级到Oracle 10