Advertisement

06.25.2008 at 07:22AM PDT, ID: 23514546 | Points: 350
[x]
Attachment Details

copy oracle table between schema's with user defined Array datatype

Asked by ODOTServer in Oracle 10.x

Tags: ,

Hello experts. I recently imported a schema into another test schema. Several tables did not come through even though I had replicated the user object and array types prior to the import.
I am trying to recreate these problem tables manually but I cannot get the data to come across.

First I tried to create table hpms_validate_log as select * from old_schema.hpms_validate_log. I receive the following error : ora-00902: invalid datatype.

Second I created the table hpms_validate_log from the old_schema's DDL then tried to insert the values.
insert into hpms_validate_log (select * from old_schema.hpms_validate_log)
I received this error message: ORA-00932 inconsistent datatypes expected new_schema.cross_va got old_schema.cross_va.    
CROSS_VA is the ARRAY type which is made up of object type CROSS_TY.
CROSS_TY is two varchar 2 fields.
I have verified these ARRAY and OBJECT types are identical between the two schemas.

Thanks for the assistance.Start Free Trial
 
Loading Advertisement...
 
[+][-]06.25.2008 at 10:07AM PDT, ID: 21867759

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 10:30AM PDT, ID: 21867966

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 11:45AM PDT, ID: 21868652

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.13.2008 at 03:15PM PST, ID: 22955827

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628