【Oracle】ORA-12514: TNS: 監聽程序當前無法識別連接描述符中請求的服務
早上使用PL/SQL連接Oracle的時候,報錯如下
解決辦法:
找到文件listener.ora,新增以下紅色區域,註意:路徑需要根據自己的Oracle安裝路徑自行設置
# listener.ora Network Configuration File: D:\app\OLIVER\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\app\OLIVER\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\OLIVER\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\app\OLIVER\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
ADR_BASE_LISTENER = D:\app\OLIVER
設置完成後以管理員的方式打開cmd,使用命令重啟監聽服務即可
【Oracle】ORA-12514: TNS: 監聽程序當前無法識別連接描述符中請求的服務