My Oracle Support Banner

Message "_$deleted" When Renaming a Tablesapce to An Already Dropped one (Doc ID 1937848.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

In a partitioned table, renaming a Tablespace Name to an already dropped Tablespace name may result in "_$deleted".

Changes

Following scenario explains in detail:

CREATE TABLESPACE TESTTBS DATAFILE '/grdbms/64bit/app/oracle/oradata/sb23Sc/testtbs.dbf' size 1M;
CREATE TABLESPACE TESTTBSMOVE DATAFILE '/grdbms/64bit/app/oracle/oradata/sb23Sc/testtbsmove.dbf' size 1M;

CREATE TABLE TEST_TABLE (SEQUENCE_NUMBER NUMBER(9,0) NOT NULL ENABLE)
TABLESPACE TESTTBS PARTITION BY HASH(SEQUENCE_NUMBER)
(
PARTITION P1 TABLESPACE TESTTBS,
PARTITION P2 TABLESPACE TESTTBS,
PARTITION P3 TABLESPACE TESTTBS,
PARTITION P4 TABLESPACE TESTTBS
);

select dbms_metadata.get_ddl('TABLE','TEST_TABLE','SCOTT') from dual;

alter table test_table move partition p1 tablespace TESTTBSMOVE;
alter table test_table move partition p2 tablespace TESTTBSMOVE;
alter table test_table move partition p3 tablespace TESTTBSMOVE;
alter table test_table move partition p4 tablespace TESTTBSMOVE;

drop tablespace TESTTBS including contents and datafiles;
alter tablespace TESTTBSMOVE rename to TESTTBS;

select dbms_metadata.get_ddl('TABLE','TEST_TABLE','SCOTT') from dual; ----> gets'_$deleted' at Table Level Tablespace Position

 

 To detect impacted segments (partitioned table or partitioned index) :

select * from dba_objects where object_id in (select OBJ# from sys.partobj$ where DEFTS# in (select TS# from sys.ts$ where name like '_$deleted%'));

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.