bat模拟其他ip访问oracle,Oracle设定允许访问数据库的IP

Oracle设定允许访问数据库的IP

oracle服务器 192.168.1.9 Linux  www.2cto.com

oracle客户机 192.168.1.6 Windows

192.168.1.6 tnsping 192.168.1.9

Bat代码

Microsoft Windows [版本 5.2.3790]

(C) 版权所有 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>tnsping 192.168.1.9

TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 09-11月-2012 10:20:40

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

已使用的参数文件:

C:\oracle11g\product\11.2.0\dbhome_2\NETWORK\ADMIN\sqlnet.ora

已使用 EZCONNECT 适配器来解析别名

尝试连接 (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.95)(PORT

OK (20 毫秒)

修改192.168.1.9上的sqlnet.ora,添加

Plain text代码

tcp.validnode_checking = yes

tcp.invited_nodes = (192.168.1.9)

之后运行

Code代码

lsnrctl reload

然后在192.168.1.6上重新tnsping 192.168.1.9

Bat代码

C:\Documents and Settings\Administrator>tnsping 192.168.1.9

TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 09-11月-2012 10:21:07

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

已使用的参数文件:

C:\oracle11g\product\11.2.0\dbhome_2\NETWORK\ADMIN\sqlnet.ora

已使用 EZCONNECT 适配器来解析别名

尝试连接 (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.95)(PORT

TNS-12547: TNS: 丢失连接

192.168.1.6上的Toad 连192.168.1.9,报错ORA-12537: TNS:connection closed

另有tcp.excluded_nodes可用,与 tcp.invited_nodes同时存在的话,优先使用 tcp.invited_nodes

当192.168.1.9不在tcp.invited_nodes中时,192.168.1.6上的tomcat报错如下:

Error_message代码

2012-11-09 10:54:23,093 WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Er

ror: 17002, SQLState: null

2012-11-09 10:54:23,093 ERROR [org.hibernate.util.JDBCExceptionReporter] - Io 异

常: Got minus one from a read call

http://www.dengb.com/oracle/483286.htmlwww.dengb.comtruehttp://www.dengb.com/oracle/483286.htmlTechArticleOracle设定允许访问数据库的IP oracle服务器 192.168.1.9 Linux www.2cto.com oracle客户机 192.168.1.6 Windows 192.168.1.6 tnsping 192.168.1.9 Bat代码 Microsoft Window...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值