Get the App
SLTechnology News&Howtos  ›  Database  › 

Oracle flashed back to those things.

Shulou Source: shulou.com Published: 2022-06-01 08:16:31 11月15日 Update

Open the flashback database

Alter database flashback on

Alter database open

Modify the date and time display format:

Alter session set nls_date_format='yyyy-mm-dd hh34:mi:ss'

View the flashback database log information in the system view v$flashback_database_log:

Select * from v$flashback_database_log

Flashback database:

Flashback database to timestamp (to_date ('2014-10-11 12-12-12-12-20-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-12-

Resetlogs or noresetlogs is required after flashback recovery:

Alter database open resetlogs/noresetlogs

Flashback table:

Flashback table tablename to timestamp (to_date ('2014-11-10 12-12-12-12-14-12-12-12-12-12-12-12-12-12-12-12-12-12-13-11-10-12)

Flash the Recycle Bin:

Flashback table tablename to before drop

To delete data from the Recycle Bin, you can use the following command:

Purge table tablename

Empty the Recycle Bin:

Purge dba_recyclebin

Flashback query:

Select * from tablename as of timestamp to timestamp (to_date ('2014-11-12 10 hh34:mi:ss')) where.

Flashback version query:

Select versions_starttime,version_operation,name,score from tablename versions between timestamp minvalue and maxvalue

Flashback transaction query:

Select table_name,undo_sql from flashback_tracsaction_query where rownum

Tags: Data Recycle Bin database query transaction information can make command log date time format version for system view Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Docker Shulou Information vpn Apple