How to create and delete tablespaces in Oracle cainiao

Source: Internet
Author: User

How to create and delete tablespaces in Oracle cainiao

1. When creating a temporary tablespace and creating a tablespace, dbf Files are generally stored in the directory where the datafile file is stored (typically under the folder named by instance name), you can select * from v $ datafile; view the storage location of all data files. create temporary tablespace name tempfile '/data/oradata/CHUANSHU/datafile/tmp _ file name. dbf 'size 50 M autoextend on next 1 M maxsize 1024 Mextent management local; 2. create a formal tablespace create tablespace name logging datafile'/data/oradata/CHUANSHU/datafile/file name. dbf 'size 124 M autoextend on next 1 M maxsize 10240 Mextent management local; 3. create a database user create user username identified by passworddefault tablespace name temporary tablespace name; 4. Authorize the newly created database user grant dba to username; grant connect to username; grant resource to username with admin option; grant unlimited tablespace to inspur_rmw with admin option; // grant dba to username with admin option; can complete this function; 5. Delete the tablespace drop tablespace tabaspacename including contents and datafiles; // delete both the tablespace and data files



How to completely delete users and tablespaces created by oracle

If you want to delete a tablespace, you can delete the corresponding file. In this way, you can drop tablespace ocscdrbak including contents; drop tablespace tablespace_name including contents and datafiles;
Windows requires offline.

How to delete users and tablespaces created in oracle

To delete a user, you can use the drop user Username cascade. cascade is an optional parameter. With this parameter added, all schemas under the user are deleted when the user is deleted.
Drop tablespace name is used to delete a tablespace;

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.