Oracle SQL statements Create tablespace, database, user, and authorization

Source: Internet
Author: User

 --CREATE table space and database files and default tablespace sizeCreateTablespace tablespace_test datafile'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\DataBase_Test.DBF'size 200m;--set up automatic database growthAlter DatabaseDataFile'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\DataBase_Test.DBF'Autoextend on;--Create userCreate UserUser_test identified byPassword_testdefaulttablespace tablespace_test account unlock;--authorization to the userGrant Create Table,Create View,Create Trigger,CreateSequenceCreate procedure  touser_test;GrantDba touser_test;--Modify table space sizeAlter DatabaseDataFile'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\DataBase_Test.DBF'resize 500m;---************* After importing the database (DMP) tablespace incorrect workaround ************************RevokeUnlimited tablespace fromuser_testAlter UserUser_testdefaulttablespace tablespace_testAlter UserUser_test Quota Unlimited ontablespace_testAlter UserUser_test Quota0  onsystem---**************************************************************************

Oracle SQL statements Create tablespace, database, user, and authorization

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.