| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Change Schema name???
Komix Hui wrote:
>
> Angelito Dizon wrote:
> >
> > Is it possible to change the name of a schema?
> >
>
> Oracle does not provide such facilities.
> You can achieve your purpose with other methods:
>
> export all objects in the schema;
> drop the schema;
> create a new user;
> import the exported data;
>
Another method, which is unsupported, but does work:
update sys.user$ set name='NEWUSERNAME'
where name='OLDUSERNAME';
You must then shutdown and restart the database for this change to be recognized.
You also need to fix any synonyms that refer to the oldusername, since synonyms actually store the name and not the user#.
![]() |
![]() |