ORACLE change user Name

Source: Internet
Author: User

Oracle's user passwords have been modified frequently, but user names are rarely modified.

Before you can create only one user 1, then import user 2 data to User 1, and then delete by user 1, this is very cumbersome and time-consuming, and today we have sorted out how to modify the Oracle user name:

1, enter with SYSDBA role account, and then query which users:

SELECT * from user$

2. Find the user who needs to be modified (the user# field is unique)

SELECT * from user$ WHERE user#=


3. Modify the user name you want to change

UPDATE user$ SET name= ' new user name ' WHERE user#=;
COMMIT;


4. Forced refresh

ALTER SYSTEM CHECKPOINT;
ALTER SYSTEM FLUSH Shared_pool;

5, the new user name corresponding to the password modified (otherwise unable to login)

ALTER User new username identified by ' password ';

6, at this point, done, ok!



ORACLE change user Name

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.