I dropped a table...then i attempted to bring it back with flashback to before drop...but i get the following...
SQL> flashback table tony to before drop;
flashback table tony to before drop
*
ERROR at line 1:
ORA-38305: object not in RECYCLE BIN
I thought Oracle10g (my version) stores a copy in the recyclebin by default? Do you do anything to enable this action?
thanks
Life is what is happening today while you were planning tomorrow.
Check list:
> DB_FLASHBACK_RETENTION_TARGET set
> FLASHBACK database ON
> check SELECT FLASHBACK_ON FROM V$DATABASE; --Yes
> RECYCLEBIN ON
> create table, drop and flash back --should work
Check list:
> DB_FLASHBACK_RETENTION_TARGET set
> FLASHBACK database ON
> check SELECT FLASHBACK_ON FROM V$DATABASE; --Yes
> RECYCLEBIN ON
> create table, drop and flash back --should work
Thanks
I see the issue is with the flsah back not coming on....
SQL> sho parameter retention
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_flashback_retention_target integer 1440
SQL> ALTER SYSTEM SET RECYCLEBIN = 'ON';
System altered.
SQL> SELECT FLASHBACK_ON FROM V$DATABASE;
FLASHBACK_ON
------------------
NO <-----you would expect this value to be YES but why no?
Life is what is happening today while you were planning tomorrow.
See, there are some exceptions of the recycle bin policy.
Not sure, but I belive objects of the SYSTEM tablespace are not covered by the recycle bin. Also Dictionary managed tablespaces are not covered. So check if u do not create objects in the system tablespace, and also that the tablespace u use is locally managed. Or better create a new locally managed tablespace, create a new table there, drop it and then see if it operates
Bookmarks