oracle -12169,很奇怪的错误ORA-12169
本帖最后由 happy_lhh 于 2015-5-19 17:17 編輯
數據庫服務器為2個結點的RAC
在應用服務器上安裝ORACLE客戶端,配置tnsnames.ora如下:
test_new =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.100.3.100)(PORT = 1521))
)
(LOAD_BALANCE = yes)(FAILOVER = ON)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
(FAILOVER_MODE=(TYPE = SELECT)(METHOD = BASIC)
(RETIRES = 20)(DELAY = 15))
)
)
test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.100.3.100)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)
sqlplususername/passwd@test,可以正常連接數據庫
sqlplususername/passwd@test_new,就會報ORA-12169的錯
[oracle@cardsys admin]$ sqlplus username/passwd@test
SQL*Plus: Release 11.2.0.1.0 Production on Tue May 19 16:25:06 2015
Copyright (c) 1982, 2009, Oracle.??All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
[oracle@cardsys admin]$ sqlplus
Copyright (c) 1982, 2009, Oracle.??All rights reserved.
ERROR:
ORA-12169: TNS:Net service name given as connect identifier is too long
Enter user-name:
tnsping的信息也很奇怪,如下:
[oracle@cardsys admin]$ tnsping test_new
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 19-MAY-2015 16:24:57
Copyright (c) 1997, 2009, Oracle.??All rights reserved.
Used parameter files:
/u01/oracle/product/11.2.0/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
)RETIRES = 20)(DELAY = 15))CT)(METHOD = BASIC)00)(PORT = 1521))
OK (0 msec)
[oracle@preserver product]$ tnsping test
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 19-MAY-2015 16:59:07
Copyright (c) 1997, 2009, Oracle.??All rights reserved.
Used parameter files:
/u01/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
)SERVICE_NAME = ICDC)= TCP)(HOST = 172.100.3.100)(PORT = 1521))
OK (0 msec)
總結
以上是生活随笔為你收集整理的oracle -12169,很奇怪的错误ORA-12169的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Kooboo 全文索引研究
- 下一篇: CString类型的头文件、CStrin