|
|
Re: User Creation Script /Thiru [message #59185 is a reply to message #59176] |
Mon, 03 November 2003 05:25 |
Thiru
Messages: 1089 Registered: May 2002
|
Senior Member |
|
|
I generally use some tools for reverse engineering anything..like Toad etc...
Something like this can be used :
set heading off verify off feedback off echo off term off linesize 200 wrap on
spool Recreate_Users.sql
SELECT 'create user ' || username ||
' identified ' ||
DECODE(password, NULL, 'EXTERNALLY', ' by values ' || '''' || password || '''') ||
' default tablespace ' || default_tablespace ||
' temporary tablespace ' || temporary_tablespace ||
' profile ' || profile || ';'
FROM dba_users
ORDER BY username;
spool off
This will just create the users with the same password .You will then need to take care of roles,grants etc..(scripts again )
-Thiru
|
|
|