Process of creating user permissions in Oracle

Source: Internet
Author: User
This article describes how to create user permissions in Oracle by creating a table. The following code is mainly written to implement the Oracle user creation permission.

This article describes how to create user permissions in Oracle by creating a table. The following code is mainly written to implement the Oracle user creation permission.

This article describes how to create user permissions in Oracle by creating a table. The following code is mainly used to compile the Oracle user creation permission, hoping to help you.

Note: Each language is executed separately and must end with a semicolon;

// Create tablespace test datafile 'C: \ oracle \ oradata \ orcl9 \ test. dbf 'size 50 M default storage (initial 500 K Next 500 K minextents 1 maxextents unlimited pctincrease 0 );

// Create user permission in Oracle // create user lxg identified by lxg default tablespace test; // authorize grant resource, connect, dba to test;

// Delete the tablespace drop tablespace "space name" including contents and datafiles

Delete a user

Drop user "lxg" cascade

Add tablespace

Alter tablespace chinawater add datafile 'C: \ oracle \ oradata \ orcl9 \ ADDCHINAWATER. dbf'size 200 M

Create user

Create user userName identified by password;

Create userName and password

2

Authorize a user

Grant dba to lxg; -- grant DBA permission grant unlimited tablespace to lxg; -- grant unlimited tablespace grant select any table to lxg; -- grant query to any table grant select any dictionary to lxg; -- Grant query to any dictionary

Grant dba to lxg; grant unlimited tablespace to lxg; grant select any table to lxg; grant select any dictionary to lxg;

,

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.