« Home | Oracle Application Server Cache Setting » | Configure Oracle Application Server Logs » | Oracle Application Server Default Log » | Oracle Application Server Won't Start » | Is God Unfair ? » | God is Good » | My Life as a Roomer » | English is extremely important for programmers » | Balicamp Training Finished » | First Step To Balicamp »

Oracle Database Recycle Bin

Do you know that Oracle Database 10g or later have recycle bin?
Dropped table will go to recycle bin, but deleted record will NOT go to recycle bin.

Here is the sample for dropping table:
create table coba(fieldcoba varchar(100));
insert into coba values('aaaaa');
drop table coba;
and then we restoring the table from recyclebin:
flashback table coba to before drop;
To empty recycle bin, we can use this command:
purge recyclebin;
For dropping the table and skip the recycle bin, use this command:
drop table coba purge;