Configuring rman for dataguard environment.
Hi all,
Here we have a dataguard environment with db1 as primary and db2 as physical standby database. We configured dataguard in 10g environments and we are not using grid control. Can anyone provide the steps for configuring rman for incremental backups in this environment? We want to schedule the backups to be taken in standby db, (that is applicable in case of swithover too). In the case of swithover to db2 what all do we need to do in rman manually to resume backups in db1?
Thanks
Hello;
A Standby database is a copy of the Primary so if you try to register it RMAN will probably tell you its already registered. I would start with this :
Standby based backup
1. Enable auto backup of the control file and server parameter file. CONFIGURE CONTROLFILE AUTOBACKUP ON.
2. Skip backups on datafiles already backup. CONFIGURE BACKUP OPTIMIZATION.
3. Set the archive deletion policy. CONFIGURE DELETION POLICY TO NONE.
You have to decide on the exact RMAN script you want to use, but since the database is registered you can perform backup on either the Primary or the Standby as the need arises.
See "Using RMAN to Back Up and Restore Files" in "Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05"
http://docs.oracle.com/cd/B19306_01/server.102/b14239/rman.htm
Example in this post
How to manage primary and standby database backups using rman catalog
How to use standby backup to restore primary db
http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
Best Regards
mseberg
Similar Messages
-
Configuring RMAN for dataguard.
Hi all,
Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. For both primary and secondary the ORACLE_SID is 'oracledb'.We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups. We are using a third catalog database to which we registered from primary db successfully. During primary rman configuration it is showing conflicts. Even the changes made in primary RMAN configuration are applied on to the standby too which i think shouldn't happen in this scenario. How to resolve this issue? Is this happening because of the same ORACLE_SID for both primary and secondary? I'm attaching the link of the doc that we followed also the errors and configuration in rman. Can anyone help?
http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#BAJFBBBB
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
new RMAN configuration parameters:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN-08591: WARNING: invalid archivelog deletion policy
RMAN> CONFIGURE DB_UNIQUE_NAME db1 CONNECT IDENTIFIER 'db1';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog, auxiliary, auxname, backup, channel, controlfile, clonename, compatible, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
RMAN-01007: at line 1 column 11 file: standard input
RMAN> show all;
starting full resync of recovery catalog
full resync complete
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_NIOS.f'; # default
Thanks.RMAN> show db_unique_name;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "all, archivelog, auxiliary, auxname, backup, channel, controlfile, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
RMAN-01007: at line 1 column 7 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01007: at line 1 column 21 file: standard input
But on this i'm getting response
SQL> select db_unique_name from v$database;
DB_UNIQUE_NAME
db1
same and db2 as db_unique_name for standby....
Edited by: 954758 on Sep 3, 2012 3:41 AM -
How to configure Rman for Grid 11g
hi all
i am using Oracle Grid 11g R2.
Oracle Database 11g R2.
Oracle Linux 5.5
i want to configure Rman for my Rac i searched and found some notes
such as
http://oraclehack.blogspot.com/2010/07/oracle-11gr2-rman-netbackup-and-media.html
http://oracle-tns.com/duplicate-an-oracle-11gr2-with-rman/
can anyone guide me how to configure Rman?
Question Moved To Rman Forum!
nisha
Edited by: nisha on Jun 5, 2011 9:44 PMhi
what is SBT here?
CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
Channel Connections to Cluster Instances with RMAN
Channel connections to the instances are determined
using the connect string defined by channel configurations.
For example, in the following configuration, three channels are allocated using dbauser/pwd@service_name. If you configure the SQL Net service name with load balancing turned on, then the channels are allocated at a node as decided by the load balancing algorithm.
CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
CONFIGURE DEFAULT DEVICE TYPE TO sbt;
CONFIGURE CHANNEL DEVICE TYPE SBT CONNECT 'dbauser/pwd@service_name'Edited by: nisha on Jun 6, 2011 12:27 AM -
Very first step in configuring RMAN for a Backup
DB version:10gR2
I am a DBA supporting applications development and i am not familiar with RMAN. This weekend we are going to Patch 10.2.0.1.0 to 10.2.0.3.0. Before that i am going to take a backup of the entire Database containing around 57 schemas(total of around 600gb).
We don't have Tape drives. I am going to backup this up on three filesystems in the same machine. This instance is not running on ASM. What is the first step i should be doing in configuring RMAN for a backup?
Edited by: user10583227 on Jan 27, 2009 4:50 AMBe careful, three filesystems doesn't necessarily mean the use of three channels. Could be more...could be less.
Are you in a position to shutdown the database? If not, you'll also want to backup the archivelogs with BACKUP DATABASE PLUS ARCHIVELOG. You may also consider creating a Guaranteed Restore Point which would allow you to rollback your database in minutes if the upgrade fails. -
hi all,
Currently am reading the doc http://download-uk.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJEDHFB
In that under 11.3.2 it says to configure deletion policy of 'applied on standby' to delete applied logs on standby....Studying further 11.3.4 it says the same configuration to be done in standby where backups are not performed..
my db is 10.2.0.4 and having a physical standby db where backups are not performed...Do u need to set the 'applied on standby' configuration both in primary as well in secondary'..
thanks,
baskar.lHi
See, as per your requirement whether you would to like have logs available for future use, go for applied policy.
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
We are trying to setup RMAN ( Incremental backup ) for a Dataguard system for Oracle 10G. As I am new to this can anyone help me to start the setup for this?
See "Using RMAN to Back Up and Restore Files" in "Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05"
http://docs.oracle.com/cd/B19306_01/server.102/b14239/rman.htm
More information
Re: Configuring rman for dataguard environment.
Best Regards
mseberg -
How Do I Configure SSL for RAC Installation.
Experts,
Requesting your inputs on configuring SSL for my RAC environment.
- Oracle DB version is 11.2.0.2
- RAC is with two nodes.
- Two nodes are : rac1.oracle.com and rac2.oracle.com
- RAC setup has SCAN feature configured. SCAN FQDN : racscan.oracle.com
- All clients talk to RAC DB using SCAN feature as shown below.
client applications -> racscan.oracle.com ---> rac1.oracle.com
---> rac2.oracle.com
- tnsnames.ora file on both RAC instances has hostname as "racscan.oracle.com" instead of their individual phyiscal host names.
How do I configure SSL for RAC:
1. Do I need to generate certificate request for individual hostnames or only for SCAN hostname ?.
2. If I generate a certificate based on SCAN hostname, how does SSL work since SCAN hostname is not a phyiscal host name ?
3. What is recommended strategy for configuring SSL for RAC environment ?
ThanksThe documentation on the creation of Oracle Wallets is not specific to RAC, and the RAC SCAN instructions for TCPS are very vague on the specific requirements for the certificates required in the wallets for proper operation. I too am struggling to get it to work. Does anyone have a more technical guide to the specific configuration of the certificates needed and what specific configuration file changes need to be made?
Also, the self signed documentation is getting REALLY old. Oracle, please stop giving instructions that demonstrate irresponsibility and show the proper method of certificate requesting and importing to wallets.
Edited by: user11338513 on Mar 21, 2012 2:23 PM -
RMAN for 10g RAC in windows2003
Hello experts,
could any one help to configure RMAN for 10g RAC in windows2003?
thanks,Hi;
Please check:
RMAN: RAC Backup and Recovery using RMAN [ID 243760.1]
RMAN configuration in ORACLE RAC database
RMAN configuration in ORACLE RAC database
RMAN and RAC
RMAN and RAC
Also check this search:
http://forums.oracle.com/forums/search.jspa?threadID=&q=RMAN+RAC&objID=f384&dateRange=all&userID=&numResults=15
I belive those are will answer your question
Regard
Helios -
Prerequisites for configuring RMAN
Hi All,
My database is in AIX Box..
I have to configure Rman backup in Windows system..
What are all the prerequisites for configuring the Rman?Hi!
OK. I'll post the content of this website:
A database cloning procedure is especially useful for the DBA who wants to give his developers a full-sized TEST and DEV instance by cloning the PROD instance into the development server areas.
This Oracle clone procedure can be use to quickly migrate a system from one UNIX server to another. It clones the Oracle database and this Oracle cloning procedures is often the fastest way to copy a Oracle database.
STEP 1: On the old system, go into SQL*Plus, sign on as SYSDBA and issue: “alter database backup controlfile to trace”. This will put the create database syntax in the trace file directory. The trace keyword tells oracle to generate a script containing a create controlfile command and store it in the trace directory identified in the user_dump_dest parameter of the init.ora file. It will look something like this:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 240
MAXINSTANCES 1
MAXLOGHISTORY 113
LOGFILE
GROUP 1 ('/u03/oradata/oldlsq/log1a.dbf',
'/u03/oradata/olslsq/log1b.dbf') SIZE 30M,
GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf',
'/u04/oradata/oldlsq/log2b.dbf') SIZE 30M
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;STEP 2: Shutdown the old database
STEP 3: Copy all data files into the new directories on the new server. You may change the file names if you want, but you must edit the controlfile to reflect the new data files names on the new server.
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq
rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsqSTEP 4: Copy and Edit the Control file – Using the output syntax from STEP 1, modify the controlfile creation script by changing the following:
Old:
CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGSNew:
CREATE CONTROLFILE SET DATABASE "NEWLSQ" RESETLOGSSTEP 5: Remove the “recover database” and “alter database open” syntax
# Recovery is required if any of the datafiles are restored
# backups, or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# Database can now be opened normally.
ALTER DATABASE OPEN;STEP 6: Re-names of the data files names that have changed.
Save as db_create_controlfile.sql.
Old:
DATAFILE
'/u01/oradata/oldlsq/system01.dbf',
'/u01/oradata/oldlsq/mydatabase.dbf'New:
DATAFILE
'/u01/oradata/newlsq/system01.dbf',
'/u01/oradata/newlsq/mydatabase.dbf'STEP 7: Create the bdump, udump and cdump directories
cd $DBA/admin
mkdir newlsq
cd newlsq
mkdir bdump
mkdir udump
mkdir cdump
mkdir pfileSTEP 8: Copy-over the old init.ora file
rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfileSTEP 9: Start the new database
@db_create_controlfile.sqlSTEP 10: Place the new database in archivelog mode
I hope that this could be of any help to you.
Best Regards
Florian W. -
Instructions for Configuring RMAN (Oracle 11g Enterprise Edition)
Good Afternoon,
Having problems configuring RMAN. Can someone tell me how to configure RMAN using the command line?
Thanks976505 wrote:
When I attempt to set the NLS_LANG at the SQLPLUS prompt, I get the following error message: SP2-0158: unknown SET option "NLS_DATE"
What am I doing wrong, did I miss something?
NLS_LANG can only be set at OS level: as env. var. in UNIX/Windows and as registry setting in Windows.
See OTN NLS_LANG FAQ http://www.oracle.com/technetwork/database/globalization/nls-lang-099431.html.
For example in Windows 7 if I want French settings and keep same character set:
set NLS_LANG=FRENCH_FRANCE.Edited by: P. Forstmann on 2 févr. 2013 20:42 -
RMAN catalog resync in Dataguard environment
Hello,
I have a quick question regarding the resync of the recovery Catalog in a 10g Dataguard environment...
I plan to perform the backups from the physical standby side. (Backups of DB and archives).
If I want to restore/recover a datafile on the primary side, do I automatically see the backup information once i am connected to the catalog DB, or do I have to perform a "resync catalog;" statement to resync the control file of the primary side with the actual backup information from the catalog?
Thanks in advance,
Boris...But what is the effect, if I perform this statement on the primary side? Do I loose backup information if I perform a resync of the catalog because the backups were made from standby side? If I perform all backups from standby side the control file on the primary side does not know about the backups.
I am asking because I want to know if I have to adjust the backupscripts. They perform a resync of catalog per default.
Thx, Boris.. -
Flashback in dataguard environment
Hi,
We have dataguard environment with Sun OS & Oracle 10g, 11g. Now we want to enable flashback for the primary database as well as standby database (physical standby). NO RMAN. I did manage to configure the flashback for the primary database but confusion is:
-- Do I need to configure flashback at standby or recreate standby after enabling flashback at primary site?
-- Suppose if I use flashback database to restore point and open database with resetlogs, what would be the situation at standby site? Will it be in sync with primary or after resetlogs I need to make new standby database??
-- Is there any space requirement ratio for flashback recovery partition?
Thanks,
Amit.If you only enabled flashback on your Primary, your Standby is not affected. If you did actually a flashback database on your Primary, you need to address that on the Standby. See an example here:
http://uhesse.wordpress.com/oracle-database-ha-architecture/2010/08/06/using-flashback-in-a-data-guard-environment/
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Restoration of ASM/RAC database to another clustered set of servers for DataGuard implementation
Hi all,
I've been working with single instance Oracle DBs for several years and we're now looking into RAC. I'm trying to gather as much info as possible in areas I think may be challenging if/when we implement RAC.
Can someone please help me with some info with regards to the scenarion below:
Assuming I already have a 2 node RAC database running and I want to set-up a failover RAC database, would the following steps be correct(assuming 11g):
Configure hardware, networking and O/S for 2 node RAC cluster (I know there's a lot in this single line, but let's just assume that's all done)
Configure disks for ASM
Clusterware installation
Oracle ASM software installation
Oracle11g software installation with RAC option
Database creation
***I'm not sure of the steps after database creation:
Export primary database up to a specific SCN (data pump gives the ability to specify scn)
Import into failover database
Switch on dataguard and sync failover starting from scn specified at export.
Please, help correct these steps and any useful link where this process is treated thoroughly would be highly appreciated.This is a very high level overview of the steps, but here are some additions/amendments I can make:
Clusterware installation
Oracle ASM software installation
-- The above 2 steps are done at the same time. In 11g, the Oracle 11g Grid Infrastructure includes both the Clusterware and ASM installation and configuration.
Oracle11g software installation with RAC option
Database creation
***I'm not sure of the steps after database creation:
Export primary database up to a specific SCN (data pump gives the ability to specify scn)
Import into failover database
Switch on dataguard and sync failover starting from scn specified at export.
Will you be using Data Guard for a physical standby? If so, using RMAN would be the correct method in creating the standby database. The general steps would be:
- Oracle 11g software installation
- Backup Primary Database
- Configure Data Guard Parameters on Primary
- Duplicate Primary to Standby RAC using RMAN (can be done manually or through the RMAN DUPLICATE command)
- Enable log transport from primary, enable managed recovery on standby, and verify log transport and apply is working as intended.
Again this is a very general overview on the entire process, there are other factors that you'll have to take into consideration when planning such a project:
- Which protection mode will you be using? Maximum Performance, Availability, or Protection? The business' recovery goals and SLAs will be able to determine which mode you will choose.
- Will the standby be used for reporting purposes?
- Recommended to have your standby site have the same hardware configuration as the primary.
- Do you have an EM site already set-up? Data Guard Broker should be considered in the configuration of the Data Guard environment.
This is just a few things quickly off the top of my head. What OS do you have/plan on using? I don't have the link handy on me at the moment, but the official Oracle documentation should provide detailed guidance.
EDIT:
At a bare minimum, read the 2 Day RAC Guide. There is more detailed information in the RAC Admin and Deployment Guide, as well as the Data Guard Concepts and Admin Guide. Also here's a step-by-step guide provided by Oracle. You can also find several blogs that provide a more concise step-by-step guide, such as here, here, and here. RACSIG also has a number of very useful whitepapers, but something seems to be wrong with their search function and I can't link anything at the moment. However, I would highly recommend reading through the official documentation as this has more comprehensive information, especially if you are deploying on a production system.
Regards,
Oscar -
RMAN and dataguard wout catalog?
Hello,
We used RMAN for backups and recently implemented a dataguard environment in 10g r2(physical standby). While perusing upgrading to 11g I came across instructions saying you must use a recovery catalog in a dataguard environment. The backups are running on the primary just using the control file and all seems to be working. I did a 'restore database validate' and it succeeded. Is the recovery catalog only necessary if I chose to do the backups on the standby - or is a catalog required in my scenario?
Thanks,
Mark
Edited by: user6061469 on Apr 20, 2011 11:43 AMYou were able to build your standby without using a catalog.
You are able to take backups of your primary without using a catalog.
Where does it say (in the documentation) that a recovery catalog is required ?
With the enforcement of DB_UNIQUE_NAME you can use the same catalog for Primary and Standby backups -- if you run backups from both locations. That is an enhancement. But not a requirement if you don't need to or plan to backup both sites and use a common catalog.
Hemant K Chitale -
Backup procedure using RMAN for 11i Instance
Hi,
we have 11.5.10.2 instance
Node 1 = Application Tier ( 11.5.10.2)
Node 2 = DB Tier ( 9.2.0.7)
as of now, we are taking daily cold backup of both instances.
we want to implement RMAN online backup for DB and take cold backup every week end only.
so, what are the best procedures for implementing RMAN for 11i Database.
Please share your experience, if you have anybody implemented?
which one you prefer in RMAN backup ( backupsets or copy option or backupsets with compressed option) interms of performance.. our db size is 60 GB only.
we apply apps tier patches very rarely . so we want to take RMAN online backup for DB daily and take cold backup for entire apps and db in the week ends.Hi,
This time, i am going to implement for Oracle 11i Database. thats why, i need you guys advice regarding 11i Database.Well, the same is applicable to 11i/R12 databases. You just need to configure RMAN the same way you configure it on any standalone database.
If you have implemented any where RMAN, can you share, how you are taking RMAN backup? I can share the scripts we use for backup using RMAN. If you are interested, let me know and I shall send it by email.
if we want to clone, are you cloning the TEST instance with RMAN backup or using cold backup.We use both, depends on the time frame of the cloning task and whether it is possible to use cold backup for cloning or not.
Please have a look at the following notes, it should be helpful.
Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1
Note: 760772.1 - Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=760772.1
Note: 362473.1 - Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362473.1
Regards,
Hussein
Maybe you are looking for
-
ITunes will not open on my PC and it is very frustrating
iTunes will not open on my PC unless |I have my iPad connected. I have run out of memory on my iPad and I cannot manage what is synchronised to it from my PC.
-
I've installed Arch with Gnome 3 in both VMware player and Virtualbox and I can't get the hot corner(or the notifications bar) to work in either of them. I can get it to work in Virtualbox if I disable mouse integration but the mouse pointer disap
-
The apple id showing up on my phone is not me, how do I change it?
Trying up download an app, or update and the Apple ID coming up is not my apple ID. Anyone know how to change this? I figured it out once but did not write it down. thanks!
-
ApplyChanges Problem in RowSet with SQLServer
Hi I m using CachedRowSet and trying to update,insert and delete operation on it.When i try to update in the database by calling applyChanges(cn) then the following exception arises. Rememnber this problem is with Microsoft SQLServer.Same operations
-
Changing color settings in BIBeans Tags in JDeveloper
Hai all am new to JDeveloper. i want to change the font,color etc in output on BI Bean Tags... am using a graph in BI Desinger and attached it to my Customized JSP file i can change in my JSP documet but i cant change the colors, fonts of the BEAN di