Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export from Oracle 10g database with 11g client

Database Version : 10g Enterprise Edition Release 10.2.0.4.0

Client Version: 11g Enterprise Edition Release 11.2.0.1.0 (windows 7 64bit)

When I try to export (exp) a table from database:

exp usr/pass@remote_db file=f.dmp tables=table

I get the following error:

EXP-00008: ORACLE error 904 encountered

ORA-00904: "POLTYP": invalid identifier

EXP-00000: Export terminated unsuccessfully

I searched about it on the net and I understand that the problem is version incompatibility.

What do you advice me to do about it?

NOTE: I also tried to export with data pump but it gives:

UDE-00018: Data Pump client is incompatible with database version 10.2.0.4.0
like image 900
bonsvr Avatar asked Dec 21 '11 16:12

bonsvr


People also ask

Can Oracle 11g client connect to 10g database?

There is commonly no problem to connect to an older Oracle database with a newer client driver, e.g. to connect to a 10g or 11g database with a 12g Client.

How do I export data from Oracle Database?

Using the main menu, select Tools->Database Export. An Export wizard will open. At the top of the screen, enter a directory and file name.


1 Answers

Generally speaking, Oracle export is not backward compatible with prior releases. You'll need to use the 10g export on the 10g database. Get the 10g client and install it with the database utilities option to get the exp/imp tools. On the flip side, Oracle imp is generally backward compatible with prior releases of exp.

like image 74
DCookie Avatar answered Oct 01 '22 00:10

DCookie