Home » RDBMS Server » Server Utilities » exp 10.2 & imp 10.1
exp 10.2 & imp 10.1 [message #176967] Mon, 12 June 2006 04:37 Go to next message
asangapradeep
Messages: 128
Registered: October 2005
Location: UK
Senior Member
Hi,

Is it possible to do an import to a 10.1 database from a file that was exported from a 10.2 database? i've tried and it fails giving the following error.
Quote:


IMP-00008: unrecognized statement in the export file:



Any workaround this?

thanks for your help


Re: exp 10.2 & imp 10.1 [message #176974 is a reply to message #176967] Mon, 12 June 2006 05:06 Go to previous messageGo to next message
Frank Naude
Messages: 4587
Registered: April 1998
Senior Member
As you already discovered, it is not possible.

Try exporting the 10.2 database with 10.1's export utility.
Re: exp 10.2 & imp 10.1 [message #176975 is a reply to message #176967] Mon, 12 June 2006 05:06 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
use lower version of exp to export the data
and same lower version of imp to import the data.
In this case, may be the file is corrupt. did you transfer/ftp the file from a server to another? Make sure you transfer the file in bin mode.
Re: exp 10.2 & imp 10.1 [message #176979 is a reply to message #176967] Mon, 12 June 2006 05:09 Go to previous messageGo to next message
orausern
Messages: 826
Registered: December 2005
Senior Member
to import into 10.1 database, the regular export utility of 10.2 database can not be used, you have to export , using export utility of 10.1 database.

See the docs at:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1013164

Quote:


The Import utility and the database to which data is being imported (the target database) must be the same version.

The version of the Export utility must be equal to the earliest version of the source or target database.

For example, to create an export file for an import into a later release database, use a version of the Export utility that is equal to the source database. Conversely, to create an export file for an import into an earlier release database, use a version of the Export utility that is equal to the version of the target database.





check if you get this error after exporting the 10.2 db with 10.1 export utility.

Re: exp 10.2 & imp 10.1 [message #176987 is a reply to message #176979] Mon, 12 June 2006 05:31 Go to previous messageGo to next message
asangapradeep
Messages: 128
Registered: October 2005
Location: UK
Senior Member
Hi Guys,

Thanks for your help. i've tried what the document said but still no result. what i did was back up the 10.2 exp file in the $ORACLE_HOME/bin to exp.10.2 and copy the exp file from the 10.1 to the same location. then ran the usual exp tbx/tbx file=... command. it seems the utility is unable to connect to the database. what is that i'm doing wrong? please help

thank you.
Re: exp 10.2 & imp 10.1 [message #176993 is a reply to message #176987] Mon, 12 June 2006 06:04 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You should have either

a) invoked EXP 10.1 from its original location, for example

EXP oracle\10.1\bin\exp username/password ...

b) set to the 10.1 directory and run export utility from there

CD oracle\10.1\bin\
EXP username/password ...

I guess that copying .exe file won't do much good in this case.
Re: exp 10.2 & imp 10.1 [message #176997 is a reply to message #176967] Mon, 12 June 2006 06:21 Go to previous message
asangapradeep
Messages: 128
Registered: October 2005
Location: UK
Senior Member

Hi Guys,

Thank you for all the help. it's fine now. my 10.2 and 10.1 databases were on two different servers. so gave the tns name for the source db in the exp utility (exp tbx/tbx@newdb file=..)and now i'm exp/imp without any problem.

Cheers
Previous Topic: sql loader
Next Topic: SQL*Loader convert Char to NULL
Goto Forum:
  


Current Time: Thu Dec 26 07:59:50 CST 2024