Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified
我的電腦上之前安裝了Oracle 10g database,配置完變數用PL/SQL操作一切OK .當又安裝完Oracle 10g client後,問題出現了,用PL/SQL登陸時或者進行遠端連線時反覆提示:ORA-12154: TNS: could not resolve the connect identifier specified
對於初學者,我反覆的在"Oracle - OraDb10g_home3"下的"配置和移植工具"中的"Net Manager"中查詢問題所在.請教高手,也沒有召見問題的原因.我鬱悶了,隨後自己決定來搞定這個問題.
我做了大量的反覆的資料檢視和自我檢查,靈感在下班的時候出現,我突然意識到我的"環境變數"一直被忽視.
開啟後我發現我當前的環境變數這樣設定的:
path == G:\oracle\product\10.2.0\client_2\bin;G:\oracle\product\10.2.0\client_1;d:\app\Administrator\product\11.1.0
\client_1;d:\app\Administrator\product\11.1.0\client_1\bin;d:\oracle\product\10.2.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\j2sdk\bin;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;
問題出現了.隨後我該成如下:
path == d:\oracle\product\10.2.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\j2sdk\bin;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;G:\oracle;【去掉G:\oracle;也OK】
OK !!! 問題在最後的關頭被我解決了!!!不錯.
這就是: "不拋棄 不放棄"
tnsnames.ora配置 【根據個人情況而定,我的例項是wilson】
# tnsnames.ora Network Configuration File: G:\oracle\product\10.2.0\client_2\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
WILSON =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [遠端IP地址])(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = wilson.msxq.com)
)
)
WILSON_192.168.232.100 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = [遠端IP地址])(PORT = 1521))
)
(CONNECT_DATA =
(SID = wilson)
(SERVICE_NAME = wilson.msxq.com)
)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25533574/viewspace-690122/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- Oracle案例05——ORA-12162: TNS:net service name is incorrectly specifiedOracle
- ubuntu : xcb:could not connect to display.Ubuntu
- Oracle案例04——TNS-12547: TNS:lost contactOracle
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource couldAI
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- Oracle TNS報錯大全Oracle
- ORACLE TNS Io異常End of TNS data channel&ORA-12518Oracle
- Laravel connect oracleLaravelOracle
- 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
- oracle 10g flashback databaseOracle 10gDatabase
- Linux Use ODBC Connect OracleLinuxOracle
- Scheduler in Oracle Database 10g(轉)OracleDatabase
- Oracle 10g 下載地址Oracle 10g
- oracle 10G特性之awrOracle 10g
- ORACLE dbca執行到40%報錯之ORA-12154Oracle
- Oracle start with connect by PostgreSQL recursive cteOracleSQL
- (20200916 Solved)Docker||redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refusedDockerRedis127.0.0.1
- ISO 映象安裝oracle 10gOracle 10g
- Oracle 10g RAC故障處理Oracle 10g
- Oracle 10g 增刪節點Oracle 10g
- lua 中連結 Redis 使用域名報錯 failed to connect: no resolver defined to resolveRedisAI
- PostgreSQL Oracle 相容性 - connect by 2SQLOracle
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- Oracle Database Server 'TNS Listener'遠端資料投毒漏洞OracleDatabaseServer
- Oracle的TNS-12502 錯誤原因及解決Oracle
- 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的SYS_CONNECT_BY_PATH函式Oracle函式
- Oracle 10g expdp attach引數體驗Oracle 10g
- 有Oracle support identifier的沒?幫下載兩個補丁OracleIDE
- [轉載] Oracle:start with...connect by子句的用法Oracle