win7 64位系統sql
oracle 10g 64位 oracle
plsql以前鏈接是好使的,忽然鏈接不上,提示錯誤「ora-12170 tns 鏈接超時」post
一、ping IP 沒有問題字體
二、netstat –na 查看1521端口,端口是沒有問題的spa
三、防火牆沒問題blog
四、lsnrctl status 發現 snmp offget
解決方法 it
首先:dba用戶登陸系統,沒法shutdown 報:ora-00106錯誤:class
修改 因爲不是rac 是單機,以前的 tnsnames中service_name 是電腦名 ,修改成IP地址登錄
其次:又變成錯誤 ,增長如下代碼(紅色字體)解決問題
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.186)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
(SRVR = DEDICATED)
)
)
最後:用DBA用戶登陸報錯誤:
ora-12514錯誤;解決方法以下
打開<OracleHome>/network/adminstener.ora文件,找到: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\product\10.2.0\db_1) (PROGRAM = extproc) ) ) 2. 添加: (SID_DESC = (GLOBAL_DBNAME = ORACLE) (ORACLE_HOME = D:\oracle\product\10.2.0\db_1) (SID_NAME = ORACLE) ) 3. 最後變成: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = D:\oracle\product\10.2.0\db_1) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = ORACLE) (ORACLE_HOME = D:\oracle\product\10.2.0\db_1) (SID_NAME = ORACLE) ) ) 4. 保存文件,重啓服務中的TNSListener,OK!