sqlplus 連接數據庫報錯SP2-0642: SQL*Plus internal error state 2130, context 0:0:0

sqlplus 連接數據庫報錯SP2-0642: SQL*Plus internal error state 2130, context 0:0:0
問題描述:
使用sqlplus客戶端登錄數據庫,報錯SP2-0642,而使用其它方式plsql或者tnsnames等方式連接數據庫均沒有問題

[oracle@test2 ~]$ sqlplus adt/[email protected]:1521/srv_test1

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Oct 9 16:04:39 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SP2-0642: SQL*Plus internal error state 2130, context 0:0:0
Unsafe to proceed
Enter user-name:

原因:
The cause of this problem has been identified and verified in an unpublished Bug 6135152. ORA-25406 With Server Side TAF, And //HOST:PORT/SERVICE_NAME Connect String.
使用TAF連接並用EZCONNECT連接數據庫時,觸發了數據庫相關bug


解決方法

方法1

1,去掉默認的端口號1521,可以解決

C:\Users\wj>sqlplus adt/[email protected]/srv_test1

SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 10月 9 16:09:00 2013

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


連接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options

SQL>


方法2,修改service的配置爲默認選項
原有service創建方式
srvctl add service -d ms4adb -s srv_4a2 -r ms4adb -a ms4adb -P basic -e select -m basic -z 180 -w 5

現有service方式,使用默認參數配置,即可正常連接
srvctl add service -d ms4adb -s srv_4a2 -r ms4adb -a ms4ad


方法3,客戶端sqlplus升級oracle 11.2,也可解決相關問題
Bug is fixed from release 11.2 onwards.
Check for one off patches for your release / platform via Patch 6135152

參考資料:
EZCONNECT Connections Error with SP2-0642: Sql*Plus Internal Error State 2130 (文檔 ID 855965.1)
Bug 8599395 : EZCONNECT ERRORS WITH SP2-0642: SQL*PLUS INTERNAL ERROR STATE 2130, CONTEXT 0:0:
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章