Recently I made a mistake, that, all the tables in my oracle database were dropped (running drop command from SQL Developer tool) in a sequence of all transactions unbeknownst to me that I was dropping tables at the wrong database. Each time I dropped a set of tables, I committed the operations. By the time, I realized that I have dropped the tables at the wrong DB, I was too late to rollback, since it rolled back the last operation only. I searched online as well, and found SavePoints to be the resolution, but I had no savepoints configured. I had the backup of all the tables taken 2 days before, so, I ran scripts from there and made lost changes for the past 2 days. Is there any other way that I take to get my DB state back. I have made it a practice to make savepoints while performing such operations though. But, I am still confused. One who doesn't know about savepoints will lose all the data.
How to rollback all the commits in Oracle DB
1k Views Asked by KnockingHeads At
1
There are 1 best solutions below
Related Questions in ORACLE11G
- Whatever the data available in previous record it should add to the new record
- Identifying invalid dates in Oracle database due to daylight saving time changes
- How to perform arithmetic calculation between rows in oracle Pl/Sql
- Oracle Performance Slow with Select Union From Dual in Join Statement
- How to reduce the size of tif files before inserting into the oracle database
- Passing table name dynamically each time
- ORA-06550 and PLS-00306 Errors When Calling Stored Procedure with UDT Table Parameter using ODP.NET on .NET 6
- oracledb.exceptions.DatabaseError: DPY-4011: the database or network closed the connection - python oracledb library
- Spring boot oracle 11g sequence stored is different from the value shown in the model
- Update or Insert into table, using rows from same table
- how to fix PLS-00306: wrong number or types of arguments in call to 'DEQUEUE'
- Oracle materialized view refresh on two different schedules
- How may I perform OCIPing (or equivalent) from a .Net application?
- is the documentation for oracle-sql and mysql the same with respect to the definitions, syntaxes and rules?
- How to Extract Database Connection Information from JInitiator 1.1.8.16 Files?
Related Questions in ORACLE-SQLDEVELOPER
- Is their any way i can open parallel query tabs
- How to protect client secret in REST API call in Oracle Autonomous Database
- Difference between an "IS" or "AS" function/procedure declaration PL/SQL
- how can i fix the sql developer 'No TNS entries found' error?
- Inconsistent data type error: expected Date got Number
- Non English character support in Oracle SQL Developer
- SQL developer connection password forgot
- connection tab does not appear
- What formula to use in OTBI to compare two columns, then derive the joined value from a third column?
- Checking specific column in data source created of multiple tables
- Oracle SQL Developer - looping/debugging cursor behavior
- Connection to a user from RunSQL Issue
- What does sqlcl_int_runme dropped do?
- CHAR_AT function ends up with special characters
- Why doesn't the REF function in SQL return a reference, but an object instance in Oracle sql developer?
Related Questions in DATABASE-ADMINISTRATION
- Moving LOB size more than actual size
- import dump in oracle database
- SQL Server Replication - Transactional
- Create a one computer/one user relationship to permissions on a database
- Grant Alter to Only to All Functions on SQL Server
- Oracle database Undo size not clearing after the dml operation
- How to create specific user security for schemas?
- How to change the password for all Oracle database users?
- OS User on Oracle DBA History views
- How Oracle calculates the db block changes segment metric?
- Is there a way to update 2 values each time calculating data on each row?
- Views Creation Permissions without table Creation Permissions in POSTGRESQL
- Can i set -I ( Quoted Identifier ON ) for all scripts while running through Batch File?
- Cassandra dynamic snitch and dynamic_snitch_reset_interval_in_ms parameter
- Reading system_health*.xel files efficiently
Related Questions in ROLLBACK
- Rollback to Savepoint with H2 Database
- How to Revert Database Changes Made in a Session Without Using Transaction Management?
- Unwanted Rollback in Postgres - missing data after commit
- How to add the transaction and rollback for the query in the repository layer for the python api
- Rollback Mechanism For Third Party Services
- Wordpress - Azure AppService database "rollback"
- Ansible rollback on multiple hosts when one of the roles fail. How to pass variables between different plays?
- Liquibase - fix wrong rollback statement
- How to undo Git - All conflicts fixed but you are still merging
- Rollback migration in laravel
- Get Second Last commit SHA of a branch using GitHub Actions
- Rollback to 120.0.2210.144
- access airflow task arguments in the on_failure_callback function
- How to implement rollback of multi-statement transaction in SQLite?
- Rollback statement Oracle
Related Questions in SAVEPOINTS
- Is there a way to store & retrieve a window's state in flink
- Apache Flink S3 ListBucket API calls
- MySQLi deletes savepoints (and only savepoints) upon transaction error?
- Is there any chance of `ROLLBACK TO SAVEPOINT` erasing data in PostgreSQL?
- How can i recover job by savepoint with multi-job run by executeAsync in application mode (flink 1.18)
- Identify illegal commit in oracle procedure
- Flink checkpointing issue: "org.apache.flink.runtime.checkpoint.CheckpointFailureManager [] - Failed to trigger or complete checkpoint 1 for job"
- How to stop a flink job at specified position
- "Cannot map checkpoint/savepoint state for operator" when using fromChangelogStream
- SqlClient equivalent of "BEGIN TRY...END TRY"
- Is it possible to rollback only one command (not whole transaction) in SQL?
- Flink 1.14 : Why can't resotore savepoint got error Caused by: org.apache.flink.runtime.messages.FlinkJobNotFoundException: Could not find Flink job
- How to know if I have started transaction control in MySQL already or not?
- Flink savepoint not saving the valuestates
- In SQL, what happens if you try to rollback to a savepoint from another user?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
DDL statements like
dropdo an implicit commit so you cannotrollbackto undrop a table. Nor would a savepoint help you since that only lets you go back to an earlier point in the current transaction.If you have merely dropped a table, assuming you haven't disabled the recycle bin, you can simply do a flashback drop
If you have a more complicated script that is doing more than just dropping tables, you may want to set a restore point prior to running the script. You could then flashback the entire database to that restore point if something goes wrong.