准备数据: [oracle@sgpc146 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Fri Sep 16 16:48:06 2011 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning and Automatic Storage Management options SQL> select count(1) from "000".tcyang; COUNT(1) ---------- 229728 Elapsed: 00:00:00.03 SQL> [oracle@sgpc146 ~]$ expdp userid=\"/ as sysdba\" DIRECTORY=DATA_EXP dumpfile=sgerp5_tcyang.bak logfile=sgerp5_`date +%b_%d_%H_%M_%S`.log tables="000".tcyang Export: Release 11.2.0.3.0 - Production on Fri Sep 16 16:48:46 2011 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning and Automatic Storage Management options Starting "SYS"."SYS_EXPORT_TABLE_01": userid="/******** AS SYSDBA" DIRECTORY=DATA_EXP dumpfile=sgerp5_tcyang.bak logfile=sgerp5_Sep_16_16_48_46.log tables=000.tcyang Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 25 MB Processing object type TABLE_EXPORT/TABLE/TABLE . . exported "000"."TCYANG" 20.57 MB 229728 rows Master table "SYS"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded ****************************************************************************** Dump file set for SYS.SYS_EXPORT_TABLE_01 is: /orabak/expdp/sgerp5_tcyang.bak Job "SYS"."SYS_EXPORT_TABLE_01" successfully completed at 16:48:56 [oracle@sgpc146 ~]$ dul处理数据: [oracle@sgpc146 s01]$ ./dul Data UnLoader: 10.2.0.5.8 - Internal Only - on Fri Sep 16 16:52:56 2011 with 64-bit io functions Copyright (c) 1994 2011 Bernard van Duijnen All rights reserved. Strictly Oracle Internal Use Only DUL: Warning: Recreating file "dul.log" Reading SCANNEDLOBPAGE.dat 0 entries loaded and sorted 0 entries Reading SEG.dat 0 entries loaded Reading EXT.dat 0 entries loaded and sorted 0 entries Reading COMPATSEG.dat 0 entries loaded DUL> unpump header dump file /orabak/expdp/sgerp5_tcyang.bak; Version is 769 check sum is 1861360017 data pump id is 6783164 master_obj_no is 15237 header blocks is 1 data pump file number is 1 block size is 4096 character set id is 852 master table block offset is 5269 (Master table is at byte offset (5269 -1) * 4096 = 21577728) master table size is 89712 DUL> unpump scan dump file /orabak/expdp/sgerp5_tcyang.bak; Magic number found at offset 4096 Magic number found at offset 21577728 DUL> unpump stream header dump file /orabak/expdp/sgerp5_tcyang.bak from 4096; magic number is 0xffff2424 version is 10 flags is 0x00 meta data length is 6853 relative meta data offset is 4096 table data length is 21560208 relative table data offset is 10952 granule length is 24 relative granule offset is 21571160 Table data from 15048 until 21575256 Meta data character set is 852, ZHS16GBK <?xml version="1.0"?><ROWSET><ROW> <STRMTABLE_T><VERS_MAJOR>1</VERS_MAJOR><VERS_MINOR>2 </VERS_MINOR><VERS_DPAPI>3</VERS_DPAPI><ENDIANNESS>2</ENDIANNESS><CHARSET>ZHS16GBK</CHARSET><NCHARSET>AL16UTF16</NCHARSET><DBTIMEZONE>+08:00</DBTIMEZONE><FDO>0000006001240F050B0C030C0C0504050D0609070805050505050F05050505050A050505050504050607080823472347081123081141B0470083035407D00300000000000000000000000000000000000000000000000000000000000000000000000000</FDO><OBJ_NUM>15234</OBJ_NUM><OWNER_NAME>000</OWNER_NAME><NAME>TCYANG</NAME><PROPERTY>536870912</PROPERTY><COL_LIST><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>1</COL_NUM><INTCOL_NUM>1</INTCOL_NUM><SEGCOL_NUM>1</SEGCOL_NUM><COL_SORTKEY>1</COL_SORTKEY><BASE_INTCOL_NUM>1</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>OWNER</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>30</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>30</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>2</COL_NUM><INTCOL_NUM>2</INTCOL_NUM><SEGCOL_NUM>2</SEGCOL_NUM><COL_SORTKEY>2</COL_SORTKEY><BASE_INTCOL_NUM>2</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>OBJECT_NAME</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>128</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>128</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>3</COL_NUM><INTCOL_NUM>3</INTCOL_NUM><SEGCOL_NUM>3</SEGCOL_NUM><COL_SORTKEY>3</COL_SORTKEY><BASE_INTCOL_NUM>3</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>SUBOBJECT_NAME</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>30</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>30</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>4</COL_NUM><INTCOL_NUM>4</INTCOL_NUM><SEGCOL_NUM>4</SEGCOL_NUM><COL_SORTKEY>4</COL_SORTKEY><BASE_INTCOL_NUM>4</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>OBJECT_ID</NAME><TYPE_NUM>2</TYPE_NUM><LENGTH>22</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>0</CHARSETID><CHARSETFORM>0</CHARSETFORM><CHARLENGTH>0</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>5</COL_NUM><INTCOL_NUM>5</INTCOL_NUM><SEGCOL_NUM>5</SEGCOL_NUM><COL_SORTKEY>5</COL_SORTKEY><BASE_INTCOL_NUM>5</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>DATA_OBJECT_ID</NAME><TYPE_NUM>2</TYPE_NUM><LENGTH>22</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>0</CHARSETID><CHARSETFORM>0</CHARSETFORM><CHARLENGTH>0</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>6</COL_NUM><INTCOL_NUM>6</INTCOL_NUM><SEGCOL_NUM>6</SEGCOL_NUM><COL_SORTKEY>6</COL_SORTKEY><BASE_INTCOL_NUM>6</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>OBJECT_TYPE</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>19</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>19</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>7</COL_NUM><INTCOL_NUM>7</INTCOL_NUM><SEGCOL_NUM>7</SEGCOL_NUM><COL_SORTKEY>7</COL_SORTKEY><BASE_INTCOL_NUM>7</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>CREATED</NAME><TYPE_NUM>12</TYPE_NUM><LENGTH>7</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>0</CHARSETID><CHARSETFORM>0</CHARSETFORM><CHARLENGTH>0</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>8</COL_NUM><INTCOL_NUM>8</INTCOL_NUM><SEGCOL_NUM>8</SEGCOL_NUM><COL_SORTKEY>8</COL_SORTKEY><BASE_INTCOL_NUM>8</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>LAST_DDL_TIME</NAME><TYPE_NUM>12</TYPE_NUM><LENGTH>7</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>0</CHARSETID><CHARSETFORM>0</CHARSETFORM><CHARLENGTH>0</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>9</COL_NUM><INTCOL_NUM>9</INTCOL_NUM><SEGCOL_NUM>9</SEGCOL_NUM><COL_SORTKEY>9</COL_SORTKEY><BASE_INTCOL_NUM>9</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>TIMESTAMP</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>19</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>19</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>10</COL_NUM><INTCOL_NUM>10</INTCOL_NUM><SEGCOL_NUM>10</SEGCOL_NUM><COL_SORTKEY>10</COL_SORTKEY><BASE_INTCOL_NUM>10</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>STATUS</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>7</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>7</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>11</COL_NUM><INTCOL_NUM>11</INTCOL_NUM><SEGCOL_NUM>11</SEGCOL_NUM><COL_SORTKEY>11</COL_SORTKEY><BASE_INTCOL_NUM>11</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>TEMPORARY</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>1</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>1</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>12</COL_NUM><INTCOL_NUM>12</INTCOL_NUM><SEGCOL_NUM>12</SEGCOL_NUM><COL_SORTKEY>12</COL_SORTKEY><BASE_INTCOL_NUM>12</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>GENERATED</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>1</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>1</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>13</COL_NUM><INTCOL_NUM>13</INTCOL_NUM><SEGCOL_NUM>13</SEGCOL_NUM><COL_SORTKEY>13</COL_SORTKEY><BASE_INTCOL_NUM>13</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>SECONDARY</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>1</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>1</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>14</COL_NUM><INTCOL_NUM>14</INTCOL_NUM><SEGCOL_NUM>14</SEGCOL_NUM><COL_SORTKEY>14</COL_SORTKEY><BASE_INTCOL_NUM>14</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>NAMESPACE</NAME><TYPE_NUM>2</TYPE_NUM><LENGTH>22</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>0</CHARSETID><CHARSETFORM>0</CHARSETFORM><CHARLENGTH>0</CHARLENGTH></COL_LIST_ITEM><COL_LIST_ITEM><OBJ_NUM>15234</OBJ_NUM><COL_NUM>15</COL_NUM><INTCOL_NUM>15</INTCOL_NUM><SEGCOL_NUM>15</SEGCOL_NUM><COL_SORTKEY>15</COL_SORTKEY><BASE_INTCOL_NUM>15</BASE_INTCOL_NUM><BASE_COL_TYPE>0</BASE_COL_TYPE><PROPERTY>14336</PROPERTY><NAME>EDITION_NAME</NAME><TYPE_NUM>1</TYPE_NUM><LENGTH>30</LENGTH><NOT_NULL>0</NOT_NULL><CHARSETID>852</CHARSETID><CHARSETFORM>1</CHARSETFORM><CHARLENGTH>30</CHARLENGTH></COL_LIST_ITEM></COL_LIST></STRMTABLE_T></ROW></ROWSET> DUL> unpump table "000"."TCYANG" ("OWNER" VARCHAR2(30), "OBJECT_NAME" VARCHAR2(128), "SUBOBJECT_NAME" VARCHAR2(30), "OBJECT_ID" NUMBER, "DATA_OBJECT_ID" NUMBER, "OBJECT_TYPE" VARCHAR2(19), "CREATED" DATE, "LAST_DDL_TIME" DATE, "TIMESTAMP" VARCHAR2(19), "STATUS" VARCHAR2(7), "TEMPORARY" VARCHAR2(1), "GENERATED" VARCHAR2(1), "SECONDARY" VARCHAR2(1), "NAMESPACE" NUMBER, "EDITION_NAME" VARCHAR2(30)) dump file /orabak/expdp/sgerp5_tcyang.bak from 15048 until 21575256; 229728 rows unloaded DUL> exit Life is DUL without it [oracle@sgpc146 s01]$ 验证数据: SQL> truncate table "000".tcyang; Table truncated. Elapsed: 00:00:00.03 SQL> [oracle@sgpc146 s01]$ sqlldr userid=\"/ as sysdba\" control=/s01/000_TCYANG.ctl log=/s01/tcyang.log Commit point reached - logical record count 229545 Commit point reached - logical record count 229609 Commit point reached - logical record count 229673 Commit point reached - logical record count 229728 [oracle@sgpc146 s01]$ more tcyang.log SQL*Loader: Release 11.2.0.3.0 - Production on Fri Sep 16 17:21:47 2011 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Control File: /s01/000_TCYANG.ctl Data File: 000_TCYANG.dat Bad File: /s01/000_TCYANG.bad Discard File: none specified (Allow all discards) Number to load: ALL Number to skip: 0 Errors allowed: 50 Bind array: 64 rows, maximum of 256000 bytes Continuation: none specified Path used: Conventional Table "000"."TCYANG", loaded from every logical record. Insert option in effect for this table: INSERT Column Name Position Len Term Encl Datatype ------------------------------ ---------- ----- ---- ---- --------------------- "OWNER" FIRST 10 WHT | CHARACTER "OBJECT_NAME" NEXT 30 WHT | CHARACTER "SUBOBJECT_NAME" NEXT 27 WHT | CHARACTER "OBJECT_ID" NEXT 5 WHT | CHARACTER "DATA_OBJECT_ID" NEXT 5 WHT | CHARACTER "OBJECT_TYPE" NEXT 18 WHT | CHARACTER "CREATED" NEXT * WHT | DATE DD-MON-YYYY AD HH24:MI:SS "LAST_DDL_TIME" NEXT * WHT | DATE DD-MON-YYYY AD HH24:MI:SS "TIMESTAMP" NEXT 19 WHT | CHARACTER "STATUS" NEXT 5 WHT | CHARACTER "TEMPORARY" NEXT 1 WHT | CHARACTER "GENERATED" NEXT 1 WHT | CHARACTER "SECONDARY" NEXT 1 WHT | CHARACTER "NAMESPACE" NEXT 2 WHT | CHARACTER Table "000"."TCYANG": 229728 Rows successfully loaded. 0 Rows not loaded due to data errors. 0 Rows not loaded because all WHEN clauses were failed. 0 Rows not loaded because all fields were null. Space allocated for bind array: 43008 bytes(64 rows) Read buffer bytes: 1048576 Total logical records skipped: 0 Total logical records read: 229728 Total logical records rejected: 0 Total logical records discarded: 0 Run began on Fri Sep 16 17:21:47 2011 Run ended on Fri Sep 16 17:21:53 2011 Elapsed time was: 00:00:06.18 CPU time was: 00:00:01.66 SQL> select count(1) from "000".tcyang; COUNT(1) ---------- 229728 Elapsed: 00:00:00.03 SQL>