oracle中建立使用者和表空間

2021-06-02 05:17:14 字數 571 閱讀 1910

--表空間

--建立表空間

create tablespace sunnycoffee datafile 'e:\oracletest\sunnycoffee_ts.dbf' size 10m autoextend on;

--刪除表空間

drop tablespace sunnycoffee including contents;

--建立使用者

create user sunnycoffee identified by love default tablespace sunnycoffee;

--刪除使用者

drop user sunnycoffee cascade;

--為使用者sunnycoffee賦角色

grant resource to sunnycoffee;

grant connect to sunnycoffee;

--測試

--建立**

create table sunnycoffee.test

( id number(5)

);

oracle中建立表空間和建立使用者

oracle中建立表空間和建立使用者 1,資料庫,表空間,使用者名稱,表資料的關係 乙個資料庫對應多個表空間,乙個表空間對應多個表資料 乙個表空間對應多個使用者,乙個使用者對應多個表 oracle中建立乙個表空間 create tablespace wbc 建立表空間 datafile c wate...

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to 使用者名稱 grant create table to 使用者名...

Oracle建立表空間和使用者

oracle建立表空間和使用者 sql view plain copy 建立表空間和使用者的步驟 使用者 建立 create user 使用者名稱 identified by 密碼 授權 grant create session to使用者名稱 grant create table to使用者名稱 ...