I am trying to speed up the import of a database (it usually takes over 8 hours).
I am using the following command to perform the import, it runs, however when I do a count on the importing database the indexes are being created, I specifically don't want it to do this.
I beleive that when you do a full import (full=y) this will override the indexes=n parameter with indexes=y. One way to overcome this would be to do a full export and bring in the tables a schema at a time. You could then specify indexes=n
Writing a shell script to import the tables 1 by 1 wouldn't be that bad. You just have to output the tables and paste them into a file- then paste in the appropriate imp command that excludes the indexes. This should be too much of an effort.
[url]http://www.timonions.com/[/url]
has some reverse engineering scripts that will spit out the table names for 1 or all users.
Is there really no way of doing a full import but specifying indexes=n
If I use a parfile to specify full and then outside the parfile specify indexes=n would that work (I read that the last option read overwrites previous ones)
I have an extra query to add to the above information.
I ran the import using the following parameters
imp73 username/password@database file=f:\oradba\admin\exp\fullexport.dmp indexes=n full=y buffer=300000000 commit=n ignore=y
I understood that the full=y overwrites the indexes=n
I did get indexes imported however not all of them.
At last import with indexes=y I imported 756
With indexes=n I only got 369
All the tables imported correctly
I got no errors in my import log either time
This is running on a test db, which is a replica of production.
I would be grateful if anyone could shed any light on this
Can you check what kind of indexes created when you specify
indexes=n?
Because when import utility will create system generated indexes such as LOB index, OID index and unique constraint index (include primary key) regardless of the setting of INDEXES parameter. Set INDEXES=N only disable the creation of user generated indexes.
I think this is the reason you got different result when you use different setting.
Bookmarks