关于无法连接ORACLE数据库的原因
症状是在SQLPLUS /NOLOG中 CONN USER/PASSWORD可以连接上 但是CONN USER/PASSWORD@SID 就会直接死掉 无论是PL/SQL还是SQLPLUS或者是TOAD都是这样的情况 机器是动态IP 当然你建议是在OS级加上LOOPBACK网卡 添加上之后 能够正常连接 但是最近每天开机 本机的服务还是连不上 在TRC文件里面报
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 21
Windows thread id: 2596, image: ORACLE.EXE (SHAD)
opiino: Attach failed! error=-1 ifvp=00000000
SQLNET.LOG里面报
Fatal NI connect error 12560, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
Time: 30-5月 -2009 22:08:25
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS: 协议适配器错误
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
我目前是LOOPBACK网卡是一开机就启动的 出现连接不上数据库的情况 我就把LOOPBACK禁用 启动 然后本机的无线连接禁用 启动这样折腾几次 就能正常连上 有的时候 把本机的无线连接改成一个固定的IP 或者由固定IP改成自动获取IP 也能解决,但是实在不明白到底是什么问题导致的配置了LOOPBACK网卡还会有这个问题 望解答下 谢谢