expdp ORA-14460: only one COMPRESS or NOCOMPRESS clause may be specified

问题:

使用impdp 导入数据是,出现ORA-14460错误,无法正确导入数据。

Processing object type TABLE_EXPORT/TABLE/TABLE

ORA-39083: Object type TABLE:"SCOTT"."EMP" failed to create with error:

ORA-14460: only one COMPRESS or NOCOMPRESS clause may be specified

Failing sql is:

CREATE TABLE…………

解决方法:

在导入语句中加入:TRANSFORM=segment_attributes:n

加入此参数的意义在于,可与忽略expdp导出时附带的相关表空间和存储子句约束。

注释:

-bash-3.00$ oerr ora 14460

14460, 00000, "only one COMPRESS or NOCOMPRESS clause may be specified"

// *Cause: COMPRESS was specified more than once, NOCOMPRESS was specified more

//     than once, or both COMPRESS and NOCOMPRESS were specified.

// *Action: specify each desired COMPRESS or NOCOMPRESS clause option only once.

-bash-3.00$

新增参数解释:TRANSFORM=segment_attributes:n

  • SEGMENT_ATTRIBUTES:[Y | N]

    If the value is specified as Y, then segment attributes (physical attributes, storage attributes, tablespaces, and logging) are included, with appropriate DDL. The default is Y.

    也即在导入表时,原表的相关属性不进行导入。



你可能感兴趣的:(impdp,ORA-14460,ORA-39083)