用os_authent_prefix与remote_os_authent实现操作系统认证

1 本地操作系统认证

操作系统用户oracle, 创建操作系统认证的用户ops$oracle.

SQL> show parameter os_authent_prefix;

NAME                        TYPE        VALUE

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

os_authent_prefix           string      ops$

SQL> create user ops$oracle identified externally;

User created.

SQL> grant connect, resource to ops$oracle;

Grant succeeded.

[oracle@cent4 ~]$ sqlplus /

SQL> show user

USER is "OPS$ORACLE"

2 远程操作系统认证

remote_os_authent改成true, 才可以远程操作系统认证.

SQL> show parameter remote_os_authent

NAME                    TYPE        VALUE

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

remote_os_authent       boolean     FALSE

SQL> alter system set remote_os_authent=true scope=spfile;

System altered.

[oracle@cent4 ~]$ sqlplus /@centtns

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 6 6 10:56:12 2011

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

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

SQL>

 

注意: 1. 客户端的操作系统用户也要是oracle, 这样才能实现远程操作系统认证.

 2. remote_os_authent这个参数开启后, 存在很大的安全隐患, 远端服务器只要根据数据库中存在的外部用户来创建用户, 就可以登陆到数据库中, 因此除非必要, 否则不建议开启这个参数.

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值