BC remote Oracle DBA - Call (800) 766-1884
Free Oracle Tips

Oracle Consulting Oracle Training Development
Oracle Training
SQL Tuning Consulting
Oracle Tuning Consulting
Data Warehouse Consulting
Oracle Project Management
Oracle Security Assessment
Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Internals Magazine
Oracle Links
Oracle Monitoring
Remote Support Benefits
Remote Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

 

 

Oracle Restore Points

Oracle Tips by Burleson Consulting

This is an excerpt from "Oracle 10g New Features for Administrators" by Ahmed Baraka.

• A restore point serves as an alias for an SCN or a specific point in time.

• It is stored in the control file.

• It can be used with: RECOVER DATABASE, FLASHBACK DATABASE, FLASHBACK TABLE.

• It requires the database to operate in ARCHIVEMODE and the database flashback logging enabled.

• Use V$RESTORE_POINT to obtain information about restore points CREATE RESTORE POINT before_load

Guaranteed Restore Points

• A guaranteed restore point ensures that you can perform a FLASHBACK DATABASE command to that SCN at any time.

• It can be used to restore beyond time specified by DB_FLASHBACK_RETENTION_TARGET parameter

• Even the effects of NOLOGGING operations such as direct load inserts can be reversed using guaranteed restore points.

• It must be manually deleted.

CREATE RESTORE POINT before_load GUARANTEE
FLASHBACK DATABASE

To flashback database to a restore point

SHUTDOWN IMMEDIATE
STARTUP MOUNT
FLASHBACK DATABASE TO RESTORE POINT before_load
ALTER DATABASE OPEN READ ONLY
-- check the flashed back data
SHUTDOWN IMMEDIATE
STARTUP MOUNT
ALTER DATABASE OPEN RESETLOGS;


To recover the database to the restore point

RECOVER DATABASE UNTIL RESTORE POINT
before_load

To flashback table to restore point

ALTER TABLE emp ENABLE ROW MOVEMENT
FLASHBACK TABLE emp TO RESTORE POINT
before_load

To drop a restore point

DROP RESTORE POINT before_load

Placing All Files in Online Backup Mode

• In Oracle Database 10g, with a single command you can place all the data files in the database in online backup mode. You no longer need to place each tablespace in online backup mode individually. This makes user-managed online backup easier. The requirements for implementing the user-managed online backup still apply.

ALTER DATABASE BEGIN BACKUP

• When you issue this command, any nonexistent, offline, or read-only data files are simply skipped and the processing continues.

• However, for the command ALTER DATABASE END BACKUP, if you have a data file with an OFFLINE file status, you receive a warning message. Also, with this command, if you have a tablespace in read-only mode, you do not receive any messages.

 

If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 

 


 

Free Oracle dictionary reference poster

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

North Carolina Oracle Users Group

 

 Arabian horse breeder

Seeing eye horses

 

 

BC Remote Oracle Support
P.O. Box 511 • Kittrell, NC, 27544

Copyright © 2007 by Burleson Enterprises, Inc. All rights reserved.

Hit Counter