Change User Name in ORACLE and Change User Name in oracle

Source: Internet
Author: User

Change User Name in ORACLE and Change User Name in oracle

Oracle user passwords have been frequently modified before, but few user names have been modified.

In the past, only one user 1 can be created, user 2 data can be imported to user 1, and deleted by user 1. This is very troublesome and time-consuming. Today, we have sorted out how to modify the Oracle user name:

1. Enter the account with the sysdba role and then query which users are there:

SELECT * FROM user $

2. Find the user to be modified (the user # field is a unique identifier)

SELECT * FROM user $ WHERE user # = 71


3. Modify the user name to be changed

Update user $ set name = 'new username' WHERE user # = 71;
COMMIT;


4. Force refresh

Alter system checkpoint;
Alter system flush SHARED_POOL;

5. Change the password corresponding to the new user name (otherwise, the user cannot log on)

Alter user new username identified by 'Password ';

6. Now, the success is complete. OK!

Zookeeper

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.