Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Import problems when defragmenting a database
Hi,
Last time I defragged one of the databases here, I had a lot of problems while re-importing my full datasase export.
I proceeded by:
I stumbled accross many problems
This seemed to cause problems. For example, some users owned database links in the database, when they got recreated, the import would not be able to re-create the database links because the users where not granted the "create database link" privilege (It had been granted temporarily only to create the database link in the past and revoked immediatly after)
This lead to a myriad of other problems. Those users had synonyms that pointed to tables accross the databse links, those synonyms where invalid because the db link were not recreated. The users also had packages and procedures and views that used those synonyms and the packages etc were therefore invalid
Well, the import was a total mess.
Now, I have to defrag a new database and I'm wondering what to do to totally eliminate any pitfalls.
Before I restart the import, I think I should first recreate:
Is this a good way to do it ? Any other advice ? Does anyone know of a script that would create a script to recreate my users (with the correct passwords) in the new database ?
What about a script to recreate the tablespaces ?
Thanks
![]() |
![]() |