RAC backup procedure failover
We have Oracle 11gR2 RAC database on two nodes. We also have a RMAN backup script that works fine, using a recovery catalog database which is located in a town 20km from the data center. The script for database backup works fine, and is started from crontab Job or from Oracle dbconsole (for now it works from crontab). A recovery procedure is checked and everything is working properly.
The problem is that the script runs from the first node in the cluster, and if the node is turned off, backup can't be run. How can we ensure that our script have a failover backup version. We also tried to do the backup over dbconsole but this only works if the node from which to start job was started.
Essentially the question is "How to ensure that our backup works, whether or not both nodes are active"
Hi,
SerPedjasim wrote:
We have Oracle 11gR2 RAC database on two nodes. We also have a RMAN backup script that works fine, using a recovery catalog database which is located in a town 20km from the data center. The script for database backup works fine, and is started from crontab Job or from Oracle dbconsole (for now it works from crontab). A recovery procedure is checked and everything is working properly.
The problem is that the script runs from the first node in the cluster, and if the node is turned off, backup can't be run. How can we ensure that our script have a failover backup version. We also tried to do the backup over dbconsole but this only works if the node from which to start job was started.
Essentially the question is "How to ensure that our backup works, whether or not both nodes are active"Don't use nodes of clusterware to start backup. You can use the host of recovery catalog database which is located in a town 20km.
Move all scripts of rman to host of recovery catalog and configure the scripts in crontab of host of recovery catalog. The RMAN works as client only the backup is always performed on server side.
Create a Service on RAC to RMAN connect (e.g RMAN_BACKUP). The service should run on nodes 1 of the RAC, but is able to run on node 2 or 3 if nodes 1 are not available. (If you use the default service name of RAC (name of database) and you are using parallelism the RMAN can start a session in each node and the backup be perfomed by all nodes at same time, this is not a problem, but you can have perfomance problems on your environment). Because that I recommend create a Service.
http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/hafeats.htm
Configure a net service name using the local naming method on host of recovery catalog.
If you are using SCAN Feature do this above, if not put all VIP hostnames on Address.
e.g:
RMAN_BACKUP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node-scan.oracle.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RMAN_BACKUP)
)Regardless of the node that is active your backup will be started if a node is active
This will only work if you are performing online backup. I hope so.
Hope this helps,
Levi Pereira
Edited by: Levi Pereira on Aug 22, 2011 11:27 PM
Similar Messages
-
What is the correct procedure to make.
1. Every evening a "hot" on-line back.
2. Every saturday evening a "full" backup.
Message was edited by:
olivejuiceThe databases are running in archive mode.
Daily we do an on-line backup at 10pm.
We have an incremental tape backup of our system every night.
On saturday, I manually shutdown the databases and I copy the ORADATA files to a directory that is backup with our full tape backup during saturday night.
It's this procedure that I want to automate.
I can only create one backup procedure in EM console.
So my question is, how can I create an extra weekly off-line (with shutdown and restart of the databases) backup thats runs automatically. -
Proper Backup Procedures with External Hard Drives
I use external firewire drives for all of my photos and I have a quick question about backup procedures. I currently use Intego's Personal Backup X5 software solution and I wanted to know whether it is better to backup your files or Sync your files when making duplicate drives?
Aperture's vault function will "sync" your library with your vault. This means that the vault will only hold one specific version of your library, which is fine for most users. The vault file will be more or less the same size as your Aperture library file.
If you want to make incremental backup of your library (which will allow you to restore specific versions of your library) then you could take a look at "Backup 3" which can be downloaded in a trail version here:
http://www.mac.com/1/solutions/backup.html
Incremental backup will mean that your initial backup file plus all your incremental backup files will fill up more space on your harddisk than the size of your Aperture library. (incremental = adding)
Karsten -
N97: backup procedure bugged
Hi all,
The backup procedur has a bug.
If you have setted to store the messages in e: after that you made a backup on the microsd and you open message it will be an error message about the memory is not avaible and the memory storage will set once again in C:Lucky you got ur refund
i am gonna have to stay with this **bleep**ing phone but in like a year i am going to sell it to someone unlucky guy ans then get a coolest phone. oh yeah!
and i will never going to buy any Nokia **bleep** phone, NEVER, NO MORE NOKIA!! -
Backup procedures documentation
hi guys
Im a new dba here n have been asked to document the backup procedures. they didnt have any documentation till now. Could anyone share any template to document the backup procedures. Thanks in advance.10g Release 2 documentation will help -
http://www.oracle.com/pls/db102/portal.portal_db?selected=4 -
RAC backup with RMAN...put backup on diff file system
hello all,
I have not work a lot on SAN storages. One of my client has implementated 9i RAC. Now he wants to Add two more disk in SAN storage (Implemented RAID). So sun engineers will do this but before this i have to take full database backup(80GB database) throught RMAN. The problem or confussion from my side is that the database is on Sun SAN storage and i have to put the Full database backup taken by RMAN on local hard disk on the node (node 1 of rac). Is the possible since the SAN storage is RAW file system (as i guess) and i am putting the backup on local system.
Please help me out ...i have do this in couple of days..
Please tell me prosedure too to how to change the path of backup in RMAN if above is possible..
Its urgent
Thanks and Regards!!
Pankaj RawatTwo things:
1) You will not have any problems taking RMAN backup for RAC and raw devices. None of them make your backups any different.
2) Based on your post, you are not very confident in your RMAN skills and this is your real problem. What is a must for you - take the backup, copy it on another machine and try to restore from it. Note, that you should NOT look at your original database during restore or take any files from there (even init.ora or spfile). If you don't have this done and don't have exact procedure - consider your backup as useless. This is a conservative approach but believe me - it's wort it when you SAN engineers screw up your storage. And they warned you. ;-) -
Oracle 11gR2 RAC Backup & Recovery
I am new to Oracle RAC, I have installed Oracle 11gR2 RAC (2 node) on HP-UX with ASM, configured FRA location on ASM.
Now I would like to configure RMAN backup, Can someone give some idea or document to setup RMAN backup for Oracle 11gR2 RAC.
- ManoManoRangasamy wrote:
I am new to Oracle RAC, I have installed Oracle 11gR2 RAC (2 node) on HP-UX with ASM, configured FRA location on ASM.
Now I would like to configure RMAN backup, Can someone give some idea or document to setup RMAN backup for Oracle 11gR2 RAC. There won't be any different settings for RMAN for RAC except for where and how you would be configuring the Archive logs and place your backups. Both, ideally speaking, should be on the shared storage like ASM but there are other combinations also possible. Review the above given links for the same. That should provide a good starting point.
Aman.... -
RAC Backup of archivelogs in local destinations
Suppose there is 10g RAC Database using RMAN Backups.
Suppose It is a 2 node or 4 node RAC with archivelogs going to local destinations in all of them. What command we require to run to make sure all four node archivelogs are backed up at once ?
Is there such a command ? Or shall we run backup archivelog all command in all 4 nodes ?two ways to do it:
1 automatic
configure parallelism to 4.
Backup archivelog etc.
This will automagically open a channel on each node and run a backup command.
2 semi-automatic
alllocate channel .... connect to 'sys/<password>@tns4node1'
alllocate channel .... connect to 'sys/<password>@tns4node2'
alllocate channel .... connect to 'sys/<password>@tns4node3'
alllocate channel .... connect to 'sys/<password>@tns4node4'
backup archivelog etc
Note: RMAN is a lot smarter than you seem to suggest in your last line.
Actually, you are handicapping recovery by setting up local archives.
If the destination would have been shared, all 4 nodes would automagically participate in recovery.
You may want to reconsider your archivelog strategy.
Sybrand Bakker
Senior Oracle DBA -
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 -
Hello Community
When you setup a Sharepoint 2013 Server farm
if you want to provide failover clustering, can
the servers that the Sharepoint 2013 Server farm
failover to be located off-site in a different
location (i.e. how far away can the servers the
the primary server in the Sharepoint 2013 Server
farm be away from the failover cluster of backup
Sharepoint 2013 Server farm servers in distance?
Thank you
ShabeautHiya,
this article describes in detail the different aspects of creating a highly available SharePoint 2013 server farm.
Create a high availability architecture and strategy for SharePoint 2013
http://technet.microsoft.com/en-us/library/cc748824%28v=office.15%29.aspx -
Hello, I have a database that takes in between 80 to 600 transactions per day through an external feed. I need to implement a hot backup that will run once a day. I don't need to do point in time recovery because I can restore from the prior nightly backup and then replay the tlog file from the external feed. What is the best way to implement a hot backup. Is it as simple as running a sql procedure that will loop through all the tablespaces and put them in backup mode and then copy them to another location? I am open to all and any recommendations. The database is Oracle 9.2.0.1 running on Windows 2000 or 2003 server. Please provide any scripts if you can. Thank you and have a great day!
DavidI wrote a dynamic hot backup script once, you can look into it if you want:
-- YJAM - Modele backup dynamique
-- SQL*Plus Env
SET TIM OFF TIMI OFF ECHO OFF VERIFY OFF FEED OFF TRIMS ON
-- Variables dépendantes du systeme
DEFINE DEST_DIR=C:\Backup
DEFINE DIR_SEP=\ -- win*=\ | unix=/
DEFINE SH=host -- win*=host | unix=!
DEFINE COPIE=copy -- win*=copy | unix=cp
DEFINE SUPPR=del -- win*=del | unix=rm
DEFINE MARGE_ARCHIVELOGS=10
-- Preparation pour les archives
COL FARCH NEW_VALUE FIRST_ARCHIVELOG NOPRINT;
SELECT MAX(SEQUENCE#)-1 FARCH FROM V$LOG;
PROMPT *************************************************
SET SERVEROUTPUT ON SIZE 200000
SPOOL &DEST_DIR.&DIR_SEP.part1.sql
DECLARE
-- Curseur pour recuperer la liste des datafiles
CURSOR cDatafiles IS SELECT TABLESPACE_NAME, FILE_NAME FROM DBA_DATA_FILES ORDER BY TABLESPACE_NAME;
REP_BACKUP VARCHAR2(500 CHAR) := ''; -- Définition du répertoire principal de destination de sauvegarde
OTN VARCHAR2(50 CHAR) := ' '; -- Variable en aiguillde trainante pour le declanchement du mode backup
PFILE_INFO VARCHAR2(500 CHAR) := ''; -- Variable pour test de type de fichier d'initialisation
BEGIN
-- Validation du repertoire de destination
SELECT INSTANCE_NAME INTO REP_BACKUP FROM V$INSTANCE;
REP_BACKUP := '&DEST_DIR.&DIR_SEP'||REP_BACKUP||'&DIR_SEP'||TO_CHAR(SYSDATE,'YYYYMMDD')||'&DIR_SEP';
DBMS_OUTPUT.PUT_LINE('&SH mkdir ' || REP_BACKUP);
DBMS_OUTPUT.PUT_LINE('--');
-- Traitement des DATAFILEs
FOR vDatafiles IN cDatafiles
LOOP
-- Si le tablespace parcourru n'est pas le meme que le precedent
IF (OTN != vDatafiles.TABLESPACE_NAME) THEN
-- Si ce n'est pas le premier alors on bascule l'ancien hors du mode backup
IF (OTN != ' ') THEN
DBMS_OUTPUT.PUT_LINE('ALTER TABLESPACE ' || OTN || ' END BACKUP;');
END IF;
-- Mise a jour de l'aiguillde trainante et mise en mode backup du tablespace
OTN := vDatafiles.TABLESPACE_NAME;
DBMS_OUTPUT.PUT_LINE('ALTER TABLESPACE ' || OTN || ' BEGIN BACKUP;');
END IF;
-- Il faut sauvegarder les fichiers!
DBMS_OUTPUT.PUT_LINE('&SH &COPIE ' || vDatafiles.FILE_NAME || ' ' || REP_BACKUP);
END LOOP;
-- Evite un effet de bord: sortir le dernier tablespace du mode backup*
DBMS_OUTPUT.PUT_LINE('ALTER TABLESPACE ' || OTN || ' END BACKUP;');
DBMS_OUTPUT.PUT_LINE('--');
-- Sauvegarde du fichier de controle sous forme controlfile et trace
DBMS_OUTPUT.PUT_LINE('ALTER DATABASE BACKUP CONTROLFILE TO ''' || REP_BACKUP || 'control.ctl'';');
DBMS_OUTPUT.PUT_LINE('ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS ''' || REP_BACKUP || 'trace.ctl'';');
DBMS_OUTPUT.PUT_LINE('--');
-- Vérification du type de fichier d'initialisation
SELECT VALUE INTO PFILE_INFO FROM V$PARAMETER WHERE NAME='ifile';
IF (PFILE_INFO IS NULL) THEN
-- A priori on utilise un fichier de type SPFILE ou le PFILE standard
SELECT VALUE INTO PFILE_INFO FROM V$PARAMETER WHERE NAME='spfile';
IF (PFILE_INFO IS NULL) THEN
-- On utilise le pfile standard
-- Donc on créée temporairement un spfile pour en faire une sauvegarde)
DBMS_OUTPUT.PUT_LINE('CREATE SPFILE=''' || REP_BACKUP || 'spfile.ora'' FROM PFILE;');
DBMS_OUTPUT.PUT_LINE('CREATE PFILE=''' || REP_BACKUP || 'pfile.ora'' FROM SPFILE=''' || REP_BACKUP || 'spfile.ora'';');
DBMS_OUTPUT.PUT_LINE('&SH &SUPPR ' || REP_BACKUP || 'spfile.ora');
ELSE
-- On utilise un spfile
-- Donc on le sauvegarde simplement
DBMS_OUTPUT.PUT_LINE('CREATE PFILE=''' || REP_BACKUP || 'pfile.ora'' FROM SPFILE;');
END IF;
ELSE
-- on utilise un pfile specifique
DBMS_OUTPUT.PUT_LINE('&SH &COPIE ' || PFILE_INFO || ' ' || REP_BACKUP);
END IF;
DBMS_OUTPUT.PUT_LINE('--');
END;
SPOOL OFF
@&DEST_DIR.&DIR_SEP.part1.sql
PROMPT *** Exec part 1
SPOOL &DEST_DIR.&DIR_SEP.part2.sql
DECLARE
-- urseur de parcours de la liste des archivelogs
CURSOR cListearchive(pLow NUMBER, pHigh NUMBER) IS SELECT NAME,SEQUENCE#
FROM V$ARCHIVED_LOG
WHERE SEQUENCE# BETWEEN pLow AND pHigh
AND DEST_ID IN
(SELECT DEST_ID
FROM V$ARCHIVE_DEST
WHERE DESTINATION IS NOT NULL
AND UPPER(DEST_NAME) IN
(SELECT UPPER(NAME)
FROM V$PARAMETER
WHERE VALUE IS NOT NULL
AND NAME LIKE '%log_archive_dest_%'
AND UPPER(SUBSTR(VALUE,1,8))='LOCATION'
ORDER BY SEQUENCE#;
LAST_ARCHIVELOG NUMBER := 0;
-- Variables de bornage des archives a sauvegarder
FIRST_ARCHIVELOG NUMBER := &FIRST_ARCHIVELOG;
CURR_ARCHIVELOG NUMBER := 0;
REP_BACKUP VARCHAR2(500 CHAR) := '';
-- Définition du répertoire principal de destination de sauvegarde
BEGIN
-- Validation du repertoire de destination
SELECT INSTANCE_NAME INTO REP_BACKUP FROM V$INSTANCE;
REP_BACKUP := '&DEST_DIR.&DIR_SEP'||REP_BACKUP||'&DIR_SEP'||TO_CHAR(SYSDATE,'YYYYMMDD')||'&DIR_SEP';
-- Marge de travail sur les fichiers archivelogs
EXECUTE IMMEDIATE 'ALTER SYSTEM SWITCH LOGFILE';
-- On va savegarder les &MARGE_ARCHIVELOGS derniers archivelogs.
SELECT MAX(SEQUENCE#)-1 INTO LAST_ARCHIVELOG FROM V$LOG;
FIRST_ARCHIVELOG := FIRST_ARCHIVELOG - &MARGE_ARCHIVELOGS;
DBMS_OUTPUT.PUT_LINE('-- tranche: ' || FIRST_ARCHIVELOG || ' a ' || LAST_ARCHIVELOG);
-- Parcours de la liste des elements archives concernes
FOR vListearchive IN cListearchive(FIRST_ARCHIVELOG,LAST_ARCHIVELOG)
LOOP
-- Traite t'on une nouvelle archive?
IF (CURR_ARCHIVELOG != vListearchive.SEQUENCE#) THEN
DBMS_OUTPUT.PUT_LINE('&SH &COPIE ' || vListearchive.NAME || ' ' || REP_BACKUP);
CURR_ARCHIVELOG := vListearchive.SEQUENCE#;
END IF;
-- si non il n'y a rien à faire.
END LOOP;
END;
SPOOL OFF
PROMPT *** Exec part 2
@&DEST_DIR.&DIR_SEP.part2.sql
PROMPT *************************************************But it's provided without guarantee. It's been a long time i've not used it! And it might have bugs. Up to you to test it, backup is not a matter where you trust people :-)
Of course, you could also use a simple RMAN script, depending on what you are trying to achieve exactly:
RUN
allocate channel c01 type disk format 'c:\backup\%d%U';
backup database;
backup archivelog all delete input;
}This is just a sample. And you need to choose how you'll use RMAN.
Yoann.
Edited to clean up the code from unnecessary blank lines...
Message was edited by:
Yoann Mainguy -
Hi,
I have running Oracle 11gr2 RAC with R12.0.6 Oracle application. All databases are using ASM disk.
What are the best backup & recovery plan for RAC in ASM for database server?
I'm using RMAN daily backup for Database and Application backup on weekly basis.
thanksPlease refer to "Chapter 7 Managing Backup and Recovery" in (Oracle® Real Application Clusters Administration and Deployment Guide 11g Release 2 (11.2)) manual.
http://www.oracle.com/pls/db112/portal.portal_db?selected=16&frame=
Thanks,
Hussein -
Suggest me sutable BACKUP procedure
Hai Friends,
I hope all r doing well.
Ours is small co., here I hv to take the backup daily and Weekly.
Configaration:
Ecc6.0, DB6, AIX 5.3
One DEV, One PRD no QAS system,no separate data base system.
1.ALL Production data backup to Tape.
2.All DEV data backup to CD or Hard disk.
3.How 2 schedule backup in DB13.
We do not using any 3rd party tool for backup.So friends plz respond me.
Plz send the best and easyest procedure for taking backup for above mentioned configaration.
Regards
JaganHi,
use this command at the database level :-
db2 backup db < DBSID > to < a directroy or device or a tape >
Even you can do this using control center.
Rgds
Radhakrishna D S -
I'm having trouble with the functionality of backup servers in a serverfarm.
Lets say I have three rservers in a serverfarm. Each rserver has a backup-server assigned to it. When a probe detects that one of the three nodes failed, the ACE puts the backupserver in rotation for the whole serverfarm. This causes one out of three connections to show a "under construction" page. However two of the three nodes are still functioning, but users randomly see a construction page, which confuses them.
Is there a way to configure the ACE to follow this procedure?
One server fails a probe, take server out of rotation
Second server fails a probe, take server out of rotation
Third server fails a probe, take server out of rotation
Place backupserver in rotation for the whole farm
When one server comes back online, put it inservice and take backupserver out of rotation.
The intent is for the rservers to be self-sufficient making server administrators not have to have any knowledge of ACE and need to login and manually place a serever out of service. I want a probe to detect IIS failing and allow server administrators to work on one node at a time without an outage, and still retain a construction page if all nodes fail.Hi,
Probably, you may need a "sorry server" configuration but also there´s another way which you may take into account which backup serverfarm, please take a look:
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA5_1_0/configuration/slb/guide/classlb.html
backup
name2
—(Optional) Designates an existing host (with valid content) or a redirect (sorry) server farm as a backup server farm in case all the real servers in the primary server farm become unavailable. You can configure one backup server farm for each existing primary server farm. When at least one server in the primary server farm becomes available again, the ACE sends all new connections back to the primary server farm. The ACE allows existing connections to the backup server farm to complete."
Regards,
Jorge -
Hello Support,
We have Oracle 11g R1 RAC enviornement on Windows 2003 Enterprise.
We want to take full database backup to restore in case of any failure.
We are planning to install Oracle on single instance to different hardware and location having same windows.
I appreciate to have proper steps for analysis please.
Currently what are considering are;
- Shutdown RAC database
- Copy control/datafile/redo log files
- paste to other hardware
- using Oracle configuration manager to create template for the existing RAC database.
please add further steps for anaylsis
ThanksCopy the Cold Backup.
Startup one instance of the database.
And that's it. You are DONE.
If you want to do a cleaner job you can also
Disable the second instance (thread) and then drop the Redo Log Groups of that thread on the Single Node after you have copied the Cold Backup.
I agree with your customer and disagree with the other posters in this thread. A Cold Backup Restore is much much easier than an RMAN Duplicate.
The documentation, unfortunately, covers scenarios where you delete an ORACLE_HOME and/or a Node from an existing RAC Cluster :
http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/adddelwin.htm#CHDFAEJB
See the ALTER DATABASE commands : DISABLE INSTANCE and DROP LOGFILE clauses.
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_1004.htm#i2079942
Do these only the the second database server where you copy the Cold Backup.
Do NOT DO NOT DO NOT DO NOT do anything on the actual RAC environment !!
Hemant K Chitale
Maybe you are looking for
-
Report Job failed when Bursting is used in BI Publisher 11.1.1.5
The Report Job failed when Bursting is used. error message: [INSTANCE_ID=aimedap1s.1347261753557] [OUTPUT_ID=1421][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document at
-
Is the floating window state available to JSR168 portlets? If it is where to set it? Thanks
-
Will Lumia 920 will support mobilepdf
-
I have to load a table with 20 million records into a table which maintains history (32 columns). I have a primary key based on a surrogate key. Because I'm loading so many records, I would like to drop the index to make the load go faster. But then
-
I've created a blog at http://www.make-money-writing.com I'm wondering if I can just update the blog pages with my FTP client, or if I have to publish the whole site again, every time I post an update on my blog. Also - I do not use .mac for hosting,