Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Transferring usernames and password from a database to another

Re: Transferring usernames and password from a database to another

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 28 Jun 1999 19:03:19 +0200
Message-ID: <930589343.28443.0.pluto.d4ee154e@news.demon.nl>


Sure,
use the following code
--
set pagesize 0 feedback off heading off spool temp.sql
select 'create user '||username||' identified by password||chr(10)||

           'alter user '||username||' identified by values '''|password||''''
from dba_users;

spool off
disconnect
connect sys/<password>@other_database
start temp.sql
exit
--
now connect to the other database, run temp.sql and that should be it.
Of course you'll still need to copy the privileges.

Hth,

Sybrand Bakker, Oracle DBA

Lucie Dore <lucie.dore_at_space.gc.ca> wrote in message news:37779730.8D814C57_at_space.gc.ca...
> Hi,
> I just created a new database ans I would like to transfer the
> usernames and password created in another database to this new one. This
> to preserve the actual passwords of the users. Is it possible? Anybody
> knows how to do this?
> Thanks
>
Received on Mon Jun 28 1999 - 12:03:19 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US