您好,登錄后才能下訂單哦!
需要必須掌握的命令,上周遇到了一個小問題,就是需要重啟數(shù)據(jù)庫監(jiān)聽,有的同學(xué)竟然使用oracle用戶重啟監(jiān)聽,原理就搞錯了怎么行。以下操作都需要再grid用戶下進行操作。
1、查看監(jiān)聽狀態(tài)
<roidb2:+ASM2:/home/grid>$srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): roidb1,roidb2
<roidb2:+ASM2:/home/grid>$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node roidb2
<roidb2:+ASM2:/home/grid>$
2、關(guān)閉監(jiān)聽
<roidb2:+ASM2:/home/grid>$srvctl stop listener -n roidb1
<roidb2:+ASM2:/home/grid>$srvctl status listener -n roidb1
Listener LISTENER is enabled on node(s): roidb1
Listener LISTENER is not running on node(s): roidb1
<roidb2:+ASM2:/home/grid>$
<roidb2:+ASM2:/home/grid>$srvctl stop scan_listener
<roidb2:+ASM2:/home/grid>$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
<roidb2:+ASM2:/home/grid>$
3、啟動監(jiān)聽
<roidb2:+ASM2:/home/grid>$srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): roidb1,roidb2
<roidb2:+ASM2:/home/grid>$srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node roidb2
<roidb2:+ASM2:/home/grid>$
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。