Oracle Object Permissions

Source: Internet
Author: User

Drop user test cascade;
Create user test identified by test;
Grant create session to test;
Grant create any table to test;
Conn Test/test;
CREATE TABLE Scott.test (ID number);
Conn Scott/tiger;
INSERT INTO Test values (888);
SELECT * from Test;
Conn Test/test;
SELECT * from Scott.test;
Conn Scott/tiger;
Grant Select on test to test;
Conn Test/test;
SELECT * from Scott.test;
Conn Scott/tiger;
ALTER TABLE test Add (name varchar (10));
SELECT * from Test;
Granting update permissions can be added more carefully to a column
Grant update (name) on test to test;
Conn Test/test;
Update scott.test Set name = ' John Doe ';
Update scott.test Set id = ' 999 ';

Conn Sys as SYSDBA;

Create user test1 identified by Test1;
Create user test2 identified by Test2;
Grant create session to Test1, Test2;
The following options indicate that you can cascade authorization
Grant SELECT on Scott.emp to test1 with GRANT option;
Conn Test1/test1;
Grant SELECT on Scott.emp to Test2;
Conn Test2/test2;
SELECT * from Scott.emp;
Conn Sys as SYSDBA;
Revoke select on Scott.emp from Test1;
Conn Test2/test2;
SELECT * from Scott.emp; I can't find it.

Oracle Object Permissions

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.