Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Recycle bin in oracle database

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-02-2010
Member
 
Join Date: Jan 2010
Posts: 48
Recycle bin in oracle database

I used to read my oracle book and got the word "Recycle bin".What is the use of recycle bin in oracle database.Is it related to the windows recycle bin or something else. The book that I used,only mentioned with "Recycle Bin".Would be tell me more about this concept.I am waiting for your reply..
Reply With Quote
  #2  
Old 09-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Recycle bin in oracle database

Recycle bin in oracle database :

The recycle is nothing but it is an data dictionary table which is used to store the information about the dropped object by the database.After dropping the table and associated objects like indexes, constraints, nested tables are not dropped permanently and still contains some space in memory.

A user can view the deleted objects in the recycle bin using following statement

SELECT * FROM RECYCLEBIN;
Reply With Quote
  #3  
Old 09-02-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Enabling and disabling Recycle bin

Enabling and disabling Recycle bin :

You can enable and disable the recycle bin for your database using specified parameters for recycle bin.During disable mode of your database recycle bin,the deleted objects would be permanently deleted from memory and you need to recover it using RECOVER Command.

The recycle bin is enabled by default.To disable the recycle bin setup this parameter :

ALTER SESSION SET recyclebin = OFF;

And change whenever you want to use this facility using :

ALTER SESSION SET recyclebin = ON;
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 09-02-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Viewing and Querying Objects in the Recycle Bin

Viewing and Querying Objects in the Recycle Bin :

You can view and make some queries to investigation about your deleted objects using provided views from the database:

1- USER_RECYCLEBIN
It is used by particular user to get the information about deleted object.you can select your view choices according to the columns using DESC command.

2- DBA_RECYCLEBIN
It is only used by the database Administrator to query for the deleted objects .
Reply With Quote
  #5  
Old 09-02-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Restoring tables from Recycle bin

Restoring tables from Recycle bin :

To restore the dropped objects from the recycle bin,you need to use FLASHBACK query.You can indicate the name of the table to recover it through recycle bin.An optional facility is provided you to recover your table with different name.To execute the recover flashback command you need to have the same privilege as you need to drop.

To restore a table from recycle bin with a new name,execute the following SQL query which will restores emp_product_record table and assigns to it a new name:

Code:
FLASHBACK TABLE emp_product_record TO BEFORE DROP 
   RENAME TO emp_product_record_new;
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Recycle bin in oracle database"
Thread Thread Starter Forum Replies Last Post
Java in oracle 9i database Gerri Software Development 4 03-02-2010 08:35 PM
The synonyms in oracle database Norse Software Development 4 02-02-2010 10:46 PM
Packages in oracle database Garlands Software Development 3 30-01-2010 02:55 PM
Top-N Analysis in Oracle database LaMarcus Software Development 3 28-01-2010 12:05 PM
Oracle Announces TimesTen In-Memory Database 11g and In-Memory Database Cache 11g prakashseth Web News & Trends 1 30-07-2009 04:58 PM


All times are GMT +5.5. The time now is 05:01 PM.