資料遷移 查詢佔表空間最多的表

2021-10-01 02:55:40 字數 367 閱讀 9002

--查詢資料庫中佔表空間最大的表,然後如果是資料業務表,那麼可以選擇單獨匯出或者不匯出

select s.bytes/

1024

/1024

||'m' mbytes,s.

*from user_segments s order

by bytes desc

--再查詢是否有含有clob欄位的表

select t.column_name, data_type, table_name from user_tab_columns t where data_type=

'clob'

--使用plsql選擇單獨匯出或者是複製這張表等操作

ORACLE查詢表空間和各個表在空間佔記憶體情況

各個表在空間佔記憶體情況 select segment name,tablespace name,bytes b,bytes 1024 kb,bytes 1024 1024 mb from user segments where segment type table and tablespace n...

遷移表 索引的表空間

正常情況下的修改指令碼 1.修改表的空間 alter table table name move tablespace tablespacename 查詢當前使用者下的所有表 select alter table table name move tablespace tablespacename f...

oracle遷移表空間

可遷移表空間 使用可遷移表空間 transportable tablespaces 的特性在資料庫之間移動大量資料,效能比export import和unload load要快很多,因為它遷移表空間只需要複製資料檔案和插入表空間元資料到目標資料庫中。遷移表空間對以下應用特別有用 分階段將oltp的資...