如何啟動 oracle 監(jiān)聽器?檢查監(jiān)聽器狀態(tài):使用命令 lsnrctl status。啟動監(jiān)聽器:使用命令 lsnrctl start。驗(yàn)證監(jiān)聽器狀態(tài):再次使用命令 lsnrctl status。
如何啟動 Oracle 監(jiān)聽器?
啟動步驟:
檢查監(jiān)聽器狀態(tài):使用命令 lsnrctl status 檢查監(jiān)聽器狀態(tài)。如果監(jiān)聽器未運(yùn)行,將顯示以下錯誤消息:
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 29-JAN-2023 10:21:07 Copyright (c) 1991, 2017, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))) TNS-12541: TNS:no listener
登錄后復(fù)制
啟動監(jiān)聽器:使用命令 lsnrctl start 啟動監(jiān)聽器。如果命令成功執(zhí)行,將顯示以下輸出:
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 29-JAN-2023 10:21:07 Copyright (c) 1991, 2017, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))) Starting /home/<a style="color:#f60; text-decoration:underline;" href="https://www.php.cn/zt/15715.html" target="_blank">oracle</a>/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
登錄后復(fù)制
驗(yàn)證監(jiān)聽器狀態(tài):再次使用命令 lsnrctl status 驗(yàn)證監(jiān)聽器是否已成功啟動。輸出將顯示監(jiān)聽器正在運(yùn)行:
LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 29-JAN-2023 10:21:07 Copyright (c) 1991, 2017, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))) Status of the LISTENER ------------------------ Alias LISTENER Version 12.2.0.1.0 Start Date 29-JAN-2023 10:21:07 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Default Service orcl Listener Parameter File /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
登錄后復(fù)制