Deleted data in Oracle can be recovered in two ways: Undo tablespace: Use the FLASHBACK command to recover data from the undo tablespace that stores a copy of the deleted rows. Data recovery point: Use the RESTORE command to recover data from a copy of the data (recovery point) saved at a specific time in the database.
Recover deleted data in Oracle
How to recover deleted data in Oracle?
Oracle provides two methods to recover deleted data:
1. Use undo tablespace
FLASHBACK
command.2. Use data recovery point
RESTORE
command.Detailed steps:
Recover data using undo tablespace
Use the following command to restore data:
FLASHBACK TABLE table_name TO BEFORE DROP;
wheretable_name
is the name of the table to be restored.
Recover data using data recovery points
Use the following command to restore data:
RESTORE TABLE table_name TO RECOVERY POINT AS OF 'timestamp';
wheretable_name
is the name of the table to be restored,timestamp
is the time to restore the data .
Note:
The above is the detailed content of How to roll back newly deleted data in oracle. For more information, please follow other related articles on the PHP Chinese website!