因为错误是客户那边发生的,我这边没法直接测试,也没办法在本地的数据库上重现。
客户的数据库版本是10g,sqlnet.log里的信息:Fatal NI connect error 12545, connecting to:
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=sbksz)(CID=(PROGRAM=G:\Program?Files\DBScan\DBScan.exe)(HOST=LQ-TCNET)(USER=Oracle)))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.81.101)(PORT=1521))) VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.3.0 - Production
Time: 20-MAY-2008 14:38:26
Tracing not turned on.
Tns error struct:
ns main err code: 12545
TNS-12545: Message 12545 not found; No message file for product=NETWORK, facility=TNS
ns secondary err code: 12560
nt main err code: 515
TNS-00515: Message 515 not found; No message file for product=NETWORK, facility=TNS
nt secondary err code: 1001
nt OS err code: 0
客户的数据库版本是10g,sqlnet.log里的信息:Fatal NI connect error 12545, connecting to:
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=sbksz)(CID=(PROGRAM=G:\Program?Files\DBScan\DBScan.exe)(HOST=LQ-TCNET)(USER=Oracle)))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.81.101)(PORT=1521))) VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.3.0 - Production
Time: 20-MAY-2008 14:38:26
Tracing not turned on.
Tns error struct:
ns main err code: 12545
TNS-12545: Message 12545 not found; No message file for product=NETWORK, facility=TNS
ns secondary err code: 12560
nt main err code: 515
TNS-00515: Message 515 not found; No message file for product=NETWORK, facility=TNS
nt secondary err code: 1001
nt OS err code: 0
但怎么修改会出现这样的问题呢?通常修改主机名之后windows需要重启,重启后listener启动会失败。
如何修改主机名,又能让listener.ora运行按原来的配置运行着?
我也试着修改tnsnames.ora,但由于不是分布式的数据库,好像这个配置文件没被用上,我怎么修改都不影响测试结果
在windows下没有遇到过这种问题,一直在弄linux下的数据库,把windows快忘了,帮你顶一下吧
看来我还是需要自己搞一套测试环境,才能弄完全明白,否则没法给客户建议。
我先测试一下,得出结论,之后再来结贴。
同时需要重启listener,已使修改生效。
另外,不是分布式数据库就用不到tnsname了吗?
楼主的意思是不是想表达“是本地应用,不涉及到对服务器的远程访问”这个意思。