如果連接時候變得較慢 查看Oracle日志記錄,可能是因為此文件太大,超過2G,
需要定期清理,(如果多用戶,記得用root,可能沒權(quán)限)
查看listener.log?
find / -name listener.log
經(jīng)查看,竟然高達2G得日志數(shù)據(jù),由于一些老舊的OS不支持2GB以上的文件,故當(dāng)listener.log文件
超過2GB時,會出現(xiàn)無法處理新的連接,新的操作系統(tǒng)雖然不會出現(xiàn)這個問題,但我們依然需要對其
進行定期處理清理。
Listener log日志文件處理
[oracle@localhost home]$ lsnrctl LSNRCTL> set log_status off Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) LISTENER parameter "log_status" set to OFF The command completed successfully LSNRCTL> show log_status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) LISTENER parameter "log_status" set to OFF The command completed successfully LSNRCTL> exit [oracle@localhost home]$ find -name listener.log home/oracle/app/oracle/diag/tnslsnr/localhost/listener/trace/listener.log [oracle@localhost ~]$ cd /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/trace/ [oracle@localhost trace]$ mv listener.log listener.log.20191127 [oracle@localhost trace]$ ls listener.log.20191127 ora_2617_140154513196800.trc [oracle@localhost trace]$ lsnrctl LSNRCTL> set log_status on Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) LISTENER parameter "log_status" set to ON The command completed successfully LSNRCTL> show log_status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) LISTENER parameter "log_status" set to ON The command completed successfully LSNRCTL> reload Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) The command completed successfully LSNRCTL> exit [oracle@localhost trace]$
分享題目:處理Oracle監(jiān)聽文件listener.log問題-創(chuàng)新互聯(lián)
鏈接分享:http://aaarwkj.com/article42/ccddhc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供移動網(wǎng)站建設(shè)、品牌網(wǎng)站制作、App開發(fā)、微信小程序、網(wǎng)站導(dǎo)航、品牌網(wǎng)站設(shè)計
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)