I'm lost. I'm searching the web (google), Oracle-books and dbasupport.com for this, but no result... I know it is on this site, but I still can't find it
The problem: I want to copy all users from one database, so I can introduce them into another db.
In DBA Studio (Oracle 8.1.7.4.9) you can choose "Show Object code" and will provide you with the correct create script.
I know there's some kind of DBMS_METADATA package that will return a create script. But I couldn't find it.
Can someone enlighten me?
Humble grasshopper hops around.... confused...
An expert is one who knows more and more about less and less until he knows absolutely everything about nothing.
Mr. Hanky: well, that's worth a try. I can create a script that creates a batch file, that executes "imp user/passw@db fromuser=x touser=x rows=N" for each user...
Thank's !!
An expert is one who knows more and more about less and less until he knows absolutely everything about nothing.
Furthermore: I tried something, but now I see that many users are only created so they can access the application. The users have no objects, but are granted select/insert/etc rights to access the application-schema. Great!
Now I think to use to create a script from selecting DBA_USERS to create all those users at the other db.
Question :
How do I transport the password?
The following statement fails:
SELECT 'CREATE USER '||user_name||' IDENTIFIED BY '||password||';'
FROM DBA_USERS;
Is there a trick to create a users password by using the encrypted password in DBA_USERs?
Last edited by efrijters; 09-11-2003 at 10:27 AM.
An expert is one who knows more and more about less and less until he knows absolutely everything about nothing.
you can get the password by one method, but before populating into that table, you need to expire the acc & when login the user will have to enter new password. then you can capture old & new pass in the table using a function and assinging a profile.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
Bookmarks