轉載請注明出處:http://blog.csdn.net/dongdong9223/article/details/50728536
本文出自【我是干勾魚的博客】
使用PL/SQL developer工具連接oracle,登陸的時候報錯:
ORA-12154:TNS:could not resolve the connect identifier specified
如圖:
可是使用命令行登陸卻沒有問題。應該是PL/SQL developer工具有的地方配置的不正確。試了一下,須要在PL/SQL developer界面中,點擊:
Tools -> Preferences
如圖:
在界面中。如圖:
須要配置“Oracle Home”和“OCI library”兩項。
當中“Oracle Home”設置oracle安裝位置,比方:
D:\oracle\product\10.2.0\db_1
“OCI library”是oracleclient位置,須要安裝client,然后將其位置指定,比方:
D:\oracle\product\10.2.0\db_1\BIN\oci.dll
有的時候“OCI library”能夠不填,可是“Oracle Home”必須要填。
填完后PL/SQL developer就能夠連接oracle了。