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: