oracle中啟用 禁用表空間 表壓縮

2021-06-06 04:31:32 字數 551 閱讀 7721

alter table t compress;

alter table t nocompress;

select owner,table_name,compression from dba_tables where owner='scott';

alter tablespace users default compress;

alter tablespace users default nocompress;

select tablespace_name,def_tab_compression from dba_tablespaces;

dba_table.compression及dba_tablespaces.def_tab_compression取值為enabled,disabled。

表壓縮在資料塊級生效,資料塊內包含壓縮所需的所有資訊。

如果表中已經資料且compress為disabled,那麼把錶改為壓縮後,僅對更改之後的資料塊起作用。可用:alter table t move compress來使所有的塊更改為壓縮塊。

Oracle表空間 表

表 table 表空間是對儲存系統檔案 使用者資訊等資料的乙個空間。oracle表空間屬於oracle中的儲存結構,是由資料檔案組成,乙個資料庫例項可以有n個表空間,每個資料庫至少有乙個表空間 system表空間 乙個表空間下可以有n張表。可以通過表空間來實現對oracle的調優 oracle資料庫...

Oracle 表空間和臨時表空間

表空間 此空間是用來進行資料儲存的 表 function 儲存過程等 所以是實際物理儲存區域。臨時表空間 主要用途是在資料庫進行排序運算 如建立索引 order by及group by distinct union intersect minus sort merge及join analyze命令 ...

oracle 啟用禁用限制會話

使用者登入,報 sql conn sys oracle 4u 192.168.133.120 1521 orcl as sysdba error ora 12526 tns 監聽程式 所有適用例程都處於受限模式 表明現在伺服器端為限制會話模式,一般在某種情況下,比如資料庫將進行公升級等維護,不需要其...