Create a new user and permission assignment table in Oracle

Source: Internet
Author: User
Tags import database

Create user

Create User Username identified by password;

 

System Permissions

Grant/Revoke create session to/from username;

Grant/Revoke create table to/from username;

Grant/Revoke unlimited tablespace to/from user name;

Grant dBA, connect, resource to tanbin

Import Database
IMP 'tanbin/tanbin' file = 'e:/company documentation/doshare. dmp 'fromuser = do1__lychee touser = tanbin rows = y indexes = y

Grant create session to public;

Query the system permissions of the current user

Select * From user_sys_privs;

 

Object permission

Grant/Revoke select on table name to/from user name;

Grant/Revoke all on table name to/from user name;

 

Query object permissions of the current user

Select * From user_tab_privs;

 

Object permissions can be controlled to columns

Grant Update (column name) on table name to user name;
IMP 'chenjian/chenjian 'file = 'e:/gzkhxt. dmp' fromuser = yxzckh touser = chenjian rows = y indexes = y

Grant create session to chenjian;

Grant create table to chenjian;

Grant unlimited tablespace to chenjian;

Grant dBA, connect, resource to chenjian

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.