Oracle learns six Delete table spaces, statements for data files, and methods for importing and exporting DMP files (ongoing updates)

Source: Internet
Author: User

To delete a tablespace, delete the data file first

For example, this example

CREATEtablespace sthsgimgdb_space11 datafile'D:\ORACLEDATABASE\JinHuaDataBase\STHSGIMGDB_SPACE11_01'SIZE 1M Autoextend on NEXT50M MAXSIZE UNLIMITED,'D:\ORACLEDATABASE\JinHuaDataBase\STHSGIMGDB_SPACE11_02'SIZE 1M Autoextend on NEXT50M MAXSIZE UNLIMITED,'D:\ORACLEDATABASE\JinHuaDataBase\STHSGIMGDB_SPACE11_03'SIZE 1M Autoextend on NEXT50M MAXSIZE UNLIMITED,'D:\ORACLEDATABASE\JinHuaDataBase\STHSGIMGDB_SPACE11_04'SIZE 1M Autoextend on NEXT50M MAXSIZE UNLIMITED,'D:\ORACLEDATABASE\JinHuaDataBase\STHSGIMGDB_SPACE11_05'SIZE 1M Autoextend on NEXT50M MAXSIZE unlimitedloggingonlinePERMANENTEXTENT MANAGEMENT LOCAL autoallocateblocksize 8KSEGMENTSPACEMANAGEMENT MANUAL;

You can delete this

Alter Database ' Where dbf files are located ' drop;

Delete all the data files in this tablespace and then delete them

DROP Tablespace STHSGIMGDB_SPACE11

Of course, there's this way.

DROP  and datafiles;

Brutally deleting everything inside the table space.

Then introduce the import and export, the main or use DOS to operate, note, do not use DOS into the sqlpuls, directly in the DOS interface input

IMP username  / password @ database name  touser= which user name to import  fromuser= from which user name to import the past    file= where the files are located

The exported method is similar to this, but IMP is replaced with exp, and using DOS is less time consuming than using Oracle's tools, and soon

Oracle learns six Delete table spaces, statements for data files, and methods for importing and exporting DMP files (ongoing updates)

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.