Home » RDBMS Server » Server Utilities » IMPDP ERROR ORA-31693: on ORACLE VIRTUAL COLUMN with Not null (Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production)
IMPDP ERROR ORA-31693: on ORACLE VIRTUAL COLUMN with Not null [message #588137] Fri, 21 June 2013 04:42 Go to previous message
arulsaran
Messages: 26
Registered: May 2013
Location: bangalore
Junior Member
Hi Team,

I am having issue with IMPDP on ORACLE VIRTUAL COLUMNS.

I am having following table with Virtual column defined with Not null. Expdp is fine without any issue.

DDL :
------
CREATE TABLE alert_hist
(
alertky INTEGER NOT NULL,
alertcreatedttm TIMESTAMP(6) DEFAULT systimestamp NOT NULL,
alertcreatedt DATE GENERATED ALWAYS AS (To_date(Trunc("alertcreatedttm"))) VIRTUAL NOT NULL
)
/

When I do the import (IMPDP) it got failed with the following error.

. . imported "TESTSCHEMA"."VALART" 359.1 KB 4536 rows
ORA-31693: Table data object "TESTSCHEMA"."ALERT_HIST" failed to load/unload and is being skipped due to error:
ORA-39097: Data Pump job encountered unexpected error -1

After that I dropped the Virtual Not null column and recreated that column with Nullable.

DDL :
-----
alter table alert_hist drop column alertcreatedt;
alter table alert_hist add alertcreatedt DATE GENERATED ALWAYS AS (To_date(Trunc("alertcreatedttm"))) VIRTUAL;

After that I took the expdp and impdp , it went fine with out any issue.

Need help on this , why the import is failing with the virtual not null columns.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Master child sequence load in sql loader
Next Topic: IMP-00010: not a valid export file, header failed verification
Goto Forum:
  


Current Time: Thu Apr 25 16:28:06 CDT 2024