Link to home
Start Free TrialLog in
Avatar of Sudhanshum
Sudhanshum

asked on

11G to 9i import table not working

I tried to export 11G table and want to import that table but getting error.
On 11G database I have used below command:
exp SCHEMA1/password@DB1File=HISTORYDATA.dmp log=HISTORYDATA.log tables=(HISTORYDATA)

AND Tried to import that on 9i database using below command but getting error.
imp SCHEMA2/Password@DB2File=HISTORYDATA.dmp FromUser=Schema1 ToUser=Schema2 tables=(HISTORYDATA)
and error is Not a vaild export file, header failed verification

 Please help me to give solution.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

If it will connect, which I doubt, I believe you have to use the 9i export against the 11g database.

If that fails, you can try going through an intermediate 10g database or use spool to generate CSV and SQL*Loader.
Avatar of Sudhanshum

ASKER

what is 9i export against the 11g database.?
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you might be able to setup a database link to the 9i

or you'll have a lot of work:
https://docs.oracle.com/database/121/SUTIL/GUID-F8DEC519-5868-42C3-AD7A-7FA28F82983A.htm#SUTIL2857
slightwv is correct - you always have to export with the lowest exp version of source and target, and import with the target one. More recent imp's can read older formats, but not vice versa.

Otherwise, you can use SQL*Developer to create a CSV file or INSERT statements, as you only want to export content of a single table.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial