0002 Oracle account-related statements, 0002 oracle

Source: Internet
Author: User

0002 Oracle account-related statements, 0002 oracle

After the Oracle installation is complete, find SQL Plus in "start" and run it. Enter the account and password and use system/password to connect.

1. Oracle has a default scott account password tiger, which is used for connection:

CONN username/password; eg: CONN scott/tiger;

2. scott's account is locked by default and needs to be unlocked:

Alter user Username account unlock; eg: alter user scott account unlock;

3. the default password of scott's account is tiger. You can change the password:

Alter user Username identified by new password; eg: alter user scott identified by 123;

4. display the user name for the current connection:

Show user; eg: show user;

5. Create a new user jonh with a password of 123. Be sure to connect AS sysdba and add "as sysdba" after the CONN statement.

Create user Username identified by password; eg: create user john identified by 123;

6. Authorize the newly created user:

GRANT permission name,..., permission name TO user name; eg: grant connect to john;

7. Cancel user authorization:

REVOKE permission name,..., permission name FROM user name; eg: revoke connect from john;

8. delete a user:

Drop user Username; eg: drop user john;

 

 

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.