[Oracle] Create user

Source: Internet
Author: User

(1) CREATE TABLE space

Create Tablespace space Name

DataFile ' e:\ filename. dat '

Size 1M

Autoextend on

(2) Create a user

--No, No.

--create user username identified by password;

--grant connect,resource to user name;

--grant create any view to user name;

--Delete the user if the user exists

--drop user username CASCADE;

--Create User

Create user username

Identified by "User name"

Default Tablespace user Name

Temporary tablespace TEMP

Profile DEFAULT;

--Grant/revoke role privileges

Grant connect to User name;

Grant DBA to User name;

Grant Exp_full_database to user name;

Grant Imp_full_database to user name;

Grant resource to user name;

--Grant/revoke System privileges

Grant alter any table to user name;

Grant analyze any to user name;

Grant create any index to user name;

Grant create any sequence to user name;

Grant create any table to user name;

Grant Select any table to user name;

Grant unlimited tablespace to user name;

To import another user from one user, you need to grant DBA authority:

GRANT DBA to User name

[Oracle] Create user

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.