Oracle creates tablespace, temp tablespace, create user and specify Tablespace, authorize, delete user and table space

Source: Internet
Author: User

/*Note: If you already have the appropriate user and table space, you will need to delete the appropriate user and tablespace before re-establishing all*/--Delete UserDrop UserUSERNAMECascade;--Delete Table SpaceDropTablespace data_temp including contents anddatafiles;DropTablespace DATA including contents anddatafiles;--Create a temporary table spaceCreate TemporaryTablespace data_temp Tempfile'data_temp. DBF'size 500M autoextend on;--CREATE TABLE SpaceCreateTablespace DATA Logging DataFile'DATA. DBF'size 500M autoextend on;--Create a user and specify a tablespaceCreate UserUSERNAME identified byUSERNAMEdefaulttablespace DATATemporarytablespace data_temp profiledefault;--grant a user permissions to a roleGrantConnect toUSERNAME;GrantResource toUSERNAME;GrantDba toUSERNAME;--granting system permissions to usersGrantUnlimited tablespace toUSERNAME;Exit;

Oracle creates tablespace, temp tablespace, create user and specify Tablespace, authorize, delete user and table space

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.