oracle使用者和表空間

2021-10-07 03:28:45 字數 724 閱讀 2452

建立表空間:

create tablespace test1_table datafile 'test1file.dbf' size 10m; 建立永久表空間

create temporary tablespace temptest1_tablespace tempfile 'test1tempfile.dbf' size 10m;建立臨時表空間

select file_name from dba_data_files;查詢永久表空間存放的位置

select file_name from dba_temp_files;查詢臨時表空間存放位置

修改表空間:

alter tablespace test1_tableoffline | online設定為離線|聯機狀態

alter tablespace test1_tableread only | read write設定為唯讀|讀寫狀態

修改資料檔案:

alter tablespace test1_table add datafile 'test2_file.dbf' size 10m;新增表空間資料檔案

alter tablespace test1_table drop datafile 'test2_file.dbf' ;刪除表空間檔案,不能刪除建立表空間時建立的資料檔案,除非刪除整個表空間

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使用者名稱 ...

Oracle建立表空間和使用者

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