Oracle creates user-specified tablespace delete user-deleted tablespace

Source: Internet
Author: User
--  Create a data table space  Create  Tablespace ciciloggingdatafile  '  /Usr/lib/Oracle/Xe/oradata/Cici. DBF  '  Size 32 mautoextend  On  Extent management local;  --  Create a user and specify a tablespace  Create   User Cici identified By Ciciprofile  Default  Default  Tablespace ciciaccount unlock;  Grant Connect, Resource To  Cici;  Grant   Create Session To Cici;

 

 

-- Log on to Oracle

# Sqlplus

SQL> conn system/System

-- Create a temporary data table space

Create temporary tablespace cicitemp
Tempfile 'd: \ oraclexe \ app \ oracle \ oradata \ Cici \ cicitemp. dbf'
Size 32 m
Autoextend on
Extent management local;

-- Create a data table space
Create tablespace Cici
Logging
Datafile 'd: \ oraclexe \ app \ oracle \ oradata \ Cici. dbf'
Size 32 m
Autoextend on

 

Extent management local;

-- Create a user and specify a tablespace

Create user Cici identified by Cici
Profile default
Default tablespace Cici
Temporary tablespace cicitemp
Account unlock;

Grant connect, resource to Cici;
Grant create session to Cici;

-- Cascading deletion of all objects under a user

Drop user dzysc cascade;

-- Delete a tablespace

Drop tablespace Cici including contents and datafiles;

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.