Oracle之資料庫使用者基本操作介紹

2021-12-30 06:09:44 字數 797 閱讀 7961

1:系統常見使用者

sys: 超級使用者,主要用來維護系統資訊和管理例項,以sysdba或sysoper角色登入。

密碼為在安裝時設定的管理口令,如一 般設定為:orcl

system: 預設的系統管理員,擁有dba許可權,通常用來管理oracle資料庫的使用者、許可權和儲存,

以normal方式登入。密碼為在安裝時設定的管理口令,如一般設定為:orcl

scott: 示範使用者,使用users表空間。一般該使用者預設密碼為tiger

2: 查詢系統使用者

select * from all_users; 或者 select * from dba_users;(使用者資訊更加的詳細)

3:解鎖使用者

語法:alter user 使用者名稱 account unlock;

示例:解鎖 cc 使用者 alter user cc account unlock;

4:建立使用者

語法:create user 使用者名稱 identified by 密碼 default tablespace 表空間;

示例:createuser czw identifiedby czw defaulttablespace czw_ts temporarytablespacetemp;

5:修改使用者密碼

語法:alter user 使用者名稱 identified by 密碼

示例:alter user czw identified it;

6:刪除使用者

語法:drop user 使用者名稱 cascade;

示例:drop user czw cascade;

oracle資料庫使用者基本操作

每個資料庫都有一系列的使用者,為了訪問資料庫,使用者必須使用使用者名稱等資訊先連線上資料庫例項,oracle資料庫提供了多種方式來管理使用者安全。建立使用者的時候,可以通過授權等操作來限制使用者能訪問的資源以及一些其他操作。使用者建立語法 create user user name identifi...

Oracle建立使用者以及備份還原資料庫操作

create the user create user xx identified by default tablespace users temporary tablespace temp profile default password expire grant revoke role priv...

Oracle建立使用者以及備份還原資料庫操作

create the user create user xx identified by default tablespace users temporary tablespace temp profile default password expire grant revoke role priv...