Recover a Dropped Table Using Oracle Flashback Drop (2024)

Recover a Dropped Table Using Oracle Flashback Drop (1)Before You Begin

This 10-minute tutorial shows you how to use Oracle Flashback Drop to recover a dropped table.

Select the Oracle Database release:

Background

Oracle Flashback Drop enables you to reverse the effects of dropping (deleting) a table, returning the dropped table to the database along with dependent objects such as indexes and triggers. This feature stores dropped objects in a recycle bin, from which they can be retrieved until the recycle bin is purged, either explicitly or because space is needed.

What Do You Need?

  • Oracle Database 18c19c

Recover a Dropped Table Using Oracle Flashback Drop (2)Create a New Table

In this section you create a new table.

  1. Invoke SQL*Plus and connect as the SYSTEM user.
  2. Alter session to pluggable database container orclpdb.
    # SQL> alter session set container=orclpdb;Session altered.
  3. Create a new table named HR.REGIONS_HIST. Use the following statement to create a table that has the same structure and content as the HR.REGIONS table.
    SQL>create table hr.regions_hist as select * from hr.regions; Table created.
  4. Query the new HR.REGIONS_HIST table.
    SQL>select * from hr.regions_hist; REGION_ID REGION_NAME---------- ------------------------- 1 Europe 2 Americas 3 Asia4 Middle East and Africa

Recover a Dropped Table Using Oracle Flashback Drop (3)Drop a Table

In this section you drop your new HR.REGIONS_HIST table.

  1. Execute the DROP TABLE command to drop the table.
    SQL>drop table hr.regions_hist;Table dropped.
  2. Query the HR.REGIONS_HIST table.
    SQL>select * from hr.regions_hist;select * from hr.regions_hist *ERROR at line 1:ORA-00942: table or view does not exist

    Notice that you get an error because the table is dropped.

Recover a Dropped Table Using Oracle Flashback Drop (4)Recover the Dropped Table

In this section you recover the HR.REGIONS_HIST table from the recycle bin.

  1. Execute the FLASHBACK TABLE command to recover the dropped table.
    SQL>flashback table hr.regions_hist to before drop;Flashback complete.
  2. Once again query the HR.REGIONS_HIST table to verify the data has been restored.
    SQL>select * from hr.regions_hist; REGION_ID REGION_NAME---------- ------------------------- 1 Europe 2 Americas 3 Asia4 Middle East and Africa
  3. Exit from SQL*Plus.
Recover a Dropped Table Using Oracle Flashback Drop (2024)
Top Articles
The Earned Value Graph Explained - Ten Six Consulting
Citrix Workspace App | What Is It and Why Use It?
Best Pizza Novato
Places 5 Hours Away From Me
Devon Lannigan Obituary
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
Nc Maxpreps
Natureza e Qualidade de Produtos - Gestão da Qualidade
Lantana Blocc Compton Crips
What Does Dwb Mean In Instagram
Hmr Properties
Athens Bucket List: 20 Best Things to Do in Athens, Greece
Operation Cleanup Schedule Fresno Ca
Xxn Abbreviation List 2023
Dignity Nfuse
Missed Connections Inland Empire
Hobby Stores Near Me Now
All Breed Database
Craigslist Battle Ground Washington
European Wax Center Toms River Reviews
When His Eyes Opened Chapter 3123
Stephanie Bowe Downey Ca
Uncovering the Enigmatic Trish Stratus: From Net Worth to Personal Life
Sinai Sdn 2023
Ravens 24X7 Forum
Mobile Maher Terminal
Utexas Baseball Schedule 2023
Ultra Clear Epoxy Instructions
1987 Monte Carlo Ss For Sale Craigslist
Whitehall Preparatory And Fitness Academy Calendar
Skyrim:Elder Knowledge - The Unofficial Elder Scrolls Pages (UESP)
Scanning the Airwaves
Dadeclerk
Download Diablo 2 From Blizzard
1Exquisitetaste
Sarahbustani Boobs
Powerspec G512
2024-09-13 | Iveda Solutions, Inc. Announces Reverse Stock Split to be Effective September 17, 2024; Publicly Traded Warrant Adjustment | NDAQ:IVDA | Press Release
Nu Carnival Scenes
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
Copd Active Learning Template
Maplestar Kemono
Pas Bcbs Prefix
Wera13X
What your eye doctor knows about your health
ESPN's New Standalone Streaming Service Will Be Available Through Disney+ In 2025
Kenmore Coldspot Model 106 Light Bulb Replacement
Compete My Workforce
Deviantart Rwby
Yoshidakins
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5772

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.