how to impdp a schema that has tables with embedded sequences
Hello,
I have a schema created in Oracle 12c that has tables defined with columns that are sequences similar to this
CREATE TABLE "schema1"."PERSON"
( "ENTITY_NO" NUMBER(*,0) DEFAULT "schema1"."SEQPERSON"."NEXTVAL",
"PREFIX_NO" NUMBER(*,0),
"FIRST_NAME" VARCHAR2(100 BYTE),
"MIDDLE_NAME" VARCHAR2(100 BYTE),
"LAST_NAME" VARCHAR2(100 BYTE)
,morecolumns
)
I need to copy schema1 from one Oracle 12c instance to another using expdp and impdp. The .dmp file is created but I am having troubles getting the data imported into the second instance. I created the new schema owner and granted DBA privileges and quota on our application data tablespaces. All impdp commands include the REMAP_SCHEMA=origschema:schema1 parameter.