ORA-22868: tablewithLOBscontainssegmentsindifferentta.

Source: Internet
Author: User
During the experiment today, a tablespace lob_tbs was created and a table lob_tab containing large object fields was created on the tablespace. When the experiment ends, you want to delete the tablespace.

During the experiment today, a tablespace lob_tbs was created and a table lob_tab containing large object fields was created on the tablespace. When the experiment ends, you want to delete the tablespace.

During the experiment today, a tablespace lob_tbs was created and a table lob_tab containing large object fields was created on the tablespace. An error ORA-22868 is reported when the experiment ends and you want to delete the tablespace. With Oracle help information oerr ora 22868, it is easy to locate the cause of the problem. Delete the table with large fields as prompted, and then delete the tablespace.

The problem is restored as follows:

1. Create a tablespace lob_tbs

Create tablespace lob_tbs datafile '/dbfiles/lob_tbs01.dbf' size 100 m

Autoextend on extent management local;

2. Create the lob_tab table in the users tablespace. The large field columns are stored in the lob_tbs tablespace.

Create table lob_tab (id int, doc blog) tablespace users

Lob (doc) store as securefile (tablespace lob_tbs compress high deduplicate );

3. Delete tablespace lob_tbs error ORA-22868

Drop tablespace lob_tbs including contents;

Drop tablespace lob_tbs including contents

*

ERROR at line 1:

ORA-22868: table with LOBs contains segments in different tablespaces

When you use the oerr help information, the following message is displayed: drop these tables and reissure drop tablespace. Delete the table first, and then delete the tablespace.

Enmoedu1 * PROD1 ~ $ Oerr ora 1, 22868

22868,000 00, "table with LOBs contains segments in different tablespaces"

// * Cause: An attempt was made to drop a tablespace which contains

// Segment (s) for the LOB columns of a table but does not contain

// The table segment.

// * Action: Find table (s) with LOB columns which have non-table segments in

// This tablespace. Drop these tables and reissue drop tablespace.

HR @ PROD1> drop table lob_tab;

SYS @ PROD1> drop tablespace lob_tbs;

Tablespace dropped.

When an error message is reported, you can use oerr to provide instructions or even provide guidance suggestions to help us solve the problem.

Full text

This article permanently updates the link address:

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.