In oracle database, a datafile can be dropped, databasedatafile

Source: Internet
Author: User

In oracle database, a datafile can be dropped, databasedatafile

Refer to the mos article:
Unable to Drop a Datafile From the Tablespace Using Alter Tablespace Command (Document ID 1050261.1)

This datafile cannot be dropped because of any of the following conditions:


1) It must be null, otherwise it will report: ORA-03262: the file is non-empty. It is worth noting that the meaning of non-empty is that extent is assigned to a table, instead of having rows in the table.
In this case, if you use drop table xxx, you must use drop table xxx purge;
You can also use the purge table "xxx table name in the recycle bin" to purge the table when drop table xxx is used. Otherwise, the space is not released, datafile still cannot be dropped.

2) The table space cannot be the first file.
The above two can be achieved through drop tablespace.

3) it cannot be in the read-only tablespace.


4) cannot be offline, otherwise it will report: ORA-03264: cannot drop offline datafile of locally managed tablespace

For this error, the solution is:

[oracle@rhel63single u02]$ oerr ora 326403264, 00000, "cannot drop offline datafile of locally managed tablespace"// *Cause:  Trying to drop offline datafile in lmts// *Action: Try to drop file afetr making it online[oracle@rhel63single u02]$ 

5) Cannot be a datafile that is part of the system tablespace, even if it is not the first datafile of the system tablespace
-- This entry is From How to Drop a Datafile From a Tablespace (Document ID 111316.1)

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.