oracle限制登录地址,Oracle限制IP登录

限制登录Oracle的IP地址有两种方法一、编辑$ORACLE_HOME/network/admin/sqlnet.ora,增加tcp.validnode_checking = yes#tcp.invi

限制登录Oracle的IP地址有两种方法

一、编辑$ORACLE_HOME/network/admin/sqlnet.ora,,增加

tcp.validnode_checking = yes

#tcp.invited_nodes=() #允许访问的IP列表,各IP之间用逗号分隔

tcp.excluded_nodes=() #限制访问的IP列表,个IP之间用逗号分隔

注意:

不能同时使用tcp.invited_nodes和tcp.excluded_nodes

只能指定具体的IP地址,不能指定IP段

只能限制TCP协议

需要重启监听生效

============================================

1、需求:限制IP 192.168.137.1登录

2、实现方式:

oracle@oracle[/oracle/app/10g]> cd $ORACLE_HOME/network/admin

oracle@oracle[/oracle/app/10g/network/admin]> ls -l

total 16

drwxr-x--- 2 oracle oinstall 4096 Dec 30 11:37 samples

-rw-r----- 1 oracle oinstall 172 Dec 26 2003 shrept.lst

-rw-r--r-- 1 oracle oinstall 236 Dec 30 13:10 sqlnet.ora

-rw-r--r-- 1 oracle oinstall 347 Mar 25 21:22 tnsnames.ora

oracle@oracle[/oracle/app/10g/network/admin]> vi sqlnet.ora

# sqlnet.ora Network Configuration File: /oracle/app/10g/network/admin/sqlnet.ora

# Generated by Oracle configuration tools.

SQLNET.RECV_TIMEOUT = 0

SQLNET.EXPIRE_TIME = 0

SQLNET.SEND_TIMEOUT = 0

SQLNET.INBOUND_CONNECT_TIMEOUT = 0

tcp.validnode_checking = yes

#tcp.invited_nodes=()

tcp.excluded_nodes=(192.168.137.1)

oracle@oracle[/oracle/app/10g/network/admin]> lsnrctl stop

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 15-JUN-2009 12:10:05

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

The command completed successfully

oracle@oracle[/oracle/app/10g/network/admin]> lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 15-JUN-2009 12:10:17

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Starting /oracle/app/10g/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Log messages written to /oracle/app/10g/network/log/listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date 15-JUN-2009 12:10:17

Uptime 0 days 0 hr. 0 min. 0 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Log File /oracle/app/10g/network/log/listener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))

The listener supports no services

The command completed successfully

在192.168.137.1上登录,显示

ORA-12547:TSN:丢失连接

logo.gif

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值