ORACLE資料庫建立表空間

2021-07-23 05:01:07 字數 1330 閱讀 5877

擴充套件表空間檔案:

alter tablespace tbs_yjtx_data 

\ldz

\oradata

\orcl

\tbs_yjtx_data_02.dbf' size 1000m;

建立臨時表空間:

表空間自動擴容

size

1024m reuse autoextend on

next

100m maxsize unlimited extent management local;

create

size

100m autoextend on

next

32m maxsize 2048m extent management local;

刪除表空間

drop tablespace tbs_dm_data ;

drop tablespace tbs_dm_temp;

建立使用者

create

user test identified by password default tablespace tbs_dm_data temporary tablespace tbs_dm_temp account unlock;

grant

create

table

to test ;

grant unlimited tablespace to test ;

grant

connect

to test with admin option;

grant resource to test with admin option;

grant dba to test ;

給」tpm」使用者授予」temp」表的select/delete/update/insert操作的許可權

grant

select,delete,update,insert

on temp to tpm;

刪除使用者」tpm」對錶」temp」的操作及查詢許可權

revoke select

on temp from tpm;

資料閃回到某個時間點

select * from subject

asof

timestamp to_timestamp('2017-08-15 09:20:30','yyyy-mm-dd hh24:mi:ss')

建立Oracle資料庫表空間

以管理員身份登陸 建立臨時表空間mydb temp create temporary tablespace mydb temp tempfile c database mydb temp.dbf 檔案路徑c database一定要存在,否則建立失敗。同時路徑中盡量不要有中文名稱。size 50m a...

oracle資料庫建立表空間

第1步 建立臨時表空間create temporary tablespace 臨時表空間名 tempfile 臨時表空間路徑x oracle data temp.dbf size 50m autoextend on next 50m maxsize 20480m extent management ...

Oracle建立資料庫表空間

1.首先,建立 新 使用者 create userusername identified by password username 新使用者名稱的使用者名稱 password 新使用者的密碼 也可以不建立新使用者,而仍然用以前的使用者,如 繼續利用scott使用者 2.建立表空間 createtab...