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!