Oracle database tablespace data file user and table-created SQL code

Source: Internet
Author: User
Tags dba

--create the tablespacecreate smallfile tablespace "Table_container"--Create TABLE space datafile ' E:\ORACLE\ORADATA\ORCL\table_ 01.DBF '--Create data file, file location of data file size 100M--Initial size of data file autoextend on NEXT 100M--data file increment size MAXSIZE UNLIMITED--Data file size Unlimited logging EX  TENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT auto--Create the user create username test01--created users identified by "123"--Password Default tablespace table_container--to specify temporary tablespace temp--Specify cache tablespace profile default;--Grant/revoke Object pr Ivileges Grant Select on STUDENT to test01;--grants permission to an existing object--grant/revoke role Privileges Grant connect to test01;--granted to the linked database Permission Grant DBA to test01; --Grant DBA authority---Grant/revoke System Privileges Grant unlimited tablespace to test;--grant the systems permission--Create the tablecreate TABLE Stud ent01--Create a table (s_id varchar2 () NOT null,--non-null constraint s_name VARCHAR2, s_age number (3), CONSTRAINT p k_id PRIMARY Key (s_id),--PRIMARY KEY constraint specifies the constraint name CONSTRAINT ck_age CHECK (S_age > S_age <)--check constraint);--note after the end of the statement End of semicolon

  

Oracle database tablespace data file user and table-created SQL code

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.