問題:
ORA 12154:TNS:無法解析指定的連接標識符
安裝了ORACLE10G,配置本地NEI服務名,測試連接不通過 顯示
正在連接...ORA-12541: TNS: 無監聽程序
測試未成功。使用PL/SQL Developer登陸,提示ORA 12154:TNS:無法解析指定的連接標識符
LISTEN與ORACLE服務已經全部啓動了,這是爲什麼??
1. Open the ""<OracleHome>/network/admin/listener.ora" file in the host,and you will see:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
2. Add the following lines after the 7th line in the above
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(SID_NAME = ORACLE)
)
3. At last the content of the file become to the following section:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = ORACLE)
(ORACLE_HOME = D:/oracle/product/10.2.0/db_1)
(SID_NAME = ORACLE)
)
)
4. Save the file and restart the TNSListener service in the host. That's OK!