Oracle 管理用户


Oracle 管理用户
 
用户的验证方式:数据库,操作系统,网络。
 
创建用户(数据库验证):
SQL> create user simon identified by password
2 default tablespace users
3 temporary tablespace temp
4 quota 1m on users;
User created.
 
创建用户(操作系统验证):
SQL> create user root
  2  identified externally
  3  default tablespace users
  4  temporary tablespace temp
  5  quota 1m on users;
User created.
 
两个初始化参数文件:
remote_os_authent=true 表示用户可以由远程系统验证身份
os_authent_prefix=ops$ 用户可以由操作系统或Oracle服务器验证身份

删除用户:
SQL> drop user simon;
User dropped.

显示用户:
SQL> select username,default_tablespace from dba_users;
USERNAME                       DEFAULT_TABLESPACE
------------------------------ ------------------------------
SYS                            SYSTEM
SYSTEM                         SYSTEM
ROOT                           USERS
SIMON                          USERS
DBSNMP                         SYSTEM
SCOTT                          SYSTEM
OUTLN                          SYSTEM
WMSYS                          SYSTEM
ORDSYS                         SYSTEM
ORDPLUGINS                     SYSTEM
MDSYS                          SYSTEM

你可能感兴趣的:(oracle,职场,休闲)