Oracle user and permission allocation

Source: Internet
Author: User

Oracle user and permission assignment SQL code -- log on to the database through the console: sqlplus kely/kely @ ORCL_localhost -- user set: dba_users select * from dba_users; -- use the system user to create a new user -- create user username identified by password default tablespace; -- system user: system and sys: sys (sysdba database administrator, highest database user; system database operator permission only in sys) -- get system permission information desc dba_sys_privs; -- query the system permission of a specified user select * from dba_sys_privs where lower (grantee) = 'kely '; -- Query System permission information desc system_privilege_map; select * from system_privilege_map; -- assign system permission -- grant privilege (permission) to username; with admin option -- indicates that once a user obtains the permission to be assigned, then these permissions can be propagated-revoke the user's permission revoke privilege (permission) from user -- Object permission select, insert, update, delete, execute, index, references, alter (all use all) --- assign permission grant permission on Object (table) to user with grant option; -- propagation -- revoke permission revoke object permission on object from user; -- Role

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.