Skip to Main Content

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, val.

Asked: January 07, 2004 - 8:54 am UTC

Last updated: January 08, 2004 - 3:54 pm UTC

Version: 9.0.1.0

Viewed 1000+ times

You Asked

I have performed a full and user database export successfully. When I try and import the file, whether just a table or complete user, the Oracle error 922 is received. I've pasted the script from the import. If I just use SQL and run the script, without the "'s, it works fine. I am trying to import this into a different database that has the same user and tablespaces as the source.

I want to use export/import as a process to perform backups of the database. I did not shutdown the database during the export process.

Here's the error and scripting.

Connected to: Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
With the Partitioning option
JServer Release 9.0.1.1.1 - Production

Export file created by EXPORT:V09.02.00 via conventional path
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
. importing SYSTEM's objects into SYSTEM
. importing OCC's objects into XXX
IMP-00017: following statement failed with ORACLE error 922:
"CREATE TABLE "CT_LOCATION_TAB" ("CT_LOCATION_CODE" NUMBER(2, 0) NOT NULL EN"
"ABLE, "LAST_TICKET_NUMBER" NUMBER(8, 0), "LAST_TICKET_DATE" DATE, "LAST_TIC"
"KET_TIME" NUMBER(6, 0), "MAX_TICKET_NUMBER" NUMBER(8, 0), "LAST_LOAD_ORDER_"
"NUMBER" NUMBER(6, 0), "MAX_LOAD_ORDER_NUMBER" NUMBER(8, 0), "CREATED_BY" VA"
"RCHAR2(30) NOT NULL ENABLE, "MODIFIED_BY" VARCHAR2(30) NOT NULL ENABLE, "CR"
"EATION_DATE" DATE NOT NULL ENABLE, "MODIFICATION_DATE" DATE NOT NULL ENABLE"
", "PRODUCER_CONFIGURATION" NUMBER(1, 0)) PCTFREE 10 PCTUSED 40 INITRANS 1 "
"MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPAC"
"E "IOMS_DATA" LOGGING NOCOMPRESS"
IMP-00003: ORACLE error 922 encountered
ORA-00922: missing or invalid option



Thanks for any help.




and Tom said...

You are taking a 9.2 SQL command from a 9.2 database and trying to execute it in 9.0

"NOCOMPRESS" (for table compression) is a 9iR2 new feature. It is not compatible with 9iR1

That is the cause.

The real issue is you cannot use a version X dmp file to import into version Y when X > Y.

You must use the 9ir1 EXPORT tool against the 9iR2 database in order to create a DMP file that 9iR1 can read and process.

If you want to export from database X into database Y the following will help:


X>Y; use Y's export, use Y's import

X=Y; use either or for each

X<Y; use X's export, Y's import



Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

A reader, January 08, 2004 - 3:54 pm UTC

Tom,

Since you have not pointed to any links let me do it for you.

</code> http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1013202 <code>

:-))

More to Explore

VLDB

If you are new to partitioning, check out Connor McDonald's introduction series here.

VLDB

Documentation set on VLDB and Partitioning.