Created
October 6, 2016 16:45
-
-
Save dotmaik1/6defc358b2ac444c29f74606e127c7ba to your computer and use it in GitHub Desktop.
admin operations for restore point - flashback operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Creating Normal and Guaranteed Restore Points | |
| CREATE RESTORE POINT before_upgrade; | |
| CREATE RESTORE POINT before_upgrade GUARANTEE FLASHBACK DATABASE; | |
| --Listing Restore Points | |
| set lines 200 | |
| SELECT NAME, SCN, TIME, DATABASE_INCARNATION#, | |
| GUARANTEE_FLASHBACK_DATABASE,STORAGE_SIZE | |
| FROM V$RESTORE_POINT; | |
| COLUMN scn FOR 999999999999999 | |
| COLUMN storage_size FOR 999999999999 | |
| COLUMN name FOR A40 | |
| SET PAGESIZE 60 | |
| set lines 200 | |
| SELECT NAME, SCN, TIME, DATABASE_INCARNATION#, | |
| GUARANTEE_FLASHBACK_DATABASE, STORAGE_SIZE | |
| FROM V$RESTORE_POINT | |
| WHERE GUARANTEE_FLASHBACK_DATABASE='YES'; | |
| --Dropping Restore Points | |
| DROP RESTORE POINT before_app_upgrade; | |
| Restore point dropped." | |
| FLASHBACK DATABASE TO RESTORE POINT 'before_upgrade'; | |
| FLASHBACK DATABASE TO SCN 202381; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment