Command to create oracle tablespace and users

Source: Internet
Author: User

Command to create an oracle tablespace and user this article describes how to use commands to create an oracle user. SQLPLUS login system user! -- Create an instance:

Database Configuration Assistant
Create a database
Partition 1: query the physical path of the data file in the Table SYSTEM tablespace -- SELECT FILE_NAME FROM DBA_DATA_FILES WHERE (TABLESPACE_NAME = 'system'); copy the queried tablespace file address and copy the information in the create tablespace file column. 2: CREATE a TABLESPACE and set the file address 'size 200 m autoextend on next 50 m maxsize unlimited extent management local' to be queried by automatically scaling create tablespace TBS_ORCL_DEMO DATAFILE; -- if a U_DEMO USER exists, delete -- drop user "U_DEMO" CASCADE; 3: create user U_DEMO identified by 123456 default tablespace TBS_ORCL_DEMO quota unlimited on TBS_ORCL_DEMO QUOTA 100000 k on users account unlock; "U_DEMO" is the database user, 123456 is the user password, and TBS_ORCL_DEMO is the created tablespace. 4: Set User Permissions and authorize the User Role grant connect, RESOURCE, dba to U_DEMO; grant create session to U_DEMO; grant create procedure to U_DEMO;

 


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.