Oracle expdp按分区导出生成参数文件
使用dba_tab_partitions视图获得每个分区的参数文件内容,使用chr(10)分行
select 'content=data_only'||chr(10)|| 'directory=data_pump_dir'||chr(10)|| 'tables=messeries.test:'||PARTITION_NAME||chr(10)|| 'dumpfile=expdp_test_'||PARTITION_POSITION||'.dmp'||chr(10)|| 'logfile=expdp_test_'||PARTITION_POSITION||'.log' from dba_tab_partitions where table_owner='TEST' and table_name='TEST';
创建par文件,复制每一行内容至单独的par文件
content=data_only directory=data_pump_dir tables=test.test:PART_FIRST dumpfile=expdp_test_1.dmp logfile=expdp_test_1.log
执行以下命令
相关推荐
bfcady 2020-08-16
oraclemch 2020-02-21
LuoXinLoves 2020-01-04
zhangchaoming 2019-10-29
程序方案代码 2019-06-21
nikazhy 2018-11-16
oradbm 2018-05-05
尉微 2017-11-11
Hashxu 2017-07-29
booloot 2017-07-02
sticks00 2017-05-05
lilening 2016-12-11
xuy0 2016-08-03
JaneChiu 2016-05-18
XMM00 2016-03-29
AnLeYe 2016-03-29
jhkj 2015-12-19
lcb0 2015-09-17
limiaoiao 2015-07-08