轉(zhuǎn)載自:https://yq.aliyun.com/articles/28161
摘要: oracle 提供了lsnrctl reload 命令,在下面兩種情況 1 修改listener.ora 2 修改sqlnet.ora 之后又不想停止監(jiān)聽(tīng),可以考慮lsnrctl reload命令! reload命令會(huì)重新讀取listener.ora的內(nèi)容,這個(gè)命令讓用戶(hù)不停止監(jiān)聽(tīng)器的情況下,改變監(jiān)聽(tīng)器的配置。
oracle 提供了lsnrctl reload 命令,在下面兩種情況
1 修改listener.ora
2 修改sqlnet.ora
之后又不想停止監(jiān)聽(tīng),可以考慮lsnrctl reload命令!
reload命令會(huì)重新讀取listener.ora的內(nèi)容,這個(gè)命令讓用戶(hù)不停止監(jiān)聽(tīng)器的情況下,改變監(jiān)聽(tīng)器的配置。但是對(duì)于sqlnet.ora的修改考慮一下情況:
1 如果之前sqlnet.ora沒(méi)有被當(dāng)前的監(jiān)聽(tīng)器使用,這時(shí)必須關(guān)閉然后重啟監(jiān)聽(tīng)!
2 如果之前正在使用sqlnet.ora,那么lsnrctl reload 是比較快的方式。當(dāng)前已經(jīng)建立的連接不會(huì)收到影響,動(dòng)態(tài)監(jiān)聽(tīng)服務(wù)完成的非???,也幾乎不受影響。
官方對(duì)于lsnrctl reload的解釋?zhuān)?/div>
Use the RELOAD command to reread the listener.ora file. This command enables you to add or change statically configured services without actually stopping the listener.
In addition, the database services, instances, service handlers, and listening endpoints that were dynamically registered with the listener will be unregistered and subsequently registered again.
意思和上面解釋的差不多,在生產(chǎn)環(huán)境中對(duì)于sqlnet.ora文件的修改,保持必要的謹(jǐn)慎。之前做實(shí)驗(yàn)進(jìn)行l(wèi)snrctl reload 并未達(dá)到理想的效果。在生產(chǎn)庫(kù)上執(zhí)行的時(shí)候是選擇了lsnrctl start/stop.
這兩步操作的時(shí)間是很短的,3-4秒完成關(guān)閉和重啟操作。
新聞名稱(chēng):lsnrctlreload命令簡(jiǎn)介
文章URL:http://jinyejixie.com/article0/ggciio.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、App設(shè)計(jì)、搜索引擎優(yōu)化、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)、電子商務(wù)、App開(kāi)發(fā)
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源:
創(chuàng)新互聯(lián)