|
本帖最后由 todayboy 于 2012-2-10 17:21 编辑
我今天测试分区表也有这个问题,我这个表有1.5亿多数据:
我是先导入,再建index:
[oracle@ora zxw]$ date && impdp hmbarcode/password tables=barcode_master exclude=constraint,index,grant content=data_only directory=dump_dir dumpfile=hmbarcode.2012-02-08_%U.dmpd parallel=2 job_name=barcode_master_job logfile=hmbarcod_impdp.log && date
Fri Feb 10 15:10:34 CST 2012
Import: Release 10.2.0.1.0 - 64bit Production on Friday, 10 February, 2012 15:10:34
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Master table "HMBARCODE"."BARCODE_MASTER_JOB" successfully loaded/unloaded
Starting "HMBARCODE"."BARCODE_MASTER_JOB": hmbarcode/******** tables=barcode_master exclude=constraint,index,grant content=data_only directory=dump_dir dumpfile=hmbarcode.2012-02-08_%U.dmpd parallel=2 job_name=barcode_master_job logfile=hmbarcod_impdp.log
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "HMBARCODE"."BARCODE_MASTER" 14.44 GB 156285000 rows
Job "HMBARCODE"."BARCODE_MASTER_JOB" successfully completed at 15:19:03
CREATE UNIQUE INDEX FOR_PK_BARCODE_LOCAL ON BARCODE_MASTER
( CASE_BARCODE, JEJO_NO, MIDDLE_BARCODE, LARGE_BARCODE, JEPUM_CODE)
local nologging parallel 4;
create index 大概花了一个小时左右
对了 create index 前 执行:
SQL> alter tablespace barcode2010 nologging;
SQL> alter tablespace barcode2012 nologging;
这样就能产生很少的LOG
|
|