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.

    也即在導入表時,原表的相關屬性不進行導入。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章