测试环境是:DB: 11.2.0.3 ,10.2.0.4 OS:RHEL 4.8
把Oracle 10G中的stored outline数据迁移到11G中
1,导出测试表中的数据
- [oracle10g@rhel4 sql]$ expdp scott/oracle tables=test1directory=testdumpfile=test1.dmp;
- Export: Release 10.2.0.4.0 - 64bit Production on Saturday, 06 April, 2013 21:14:00
- Copyright (c) 2003, 2007, Oracle. All rights reserved.
- Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- Starting "SCOTT"."SYS_EXPORT_TABLE_01": scott/******** tables=test1directory=testdumpfile=test1.dmp
- Estimate in progress using BLOCKS method...
- Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
- Total estimation using BLOCKS method: 2.875 GB
- Processing object type TABLE_EXPORT/TABLE/TABLE
- Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
- Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
- Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
- . . exported "SCOTT"."TEST1" 4.636 MB 50091 rows
- Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
- ******************************************************************************
- Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
- /tmp/test1.dmp
- Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 21:14:18
2,导出stored outline,name为new_outline_1
- [oracle10g@rhel4 tmp]$ expdp outln/oracle directory=testTABLES=(OL\$,OL\$HINTS,OL\$NODES) dumpfile=outln.dmp parfile=query.par
- Export: Release 10.2.0.4.0 - 64bit Production on Saturday, 06 April, 2013 21:46:18
- Copyright (c) 2003, 2007, Oracle. All rights reserved.
- Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- Starting "OUTLN"."SYS_EXPORT_TABLE_02": outln/******** directory=testTABLES=(OL$,OL$HINTS,OL$NODES) dumpfile=outln.dmp parfile=query.par
- Estimate in progress using BLOCKS method...
- Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
- Total estimation using BLOCKS method: 640 KB
- Processing object type TABLE_EXPORT/TABLE/TABLE
- Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
- Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
- Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
- Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
- Processing object type TABLE_EXPORT/TABLE/POST_TABLE_ACTION
- . . exported "OUTLN"."OL$HINTS" 11.59 KB 5 rows
- . . exported "OUTLN"."OL$" 9.070 KB 1 rows
- . . exported "OUTLN"."OL$NODES" 7.078 KB 1 rows
- Master table "OUTLN"."SYS_EXPORT_TABLE_02" successfully loaded/unloaded
- ******************************************************************************
- Dump file set for OUTLN.SYS_EXPORT_TABLE_02 is:
- /tmp/outln.dmp
- Job "OUTLN"."SYS_EXPORT_TABLE_02" successfully completed at 21:46:23
- [oracle10g@rhel4 tmp]$ cat query.par
- query=ol$:"where ol_name=upper('new_outline_1')",OL$HINTS:"where ol_name=upper('new_outline_1')",OL$NODES:"where ol_name=upper('new_outline_1')"
- [oracle10g@rhel4 tmp]$