Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Moving Users from on Ora DB to another
try spooling off the output of the following to a sql script.
select 'create user '||username||' identified by values '''||password||'''
default tablespace '||default_tablespace||' temporary tablespace
'||temporary_tablespace||';'
from dba_users
where username not in ('SYS','SYSTEM',<plus any others>);
You can do a similar thing with dba_role_privs for the roles for each user.
HTH
-- Niall Litchfield Oracle DBA Audit Commission UK "Lonnie L. Comer" <llc_at_phreaker.net> wrote in message news:vIlh7.1971$9h1.19867_at_open-news.pacbell.net...Received on Fri Aug 24 2001 - 03:13:44 CDT
> I am trying to move all of the users from one instance to another. I
don't
> want any of the data just the users and all objects. I know that I can
use
> exp and specify my owner but I this is not a one time thing. I am going
to
> be moving users from db to db quite often for testing.
>
> L|C
>
> "Daniel A. Morgan" <Daniel.Morgan_at_attws.com> wrote in message
> news:3B858BCF.DB6F5F77_at_attws.com...
> > "Lonnie L. Comer" wrote:
> >
> > > Does anyone have any scripts that can move users from one instance to
> > > another?
> > >
> > > L|C
> >
> > What do you mean by "move users"?
> >
> > Daniel A. Morgan
> >
>
>
![]() |
![]() |