Oracle creates table spaces with users

Source: Internet
Author: User

    /* Description: If the corresponding user and table space already exists, you need to delete the corresponding user and tablespace first and      then re-establish */--delete user xdayweixin cascade;--Delete table space Drop tablespace Weixin_data_temp including contents and Datafiles;drop tablespace weixin_data      including contents and datafiles;-- Creating a temporary tablespace create temporary tablespace weixin_data_temp tempfile ' weixin_data_temp. DBF '        size 500M autoextend on;--creating tablespace Create tablespace weixin_data logging datafile ' Weixin_data. DBF '        size 500M autoextend on;--Create a user and specify the table space create a user xdayweixin        identified by Xdayweixin    default Tablespace weixin_data    Temporary tablespace weixin_data_temp   profile default;--Grant role permissions to users grant connect to Xdayweixin;grant resource to Xdayweixin;--grant DBA to thinkcms;--grant the user system privileges grant unlimited tablespace to xdayweixin;-- Gives the user DBA Authority--grant dba to Xdayweixinexit;

  

Oracle creates table spaces with users

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.