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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- ubuntu : xcb:could not connect to display.Ubuntu
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource couldAI
- Oracle案例05——ORA-12162: TNS:net service name is incorrectly specifiedOracle
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- AndroidStudio升級報錯Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve cAndroidAPPCompile
- ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
- could not connect to redis Instance at xxx.xxx.xxx.xxx:6379Redis
- hadoop啟動時,報ssh: Could not resolve hostname xxx: NamHadoop
- yml:java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.driverClassName‘JavaExceptionJDBC
- Could not resolve org.jetbrains.intellij.plugins:gradle-intellij-pluginAIIntelliJPluginGradle
- Could not resolve com.android.support.constraint:constraint-layout:1.1.3AndroidAI
- (20200916 Solved)Docker||redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refusedDockerRedis127.0.0.1
- lua 中連結 Redis 使用域名報錯 failed to connect: no resolver defined to resolveRedisAI
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- django rest django.core.exceptions.ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view nameDjangoRESTExceptionView
- Centos7中Could not resolve host: mirrorlist.centos.org; 未知的錯誤"CentOS
- 記錄:yum Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error解決CloudError
- Oracle案例04——TNS-12547: TNS:lost contactOracle
- gradle升級到4.1後出現的Could not resolve com.android.tools.build:gradle:3.0.1GradleAndroidUI
- 問題解決:TNS-12543: TNS:destination host unreachable
- ORACLE TNS Io異常End of TNS data channel&ORA-12518Oracle
- springboot報錯無法讀取配置檔案中的屬性:Could not resolve placeholder ‘xxxx‘ in value “${xxxx}Spring Boot
- No input file specified.
- Oracle TNS報錯大全Oracle
- [20180428]DNS與ORA-12154錯誤.txtDNS
- PostgreSQL DBA(80) - Object Identifier TypesSQLObjectIDE
- Python 錯誤 SyntaxError: invalid character in identifierPythonErrorIDE
- TNS問題排查 The listener supports no services
- 執行gedit報No protocol specifiedProtocol
- Uncaught SyntaxError: Identifier 'Geometry' has already been declaredErrorIDE
- 關於hibernate的 No row with the given identifier existsIDE
- [20210114]理解DBMS_SESSION.set_identifier.txtSessionIDE
- ORACLE dbca執行到40%報錯之ORA-12154Oracle
- 11gr2 alert日誌中報TNS-12535 TNS-00505原因及解決方法
- Laravel connect oracleLaravelOracle
- database的connectDatabase
- 【故障處理】TNS-04610問題
- ORA-12519 TNS:no appropriate service handler foundAPP