Quantcast
Channel: Sameer Shaik. B.E,M.S,M.B.A,P.M.P,C.S.M
Viewing all articles
Browse latest Browse all 191

ORA-38305: object not in RECYCLE BIN

$
0
0
Perils of having recyclebin turned off in your database.

For me it was a requirement to have the recyclebin turned off, since my application creates temporary staging tables and drops them daily and I cannot afford to keep them in my database.
If  you have recyclebin turned off at the database level then the dropped table will no longer reside in the database i.e you cannot flashback the table as the table segments will be dropped ( un allocated and released to database for reuse)

SQL>show parameter recyclebin

recyclebin                           string      OFF



SQL> create table test123 tablespace users  as select * from dba_tables ;

Table created.

SQL> commit;

Commit complete.



SQL> select count(*) from test123 ;

  COUNT(*)
----------
      3068

SQL> drop table test123;

Table dropped.

SQL> select OWNER,OBJECT_NAME from dba_recyclebin;

no rows selected


SQL> flashback table test123 to  before drop;
flashback table test123 to  before drop
*
ERROR at line 1:
ORA-38305: object not in RECYCLE BIN


Viewing all articles
Browse latest Browse all 191

Trending Articles