Log on to Oracle and create a user to grant permissions

Source: Internet
Author: User

Three default system users

Username and password

Sys change_on_install (highest Network Administrator)

Manager system local administrator

Scott tiger common user

1. Start the cmd command of the Oracle listener:

1: name of the lsnrctl start listener (not to be written)

2: Start the data instance oradim-startup-sid dataname (Instance name)

2. Log On with the highest user in sys

Sqlplus sys as sysdba (sqlplus username/password @ connection_String)

Create user lisi identified by lisi; // create a user lisi with the password Li Si

Grant session to lisi; // create the database access permission

Grant unlimited tablespace to lisi; // Let Li Si use the tablespace infinitely. At this time, Li Si can create a table (using the default sys tablespace)

Revoke the lisi permission

Revoke session from lisi;

Revoke unlimited tablespace from lisi;

3. The object permission Wang Wu can access table 4.

After user Wang Wu is created, Wang Wu creates a table tab.

Grant select on tab to lisi;

Grant all on tab to lisi;

5. revoke permissions

Revoke select on tab from lisi;

Revoke all on tab from lisi;

6. grant permissions to all users

Grant create session to public;

7. query your own permissions

Select * from user_sys_privs;

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.