監聽重啟之後的短時間會報錯ORA 12516

2021-08-27 15:57:01 字數 2683 閱讀 2301

監聽剛剛重啟之後的一段時間會報錯:

sql> conn system/www@testrac

error:

ora-12516: tns: 監聽程式找不到符合協議堆疊要求的可用處理程式

此時檢視監聽狀態:

[oracle@ractest4 ~]$ lsnrctl status

lsnrctl for linux: version 11.1.0.6.0 - production on 26-dec-2013 09:15:20

connecting to (address=(protocol=tcp)(host=)(port=1521))

status of the listener

------------------------

alias listener_ractest4

version tnslsnr for linux: version 11.1.0.6.0 - production

start date 26-dec-2013 09:14:18

uptime 0 days 0 hr. 1 min. 2 sec

trace level off

security on: local os authentication

snmp off

listening endpoints summary...

(description=(address=(protocol=tcp)(host=20.18.15.170)(port=1521)))

(description=(address=(protocol=tcp)(host=20.18.15.135)(port=1521)))

services summary...

service "rac" has 1 instance(s).

instance "rac1", status ready, has 1 handler(s) for this service...

service "racxdb" has 1 instance(s).

instance "rac1", status ready, has 1 handler(s) for this service...

service "rac_xpt" has 1 instance(s).

instance "rac1", status ready, has 1 handler(s) for this service...

the command completed successfully

發現本節點的例項還未動態註冊進來,這種報錯會持續到例項完成動態註冊:

[oracle@ractest4 ~]$ lsnrctl status

lsnrctl for linux: version 11.1.0.6.0 - production on 26-dec-2013 09:15:49

connecting to (address=(protocol=tcp)(host=)(port=1521))

status of the listener

------------------------

alias listener_ractest4

version tnslsnr for linux: version 11.1.0.6.0 - production

start date 26-dec-2013 09:14:18

uptime 0 days 0 hr. 1 min. 31 sec

trace level off

security on: local os authentication

snmp off

listening endpoints summary...

(description=(address=(protocol=tcp)(host=20.18.15.170)(port=1521)))

(description=(address=(protocol=tcp)(host=20.18.15.135)(port=1521)))

services summary...

service "rac" has 2 instance(s).

instance "rac1", status ready, has 1 handler(s) for this service...

instance "rac2", status ready, has 2 handler(s) for this service...

service "racxdb" has 2 instance(s).

instance "rac1", status ready, has 1 handler(s) for this service...

instance "rac2", status ready, has 1 handler(s) for this service...

service "rac_xpt" has 2 instance(s).

instance "rac1", status ready, has 1 handler(s) for this service...

instance "rac2", status ready, has 2 handler(s) for this service...

the command completed successfully

例項完成動態註冊之後,連線時不再報錯ora-12516。

所有車的過橋最短時間

今晚幫朋友助攻遇到了一道題,當時有思路但是沒有寫出來,後來結合牛客網上的解答寫了出來,也不知道具體能ac多少道題,先放在這裡等大家指點吧 有n輛車藥陸續通過一座最大承重為w的橋,其中第i輛車的重量為w i 通過橋的時間為t i 要求第i輛車上橋的時間不早於第i 1輛車上橋的時間,任意時刻橋上所有車輛...

短時間建立部落格內容的5個方法

能否堅持寫部落格的重要原因就是部落格內容,有些生活類的部落格每天過的雞毛蒜皮,寫了也沒有意義,除非你發點自己的生活照,搞的像網路紅人一樣。平淡的事情不 值得關注,我們也不希望 生活。那我們的部落格每天或者週期性有更新,內容匱乏的時候怎麼辦呢,是不是有時候跟我一樣,在開啟部落格登陸後台準備寫部落格的時...

socket短時間內重連需注意的問題

socket短時間內重連需注意的問題 設定好監聽socket後,將socket的屬性設定為可重複使用位址,如 建立監聽socket socketlisten new socket addressfamily.internetwork,sockettype.stream,protocoltype.tc...