SYS vs SYSTEM , SYSDBA vs SYSOPER
来源:互联网 发布:知乎 史上最惨男主角 编辑:程序博客网 时间:2024/06/03 20:03
缺省的,数据库中已经有了两位管理人员:SYS和SYSTEM,这两个用户在创建数据库时就被缺省创建了,并且都被赋予了DBA的角色,具有数据库中最高的权限。由于SYS用户具有管理数据库的所有权限,所以仅允许以SYSDBA或者SYSOPER身份登陆数据库:
sysdba的系统权限包括了完全的数据库管理权限,而sysoper系统权限允许用户执行基本的数据库管理任务。sysdba的缺省Schema是SYS,而sysoper的缺省Schema是PUBLIC.
AskTom中关于这几个容易混淆概念的解答,链接:regarding "SYS, SYSDBA, SYSOPER, SYSTEM"
sys and system are "real schemas", there is a user SYS and a user SYSTEM.
In general, unless the documentation tells you, you will NEVER LOG IN as sys or system, they are our internal data dictionary accounts and not for your use. You will be best served by forgetting they exist.
sysdba and sysoper are ROLES - they are not users, not schemas. The SYSDBA role is like "root" on unix or "Administrator" on Windows. It sees all, can do all. Internally, if you connect as sysdba, your schema name will appear to be SYS.
In real life, you hardly EVER need sysdba - typically only during an upgrade or patch.
sysoper is another role, if you connect as sysoper, you'll be in a schema "public" and will only be able to do things granted to public AND start/stop the database. sysoper is something you should use to startup and shutdown. You'll use sysoper much more often than sysdba.
do not grant sysdba to anyone unless and until you have absolutely verified they have the NEED for sysdba - the same with sysoper.
System Privilege
Operations Authorized
SYSDBA
- Perform
STARTUP
andSHUTDOWN
operations ALTER DATABASE
: open, mount, back up, or change character setCREATE DATABASE
DROP DATABASE
CREATE SPFILE
ALTER DATABASE ARCHIVELOG
ALTER DATABASE RECOVER
- Includes the
RESTRICTED SESSION
privilegeEffectively, this system privilege allows a user to connect as userSYS
.
SYSOPER
- Perform
STARTUP
andSHUTDOWN
operations CREATE SPFILE
ALTER DATABASE OPEN/MOUNT/BACKUP
ALTER DATABASE ARCHIVELOG
ALTER DATABASE RECOVER
(Complete recovery only. Any form of incomplete recovery, such asUNTIL TIME|CHANGE|CANCEL|CONTROLFILE
requires connecting asSYSDBA
.)Includes the
RESTRICTED SESSION
privilege
This privilege allows a user to perform basic operational tasks, but without the ability to look at user data.
只要能以sysdba的角色连上库,最终实际用户都是sys。
C:\Users\TianPan>sqlplus system/welcome as sysdba
...
SQL> show user
USER is "SYS"
SQL>
...
SQL> show user
USER is "SYS"
SQL>
C:\Users\TianPan>sqlplus sys/welcome as sysdba
...
SQL> show user
USER is "SYS"
SQL>
...
SQL> show user
USER is "SYS"
SQL>
C:\Users\TianPan>sqlplus system/welcome
...
SQL> show user
USER is "SYSTEM"
SQL>
SQL> show user
USER is "SYSTEM"
SQL>
只要能以sysoper的角色连上库,最终实际用户都是public。
C:\Users\TianPan>sqlplus sys/welcome as sysoper
...
SQL> show user
USER is "PUBLIC"
SQL>
...
SQL> show user
USER is "PUBLIC"
SQL>
注意sys用户只能以sysdba的身份登陆。
C:\Users\TianPan>sqlplus sys/welcome
SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 28 15:20:55 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
Enter user-name:
SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 28 15:20:55 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
Enter user-name:
0 0
- SYS vs SYSTEM , SYSDBA vs SYSOPER
- sys、system、sysdba和sysoper的区别
- system sys,sysoper sysdba 的区别
- scott、sys、system用户 sysdba、sysoper权限
- sys,system账户,sysdba和sysoper权限
- oracle system sys,sysoper sysdba 的区别
- system sys,sysoper sysdba 的区别 (转)
- oracle normal、sys、system、sysdba、sysoper&dba的区别
- Oracle Sys和system用户、sysdba 和sysoper系统权
- Oracle sys和system用户、sysdba 和sysoper系统权限
- oracle 用户system sys,sysoper sysdba 的区别
- Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别
- oracle中Normal,sysdba,sysoper三种连接方式和用户sys,system,sysdba,scott
- Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别
- Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别 .
- Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别
- oracle中Normal,sysdba,sysoper三种连接方式和用户sys,system,sysdba,scott
- Oracle sys和system用户、sysdba 和sysoper系统权限、sysdba和dba角色的区别
- 如何为IOS应用建立清晰易懂的项目目录结构
- Gradle 教程说明 用户指南 第7章 构建Java工程----快速入门
- http://www.jq22.com/
- IOS学习 Objective-C总Runtime的那点事儿消息机制
- Linux常用命令(三十四) - kill
- SYS vs SYSTEM , SYSDBA vs SYSOPER
- MeanShift算法(三)之CamShift
- Gradle 教程说明 用户指南 第8章依赖管理基础
- 大学生就业,你缺少了什么?
- Linux wait()函数
- windows 内核函数前缀解析
- Git:分支&&HEAD的重置
- 前诺基亚员工创办的公司 明年要推3.5G版平板
- jsp中cookie取中文值乱码