Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   
 

RMAN backup set Tips

Donald K. Burleson

Explanation of RMAN Commands

BACKUP SET COMMAND

 RMAN backs up the datafiles, control file, archived log files, and server parameter files in a RMAN specific format called a backup piece. In a nutshell, a backup set is a bundle of dbf, ctl and redo file that can restore a database.

A set of one or more such backup pieces makes up a backup set. A backup set is created using the BACKUP command.

Creating a Backup Set of the Primary Database

Since the primary database and the standby database share the same host, a back up of archived redo log files will not be created. The following sample script, rman_backup, creates a backup of all the data files and the control file for the standby database.

#Script: rman_backup
run {
    allocate channel fs1 type disk
             format= '/oracle/appsdb/bkp/%u.%p';
    backup
         incremental level = 0
         filesperset = 3
         database
         include current controlfile for standby
         tag = 'level0backup_ForStandby';
         sql "ALTER SYSTEM ARCHIVE LOG CURRENT";
}

Multiple channels can be allocated to parallelize the back up process. To execute this script, set the ORACLE_SID to sid of the target database, connect using RMAN and call the script.


Creating a Backup Set of the Primary Database

DBA@jrbk01; export ORACLE_SID=appsdb
DBA@jrbk01; rman target /
RMAN>@rman_backup

This script will create a backup of the data files and the control file of the primary database "appsdb" in the location /oracle/appsdb/bkp directory.

Server Parameter and Oracle Net Configuration

The modifications required in the server parameter file and the Oracle Net configuration file are the same as those described in Chapter 3. The following changes are required in the server parameter file. It is only a sample, and the actual list of parameters requiring modification will vary depending on the configuration.

#Extract from server parameter file of standby database.
CONTROL_FILES=("/oracle/stdbydb/control/standbycontrol.ctl")
STANDBY_ARCHIVE_DEST=/oracle/stdbydb/arch
LOG_ARCHIVE_FORMAT=appsdb_%t_%s.dbf
LOG_ARCHIVE_START=TRUE
LOG_ARCHIVE_TRACE=255
LOG_ARCHIVE_DEST_1='LOCATION=/oracle/stdbydb/archlocal'
LOG_ARCHIVE_DEST_2='SERVICE=appsdb'
LOG_ARCHIVE_DEST_STATE_2=ENABLE
REMOTE_ARCHIVE_ENABLE=TRUE
STANDBY_FILE_MANAGEMENT=AUTO
DB_FILE_NAME_CONVERT=('/oracle/appsdb','/oracle/stdbydb')
LOG_FILE_NAME_CONVERT=('/oracle/appsdb','/oracle/stdbydb')
INSTANCE_NAME=stdbydb
LOCK_NAME_SPACE=stdby2

 

 


The above text is an excerpt from the book: Oracle Data Guard Handbook


��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.