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
相關文章
相關標籤/搜索