为什么我得到" ORA-00922:缺少或无效的选项"从Oracle模式导出数据时?

时间:2013-08-01 23:32:51

标签: database oracle backup runtime-error database-backups

我正在运行Oracle 11g的导出:

$ expdp system/ELIDED JOB_NAME=exp_BTM2CATS SCHEMAS=BTM2CATS file=btm2cats-%u.dmp DIRECTORY=DP_DIR filesize=1900M CONSISTENT=Y DIRECT=Y

Export: Release 11.2.0.1.0 - Production on Wed Jul 31 22:44:29 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Legacy Mode Active due to the following parameters:
Legacy Mode Parameter: "consistent=TRUE" Location: Command Line, Replaced with: "flashback_time=TO_TIMESTAMP('2013-07-31 22:44:29', 'YYYY-MM-DD HH24:MI:SS')"
Legacy Mode Parameter: "direct=TRUE" Location: Command Line, ignored.
Legacy Mode Parameter: "file=btm2cats-110.dmp" Location: Command Line, Replaced with: "dumpfile=btm2cats-2.dmp"
Legacy Mode has set reuse_dumpfiles=true parameter.

...并收到错误:

...
ORA-31693: Table data object "BTM2CATS"."APM_PACKAGE_VERSIONS" failed to load/unload and is being skipped due to error:
ORA-00922: missing or invalid option
...

我看到引用的所有其他ORA-00922错误都是在调用“CREATE TABLE”或者可能是相关的“ALTER”时。此错误似乎不适合在正确调用的expdp调用过程中发生。任何人都可以解释这个错误在这种情况下的意义以及我可以做些什么来尝试修复它?

1 个答案:

答案 0 :(得分:1)

  1. 更改CONSISTENT = Y. to flashback_time = systimestamp。
  2. 删除DIRECT = Y. (你可以认为expdp总是使用直接路径,只要有可能)。
  3. 更改FILE =参数 到DUMPFILE =参数。
  4. 所以你不会使用传统模式。看看这是否解决了ORA​​-922问题。