I have done a FULL (full=y) export on a db. For the import i need to import into a schema. On the second db, i have dropped the user (cascade) and recreated the user with an empty schema. Now i generated the import with the indexfile option to generate the ddl:
imp system file=expfull.dmp fromuser=test touser=test indexfile=index.sql statistics=none ignore=y
In the index file i removed all the REM comments and replaced the default tablespace with the default tablespace for the user on the second db. I ran the import:
imp system file=expfull.dmp fromuser=test touser=test statistics=none ignore=y
I got the following errors (one of many) duringof the import:
I used the indexfile because the user i am importing too has a different tablespace. Once i edited it, i ran the script to create the empty tables et all. Is there another way of doing this?
well that is what i did. I dropped the user and recreated it, however the default tbs is different compared to the db from the export is coming from! Hence the need to edit the export file. Somes tables do get imported however certain rows are not inserted due to constraints!Any ideas?
Davey is right, but if it's that much of pain to have objects in the users default tablespace, why don't you just create new tablespaces with the same names that you had on the old database?
No really...davey23uk has already provided a solution to your problem. One question though, do any of the tables you are importing have LOBS? If so, you'll need to precreate these tables.
Bookmarks