我在Windows服务器上运行了Oracle 11,并且我登录到尝试使用SQL Plus的同一服务器上.当我尝试连接时,即使TNSPING和其他各种诊断看起来没问题,我也会得到ORA-12154.
谁有人建议为什么?下面的大量详细信息.
如果我像这样使用EZCONNECT,我可以使用sqlplus ..
sqlplus EST/EST@192.168.10.15/ORCL
Run Code Online (Sandbox Code Playgroud)
...但是如果我尝试使用这样的TNSNAMES进行连接......
sqlplus EST/EST@ORCL
Run Code Online (Sandbox Code Playgroud)
......我明白了......
ORA-12154: TNS:could not resolve the connect identifier specified
Run Code Online (Sandbox Code Playgroud)
TNSPING工作正常
C:\Documents and Settings\user1>tnsping ORCL
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-NOV-2013 12:41:14
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
E:\app\Administrator\product\11.2.0\dbhome_2\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.15)(PORT = 1521)) (CONNECT_DATA = (SERVER = …Run Code Online (Sandbox Code Playgroud)