oracle建立表空間並授予使用者許可權

2021-08-29 17:36:19 字數 931 閱讀 1604

注意:每條語語分開執行,結尾必須用分號;

//建立空間

create tablespace test

datafile 'c:\oracle\oradata\orcl9\test.dbf' size 50m

default storage (initial 500k

next 500k

minextents 1

maxextents unlimited

pctincrease 0);

//建立使用者

create user lxg identified by lxg default tablespace test;

//授權 

grant resource,connect,dba to test;

//刪除表空間

drop tablespace "空間名" including contents and datafiles

刪除使用者

drop user "lxg" cascade

增加表空間

alter tablespace chinawater add datafile 'c:\oracle\oradata\orcl9\addchinawater.dbf' size 200m

建立使用者

create user username identified by password;

建立使用者 username,密碼為 password

2給使用者授權

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

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

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

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

Oracle建立使用者與授予表空間與許可權

oracle建立使用者 建立 create user 使用者名稱 identified by 密碼 oracle 表空間 乙個資料庫可以有多個表空間,乙個表空間裡可以有多個表。表空間就是存多個表的物理空間 可以指定表空間的大小位置等。建立表空間的定義 建立表空間 一般建n個存資料的表空間和乙個索引空...

Oracle建立使用者與授予表空間與許可權

oracle建立使用者 建立 create user 使用者名稱 identified by 密碼 oracle 表空間 乙個資料庫可以有多個表空間,乙個表空間裡可以有多個表。表空間就是存多個表的物理空間 可以指定表空間的大小位置等。建立表空間的定義 建立表空間 一般建n個存資料的表空間和乙個索引空...

oracle建立表空間以及給使用者授予許可權

建立表空間 語法 create tablespace 表空間名 datafile 路徑 size 100m aotuextend to create tablespace myspace datafile d myspace myspace.dbf size 100m autoextend on 給...