Oracle建立使用者許可權

2021-08-31 12:09:27 字數 845 閱讀 2389

1.//建立空間  

create tablespace test datafile 'c:\oracle\oradata\orcl9\test.dbf' size 50m default storage (initial 500k next 500k minextents 1 maxextents unlimited pctincrease 0);

2.//建立使用者  

create user lxg identified by lxg default tablespace test;

授權 

grant resource,connect,dba to test;

建立使用者

create user username identified by password;

給使用者授權

grant dba to lxg;--授予dba許可權

grant unlimited tablespace to lxg;--授予不限制的表空間

grant select any table to lxg;--授予查詢任何表

grant select any dictionary to lxg;--授予 查詢 任何字典

刪除表空間

drop tablespace "空間名" including contents and datafiles

刪除使用者

drop user "lxg" cascade

Oracle建立使用者設定許可權

create user test identified by test 建立test使用者 default tablespace users temporary tablespace temp profile default grant connect,create view resource to...

Oracle建立唯讀許可權使用者

我們使用者histest下面有很多表,需建立使用者 hongshu no1.先建立乙個使用者hongshu,密碼hongshu no2.給他一些許可權,包括連線許可權,因為他要建立同義詞,還需要給他同義詞 grant connect to hongshu grant create synonym t...

Oracle建立使用者 角色和許可權

我們來看看在我們學習過程中一般的使用者如何建立,分配何種角色和許可權。1 我們只需要對 資料庫 進行簡單的維護和開發操作,最好不要用sys或system使用者。最簡單的建立新使用者的命令 create user 使用者名稱 identified by 口令 2 一般現在分配給使用者以下許可權 1 c...