nohup expdp system/oracle DIRECTORY=dir_20121212 DUMPFILE=lhjt_%U.dmp LOGFILE=lhjt20121212.log parfile=/u01/app/oracle/bak20121212/par.par parallel=4 job_name=20121212a &
-bash-3.2$ cat par.par
SCHEMAS = LHJT2012
COMPRESSION=DATA_ONLY
CLUSTER=N
INCLUDE=TABLE:"IN ('T_IM_INVENTORY','T_IM_INVENTORYBALANCE','T_BD_MATERIAL','T_BD_MATERIALGROUP','T_BD_MATERIALGROUPDETIAL','T_BD_MATERIALGROUPSTANDARD','T_ORG_COMPANY','T_ORG_ADMIN','T_BD_PERIOD','T_ORG_STORAGE','T_BD_CUSTOMER','T_BD_CSSPGROUP','T_BD_CSSPGROUPSTANDARD','T_BD_CUSTOMERGROUPDETAIL','T_BD_PERIOD','T_BD_MEASUREUNIT','T_BD_MEASUREUNITGROUP','T_BD_MEASUREUNITGROUPRELATION','T_IM_OTHERINWAREHSBILL','T_IM_OTHERINWAREHSBILLENTRY','T_IM_PURINWAREHSBILL','T_IM_PURINWAREHSENTRY','T_IM_PURINWAREHSVOUCHER','T_IM_MANUFACTURERECBILL','T_IM_MANUFACTURERECBILLENTRY','T_IM_MOVEINWAREHSBILL','T_IM_MOVEINWAREHSBILLENTRY','T_IM_SALEISSUEBILL','T_IM_SALEISSUEENTRY','T_IM_MOVEISSUEBILL','T_IM_MOVEISSUEBILLENTRY','T_IM_MATERIALREQBILL','T_IM_MATERIALREQBILLENTRY','T_IM_OTHERISSUEBILL','T_IM_OTHERISSUEBILLENTRY')"
-bash-3.2$
--question
Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39071: Value for INCLUDE is badly formed.
ORA-00936: missing expression
--没写parfile文件,直接把include的内容写到expdp语句里的话,需要添加转移字符 \ ,比较麻烦所以建议放到partfile里就解决该问题了。
Estimate in progress using BLOCKS method...
Total estimation using BLOCKS method: 0 KB
ORA-39165: Schema LHJT2012 was not found.
ORA-39168: Object path TABLE was not found.
ORA-31655: no data or metadata objects selected for job
Job "SYSTEM"."20121212" completed with 3 error(s) at 20:00:24
--include 中table应该全部改成大写就可以了解决该问题了。全部修改大写,可以借助word工具有个' Aa ' 的那个图标。
ORA-31617: unable to open dump file "/u01/app/oracle/bak20121212/lhjt_03.dmp" for write
ORA-19505: failed to identify file "/u01/app/oracle/bak20121212/lhjt_03.dmp"
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-19505: failed to identify file "/u01/app/oracle/bak20121212/lhjt_03.dmp"
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
--如果是rac环境,expdp时需要添加CLUSTER=N 参数
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORA-39005: inconsistent arguments
ORA-39055: The COMPRESSION feature is not supported in version 10.2.5.0.
--不能使用压缩,去掉COMPRESSION=DATA_ONLY ,问题解决。
Copyright (c) 2003, 2007, Oracle. All rights reserved.
;;;
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39000: bad dump file specification
ORA-39142: incompatible version number 3.1 in dump file "/home/oracle/bak20121213/lhjt_01.dmp"
--导出时应加version定义导入时的数据库版本