分类: Oracle
2022-11-24 22:12:37
Operating System Group |
UNIX or Linux User Group |
Windows User Group |
Oracle administrative privilege |
OSDBA |
dba |
ORA_DBA (for all Oracle homes) ORA_HOMENAME_DBA (for each specific Oracle home) |
SYSDBA |
OSOPER |
oper |
ORA_OPER (for all Oracl homes) ORA_HOMENAME_OPER (for each specific Oracle home) |
SYSOPER |
OSBACKUPDBA |
backupdba |
ORA_HOMENAME_SYSBACKUP |
SYSBACKUP |
OSDGDBA |
dgdba |
ORA_HOMENAME_SYSDG |
SYSDG |
OSKMDBA |
kmdba |
ORA_HOMENAME_SYSKM |
SYSKM |
OSRACDBA |
racdba |
ORA_HOMENAME_SYSRAC |
SYSRAC |
Administrative Privilege | Operations Authorized |
---|---|
SYSDBA |
This administrative privilege allows most operations, including the ability to view user data. It is the most powerful administrative privilege. |
SYSOPER |
This privilege allows a user to perform basic operational tasks, but without the ability to view user data. |
SYSBACKUP |
This privilege allows a user to perform backup and recovery operations either from Oracle Recovery Manager (RMAN) or SQL*Plus. See Oracle Database Security Guide for the full list of operations allowed by this administrative privilege. |
SYSDG |
This privilege allows a user to perform Data Guard operations. You can use this privilege with either Data Guard Broker or the DGMGRL command-line interface. See Oracle Database Security Guide for the full list of operations allowed by this administrative privilege. |
SYSKM |
This privilege allows a user to perform Transparent Data Encryption keystore operations. See Oracle Database Security Guide for the full list of operations allowed by this administrative privilege. |
SYSRAC |
This privilege allows the Oracle agent of Oracle Clusterware to perform Oracle Real Application Clusters (Oracle RAC) operations. See Oracle Database Security Guide for the full list of operations allowed by this administrative privilege. |
Administrative Privilege | Current Schema | Session User |
---|---|---|
SYSDBA |
SYS |
SYS |
SYSOPER |
PUBLIC |
PUBLIC |
SYSBACKUP |
SYS |
SYSBACKUP |
SYSDG |
SYS |
SYSDG |
SYSRAC |
SYS |
SYSRAC |
SYSKM |
SYSKM |
SYSKM |
CONNECT mydba AS SYSBACKUP
SELECT SYS_CONTEXT('USERENV', 'CURRENT_SCHEMA') FROM DUAL;
SYS_CONTEXT('USERENV','CURRENT_SCHEMA')
--------------------------------------------------------------------------------
SYS
SELECT SYS_CONTEXT('USERENV', 'SESSION_USER') FROM DUAL;
SYS_CONTEXT('USERENV','SESSION_USER')
--------------------------------------------------------------------------------
SYSBACKUP
NONE:作用是不允许通过 OS 系统用户登录数据库,需要提供用户名及密码;
ALL:作用是允许所有的登录方式;
NTS:此设置值仅用于Windows NT系统,此设置同时支持OS认证和口令文件认证,只有在设置了(NTS)值之后运行在Windows系统上的Oracle才支持OS认证。
如果不设置此参数,对Linux系统,默认支持OS认证和口令文件认证。对Windows系统,默认只支持口令文件认证,不支持OS认证。