Trying CLOB data recovery of 10g (Windows platform)
Following is a example of recover CLOB data of Oracle Windows 10g R2 using the AUL 4, let's create the demo table first:
SQL> CREATE TABLE T_CLOBDEMO
2 (
3 ID NUMBER,
4 CLOB1 CLOB,
5 CLOB2 CLOB,
6 CLOB3 CLOB
7 )
8 LOB(CLOB3) STORE AS (DISABLE STORAGE IN ROW)
9 /
Table created.
SQL> INSERT INTO T_CLOBDEMO VALUES (1,'INLINE CLOB', NULL,NULL);
1 row created.
Then connect to sys and issue an checkpoint command to make sure the data actually written to data files. For column CLOB2 and CLOB3, they contain no data (null value). column CLOB1 contains a very small value, I am testing the inline CLOB now, let's store the CLOB data with the same file (output to screen) of other columns:
AUL> set lob_convert 1
Current LOB_CONVERT is : 1-GBK
AUL> set lob_storage 0
Current LOB_STORAGE is : 0-INLINE
AUL> set clob_edian big
Current CLOB_EDIAN is : BIG
AUL> unload table anysql.t_clobdemo;
2006-12-17 19:38:08
Unload OBJD=9956 FILE=4 BLOCK=4611 CLUSTER=0 ...
1|INLINE CLOB
2006-12-17 19:38:08
Seems we have successfully recovered the data in CLOB1 column. Now we will start larger LOB values, I will using AnySQL to populate CLOB2/CLOB3 columns with a 64KB text file, as following:
