Solved

want to change user name

Posted on 2011-09-27
2
269 Views
Last Modified: 2012-05-12
Hi,
Is it possible to change user name in 11g without dropping it.
0
Comment
Question by:nirvairghuman
2 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 63 total points
ID: 36710844
no, sorry


you can export the user and objects with expdp  or exp  and then drop the user and import  (impdp/imp)


0
 
LVL 16

Assisted Solution

by:Swadhin Ray
Swadhin Ray earned 62 total points
ID: 36714624
Changing user name in oracle is not possible but as sdstuber said you can do like :

1) create a new user :

create user new identified by <<new password>>

2) Export the old user data to .dmp file :
exp system/password owner=<<Old user name >> file=userold.dmp log=userold.log

3) import the .dmp file to the new user :
imp system/password fromuser=<<Old user name >> touser=new file=userold.dmp log=Import.log

You can also do this by using datapump .
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question