天天看點

oracle 同步 圖檔 clob 到另一張表,Oracle 遷移一個帶lob的表到另一個表空間

一個表用了clob字段,CLOB裡存的是2進制,一般用來存圖檔。

原因:

發現一個表空間快滿了,查詢發現是下面一個表空間對像占用表空間

1.

--查詢一個表空間裡所有表占用空間大小

select segment_name, tablespace_name, sum(bytes / 1024 / 1024)

from dba_extents

where tablespace_name = ‘表空間名大寫‘

group by segment_name, tablespace_name

order by 3 desc;

--end--

2.

--檢視該lob存儲的表

select object_name,status from dba_objects where object_id=‘0000563464‘;

檢視是 CUST_INFO_PHOTO這張表使用了lob字段

LOBSEGMENT的系統命名規則是

SYS_LOB(10 digit object_id)C(5 digit col#)

--導出一張表的前100行

expdp test/test directory=my_dir dumpfile=t.dmp include=table query="‘where rownum<=100‘"

原文:https://www.cnblogs.com/flash100/p/14459961.html