Oracle建立使用者資料表空間和使用者

來源:互聯網
上載者:User

--建立資料資料表空間      t_space1 為資料資料表空間名 datafile為資料檔案路徑

create tablespace t_space1 datafile 'E:\OracleTableSpace\space_1\t_space1.dbf' size 5M autoextend on next 5M maxsize 20M extent management local ;
--刪除資料資料表空間
drop tablespace t_space1 including contents and datafiles;

--建立暫存資料表空間
create temporary tablespace temp_space1 tempfile 'E:\OracleTableSpace\space_1\temp_space1.dbf' size 5M autoextend  on next 5M maxsize 10M extent management local;
--刪除暫存資料表空間
drop temporary tablespace temp_space1 including contents and datafiles;

--建立使用者並指定資料表空間
create user tdy identified by tdy
default tablespace t_space1
temporary tablespace temp_space1;

--授予許可權

grant resource,connect to tdy;

--刪除使用者命
drop user tdy cascade;

推薦閱讀:

[Oracle] 在沒有備份的情況下undo損壞怎麼辦?

UNDO資料表空間失敗的處理方法

undo資料表空間故障和ORA-01548處理

RAC下丟失undo資料表空間的恢複

UNDO資料表空間備份恢複

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.