I took a full export of 9i db and after creating the necessary users in the newly created 9i db, i imported it.
In one of the users, all the objects are there but most of the views are invalid and if i try to compile them,it says table does not exist.But that table exists .
what might be the reason? if it is related to priveleges, how to determine what all priveleges that needs to be created before I again begin the Import ?
I took a full export of 9i db and after creating the necessary users in the newly created 9i db, i imported it.
In one of the users, all the objects are there but most of the views are invalid and if i try to compile them,it says table does not exist.But that table exists .
what might be the reason? if it is related to priveleges, how to determine what all priveleges that needs to be created before I again begin the Import ?
thanks
If you did a full export as system then you should import all of the privileges that you need. However, if you did the export/import as the schema owner then you might be missing some of the privileges. Look at dba_dependencies to see what priviliges you need. You should be able to create dynamic sql to do the grants. But even better would be to go back to the source database and do an export of grants only and import those grants into the new database. This should solve your problem.
Thanks, Since I have already done the import, what is the best way to proceed regarding grants. I want the objects to be valid. While importing, I had done the import of the user with grants =Y also. So, do you think it is better that I export and import for the remaining users with grants=Y so that this problem is solved ?
Originally posted by surnag Thanks, Since I have already done the import, what is the best way to proceed regarding grants. I want the objects to be valid. While importing, I had done the import of the user with grants =Y also. So, do you think it is better that I export and import for the remaining users with grants=Y so that this problem is solved ?
Thanks for your reply. But i was assuming that grants will also be exported since its default=Y.
Once i am done with the below, dot you think I also need to enable or import the constrtaints too ?
Bookmarks