SYSDBA和SYSOPER

Sysdba和sysoper均可以在数据库未open状态下访问数据库的实例。

下面是系统权限对应的操作。

SYSDBA

 * Perform STARTUP and SHUTDOWNoperations

    *ALTER DATABASE: open, mount, back up, or change character set

    *CREATE DATABASE

    *CREATE SPFILE

    *ARCHIVELOG and RECOVERY

    *Includes the RESTRICTED SESSION privilege

Effectively, this system privilege allows auser to connect as user SYS.

 

SYSOPER

    *Perform STARTUP and SHUTDOWN operations

    *CREATE SPFILE

    *ALTER DATABASE OPEN/MOUNT/BACKUP

    *ARCHIVELOG and RECOVERY

    *Includes the RESTRICTED SESSION privilege

This privilege allows a user to performbasic operational tasks, but without the ability to look at user data.

 

数据库管理员的认证方式:

操作系统(OS)认证

密码文件认证


操作系统认证方式:

1.Create an operating system account for the user.

2.Add the user to the OSDBA or OSOPER operating system defined groups.

3.Ensure that the initialization parameter, REMOTE_LOGIN_PASSWORDFILE, isset to NONE. This is the default value for this parameter.

 

密码文件认证方式:

To enable authentication of anadministrative user using password file authentication you must do thefollowing:

 

   1.Create an operating system account for the user.

   2.If not already created, Create the password file using the ORAPWD utility:

 

     ORAPWD FILE=filename PASSWORD=password ENTRIES=max_users

 

   3.Set the REMOTE_LOGIN_PASSWORDFILE initialization parameter to EXCLUSIVE.

   4.Connect to the database as user SYS (or as another user with the administrativeprivilege).

   5.If the user does not already exist in the database, create the user. Grant theSYSDBA or SYSOPER system privilege to the user:

 

     GRANT SYSDBA to scott;

 

     This statement adds the user to the password file, thereby enablingconnection AS SYSDBA.

 

这里的file,如果你使用的是oracle 9i的RAC,那么每个实例的环境变量要指向同一个密码文件。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值