ORA-12154: TNS: could not resolve the connect identifier specified
Windows was throwing the error
"ORA-12154: TNS: could not resolve the connect identifier specified"
because the Environment Variables were incorrect. Specifically, the error was that the
TNS_ADMIN variable was set to:
C:\oracle\instantclient_10_2;
Yes, the problem was with the semicolon at the end position of the string. As soon as I removed it, I could configure the ODBC driver properly. Now I add a new connection in Visual Studio to the oracle database without any problem.
The semicolon was making the TNS_NAMES.ora file not accesible to windows, and thus the service was not known to the system.
I hope this post (though apparently silly) helps any other newbies like me...
tns_admin : 就是tnsnames。ora的路徑 。。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-772397/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-12154: TNS:could not resolve the connect identifier specifiedIDE
- 【DataGuard】 TNS:could not resolve the connect identifier specifiedIDE
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specifiedOracle 10gIDE
- 關於ORA-12154: TNS:could not resolve the connect identifier specified的問題IDE
- EF:Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specifiedOracleclientExceptionIDE
- ORA-12154: TNS:could not resolve service name / TNS-03505: Failed to resolve nameAI
- ora-12169 tns net service name given as connect identifier is too longIDE
- [Nagios] Error: Template timman specified in contact definition could not beiOSError
- TNS-12518: TNS:listener could not hand off client connectionclient
- TNS-12518 TNS listener could not hand off client connectionclient
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- Could not resolve host: 'localhost 報錯解決辦法localhost
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource couldAI
- 解決ORA-12154: TNS無法解析一例
- Fatal NI connect error 12170 TNS-12535 TNS-00505Error
- Fatal NI connect error 12170 TNS-12535/TNS-00505 TNS:operation timed outError
- 異常org.hibernate.QueryException: could not resolve property的原因Exception
- Fatal NI Connect Error 12170, 'TNS-12535: TNS:operation timed outError
- Oracle案例05——ORA-12162: TNS:net service name is incorrectly specifiedOracle
- 【故障處理】ORA-12162: TNS:net service name is incorrectly specified
- AndroidStudio升級報錯Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve cAndroidAPPCompile
- yml:java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.driverClassName‘JavaExceptionJDBC
- 記一次解決:TNS-12518: TNS:listener could not hand off client connectionclient
- ORA-12154:TNS:無法解析指定的連線識別符號符號
- TNS-12518: TNS:listener could not hand off client connection For ORACLE 10G (AIX6.1)clientOracle 10gAI
- oracle 10g控制檯登入出現Io 異常:Unknown host specified 或ORA-12154 TNS無法解析指定的連線識別符號等Oracle 10g符號
- hadoop啟動時,報ssh: Could not resolve hostname xxx: NamHadoop
- Fatal NI connect error 12170 TNS-12535 TNS-00505 解決辦法Error
- ORA-12518: TNS:listener could not hand off client connectionclient
- ORA-12518, TNS:listener could not hand off client connectionclient
- ORA-12154 和 TNS-03505 監聽錯誤的解決方法
- ORA - 12502 TNS:listener received no CONNECT_DATA from clientclient
- Could not resolve placeholder 'redis.pool.maxTotal' in string value "${redis.pool.maxTotal}"Redis
- 記錄:yum Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error解決CloudError
- Could not resolve com.android.support.constraint:constraint-layout:1.1.3AndroidAI
- rman中的ORA-12154: TNS: 無法解析指定的連線識別符號符號
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError