Cold backup RMAN
Basically I ask this question for a problem surrounding in another thread, but here go us:
Suppose we take a COLD backup. I know, not something directly related with RMAN, but further action is:
This guy says: I take a backup to cold, I copy the files to another server, on which he has made the necessary in order to start this database.
But then, since the backup and the time of the action above, time is up.
So, there are archived redologs... because the database is in archivelog mode.
And he wants to do what is obvious: use these Redos archived, to update the database at a later stage in time.
To be clear; the Oder archived are created by the source database. The target database has been copied and started, nothing else.
If the backup is a backup hot, without issue. But because the backup is cold, it is not possible, right?
My idea is that he must also take a hot backup, in addition.
I asked already, and despite the execution of the database in archivelog mode, the backup must be taken cold, backup mode for some reason. It is probably the old method, who they now want to just add redolog recovery, but without change from cold to hot.
At some point, RMAN must be running, of course.
I guess that RMAN is used for the entire operation, not "at some point" (I see no reason not to).
The cold food at the start is to make a clone. THEN, the question is asked, but can we also restore to a point more recent in time?
Yes, you can recover the "clone" until a more recent point in time as long as you do not OPEN it, and you have all necessary archivelogs. The sequence:
1 startup nomount
2 restore controlfile
3. change the editing of the database
4 restore your cold backup (do not open the database)
5. If necessary, catalogue archivelog backups
6 back to the desired point in time
7. alter database open resetlogs.
But I repeat, why did you stop your databases, if that is not necessary? (of course I think of my dozens of databases 24 x 7).
Tags: Database
Similar Questions
-
DB version: 10.2.0.4
Can't you find something wrong in the below mentioned the cold backup RMAN script? Improvements, corrections?
{ shutdown immediate; startup mount; backup database including current controlfile tag='full_bkp'; startup; crosscheck backup; delete noprompt obsolete device type disk; resync catalog; }
Should work, but you can include more 'archivelog' in the backup statement in the case where your database is running in archivelog mode. It's also a good idea to make a backup of the trace of the controlfile using "sql" controlfile alter backup database to TRACE";"
-
The user managed based backup Rman backup cold cold vs
Hi all
I just want to know the advantages and disadvantages for backup managed user cold and cold backup Rman.
What is the best cold backup?
Some some can help me?
Thank you
Cedric Joshi
Hello
Both are good only... If you took the clod backup (managed by the user), you can also do with RMAN catalog.
I feel clod RMAN backup is good.
Reason:
======
++ with RMAN you can avoid used used block, you can only backup used blocks
++ RMAN has its own compression algorithm
++ We also have the ability to assign multiple channels to parallelize the backup
-
Cold DB RMAN backup &; restore on the other server: best procedure?
Hello
A few days ago I did a cold backup of the GR 2 CARS DB 11 with the following commands:
srvctl stop database d DBPOC
RMAN target / < < EOF
bootable media;
run
{
assign the channel c1 type disc format ' / tmp/dump/coldBkp/%T_%d_DBID%I_s%s_p%p.bkp';
backup of database TAG 'BKPCOLDDBPOCC' keep until 'sysdate + 1000';
backup current controlfile TAG 'BKPCOLDDBPOC_CTL' keep until 'sysdate + 1000';
backup spfile TAG 'BKPCOLDDBPOC_SPF' keep until 'sysdate + 1000';
output channel c1;
}
SHUTDOWN IMMEDIATE;
quit smoking;
FO %
srvctl start database-d DBPOC
srvctl start service d DBPOC
Then noticing that I need a copy of controlfile I also did:
backup current controlfile copy format in ' / opt/dump/oracle/coldBkp/currentctlfile.ctl';
He made a set of files in the file/tmp/dump/coldBkp system that I copied to another server, resembling:
20130912_DBPOC_DBID23987234897_s371_p1.BKP... plus my currentctlfile.ctl.
I copied everything on another machine in/tmp/rest, where the same structure of fs and ASM
starts existed; then run the following commands to restore this DB on
This new server:
1 / set some env variables
2 / cp initDBPOC.ora /opt/oracle/app/ora11g/product/11.2.0/db_1/dbs
3 / sqlplus: Startup nomount pfile=/opt/oracle/app/ora11g/product/11.2.0/db_1/dbs/initDBPOC.ora
4 / rman: restoring controlfile to ' / location/of/coldbackup/files/currentctlfile.ctl';
5 / rman: sql 'alter database mount;
6 / rman: catalogue start with "/ location/of/coldbackup/files";
[Type here YES]
7 / rman: restore the database;
8 / sqlplus: recover database using backup controlfile until CANCEL;
[immediately cancelled the first required archive log]
9 / sqlplus: alter database open resetlogs;
The procedure has worked.
But I'm not happy with this, I thought I could have done with RMAN. However, I discovered
e.g. a CONTROLFILE RECOVER with the HELP of BACKUP is not possible with RMAN etc etc.
and I had to swith back to sqlplus, surprisingly.
Am I missing orders RMAN should I used? Y at - it another way - more simple? -of
perform this restore/recovery simple thanks to the RMAN utility only? Or is my error in backup
the first place and I should have used other commands for backup?
Thank you very much in advance for any advice you can give me...
Kind regards
Sébastien
Hello
You can use
RMAN > RECOVER DATABASE;
and for the time being, you can use
Set until clause with TIME/SCN/restore point
HTH
-
Re: is the cold backup of rman includes onlinde redologs?
Hello
cold backup of rman includes onlinde redologs?
So that at the time of the recovery when I restore the database the redologs online also restored at this point?
Please, please add your suggestions. I read in 10g database in condition to mount everything taking the backup RMAN as cold as the oracle process overall are down we cannot copy the redologs online.
Am I correct, otherwise please someone answer me why the redologs online are not copied.
Thanks in advance
SAIA cold backup (i.e., MOUNT but not given) to RMAN does not backup online redo logs.
If you restore this backup you will need OPEN RESETLOGS to recreate the online redo logs to the target.
Hemant K Collette
PS: Oracle Documentation prefers to call an RMAN backup backs "Cohérent" when the database is mounted but the State is not OPEN. "Cold Backup" is today used for the non-RMAN methods.
Published by: Hemant K Collette on 8 January 2013 11:47
Added PS -
cold backup of rman includes onlinde redologs?
Hello
cold backup of rman includes onlinde redologs?
So that at the time of the recovery when I restore the database the redologs online also restored at this point?
I reason,.
Thanks to advanced
SairangaRMAN never backup online redo logs.
If you ever need to restore a database that had been saved cold with rman, you'd end up working with an alter database open resetlogs, which will create newspapers online brand new, empty.
-
RAC RAC CLONE OF RMAN cold backup
Hi all
I need your help in my Oracle RAC 11.2.0.2 to remote host environment cloning. Here's the disc structure
DGVOT (disc ASM holding OCR and voting disk group)
DGDATA (disk group ASM containing data files)
DGFRA (disk group ASM files for fast recovery)
Remote host is on a different location so cannot use duplicate RMAN with auxiliary channel.
Have the luxury of downtime so I wanted to take coherent RMAN (Cold Backup)
SAME structure of the disc is available on remote hosts.
11.2.0.2 CLusterware (IG) over the oracle binaries are already installed.
Can any body tell me the steps to
(1) how to take cold backup on the disk so that I can tar and copy to the remote host
(2) clone of the database on the remote host
(3) how do I add the listener for the database and other resources of this databasee clusterware.
in fact, it's my first clone CARS, so I'm well aware of the steps in detail.
I went though a lot of notes metalink but nobody fits my needs. your tips will help me a lot
Kind regardsHello
(1) how to take cold backup on disk so that I can tar and copy to the remote host.
Use Rman cold backup
At the stage of the mountain run
RMAN > backup database archivelog format '%U /dbp ";
RMAN > backup controlfile current format "%U /ctl"; Copy these to the remote host backup sets
(2) clone of the database on the remote host
Create groups of similar ASM disk as source
create pfile/spifile, starting in nomount mode instance
backup set from catalogRMAN > catalogue start with "
"; Restore controlfile
RMAN > restore controlfile;
RMAN > restore database;
RMAN > restore database;
On the success of the recovery
RMAN > sql 'alter database open;
(3) how do I add the listener for the database and other resources of this databasee clusterware.
Srvctl user to add resources
Use: srvctl
-
Dear all,
db_version: 10.2.0.4
OS_Version:window 2003 Server
Environment: Test
I want to perform cold backup with RMAN for the same thing I want to know the following:
1. What is the script / command?
2. how to completely restore a cold backup (ex:-if I lost all my data, redo and archive)
3. is it compulsory to open the database in mode RESETLOG after recovery (since I was a backup to cold)?
Thanks in advanceA backup 'Cold' is called a 'Cohérent' backup
See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm#sthref297Backup:
From the RMAN command line:SHUTDOWN IMMEDIATE STARTUP MOUNT BACKUP DATABASE BACKUP CURRENT CONTROLFILE -- to get the controlfile in a separate backupset
Restoration:
STARTUP MOUNT RESTORE DATABASE ALTER DATABASE OPEN
If you use a SPFILE, you can have a backup SPFILE included automatically with the backupset controlfile with CONFIGURE CONTROLFILE AUTOBACKUP on and CONFIGURE CONTROLFILE AUTOBACKUP FORMAT...
Read the documentation.
Hemant K Collette
-
Unable to cold backup with rman
Dear all
I am trying to perform cold backup with rman and my script follows
Run {}
stop immediately;
bootable media;
allocate channel dup1 device type disk;
allocate channel dup2 device type disk;
backup format ' / home/oracle/ORACLEBACKUP/%U' database;
output channel dup1;
output channel dup2;
ALTER database open;
}
When I run this script in rman it shows errord
database closed
dismounted database
Instance Oracle to close
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the boot command at 14/01/2011 14:31:30
ORA-12514: TNS:listener is not currently of service requested in connect descriptor
RMAN >
There is no error in my script or other
Thanks in advance
Shaikh Abdul AnthonyYou connect through an earpiece.
The listener becomes aware of the database when you turn it off.You run RMAN from the same server as the database? You need not connect through an earpiece.
Hemant K Collette
-
Help remove backups rman (delete the repository)
Hi all.
I will soon be administering a few databases Oracle (11g Rel2). Currently these DBs area in log mode archive with a backup rman in place policy.
I don't like this policy and you want to use my own, incremental backups from updadateable, so this is the plan I have in mind.
(1) disable mode archive.
(2) a clean shutdown and take a backup to cold.
(3) since after you disable archiving, backups RMAN ALL will be unusable, I want to remove them (including newspapers archive and backup sets).
(4) after the correct deletion, set up some persistent RMAN settings, such as retention policy, controlfile autobackup and optimization.
(5) turn on archiving
(6) to set up the new policy based backups backup incremental updateable with duplex location for archiving logs.
Help is requested on the best way to clean all the backups (3).
I can manually delete the backups and do overlap, but according to the Oracle Documentation "Delete backup" will be delete all backups for data recorded in the RMAN Repository.
So which is the best way easier and faster? Will delete backup include the archive logs?
Thanks in advance. Luis!
myluism wrote:
Can I still use them?
I would say it is "the wrong answer to evil. When you disable log mode archive, you can only back up the database when it is stopped and only to restore and recover the database until the last stop.
Looking at your plan, I wonder what you are trying to accomplish first log mode archive disabling and then enabling archive mode log again. Why do you think that this is necessary and what you're trying to accomplish.
You need not disable and enable log mode archive in order to eliminate the obsolete achivelogs.
If you are not satisfied with the retention policy, simply change it. All backups that are outside your retention policy will be considered as obsolete and you can remove them using RMAN delete obsolete, which will remove all files as well as the appropriate data backup from the RMAN Repository.
For example you can archivelog delete all the entries backup and then delete the backupset or remove them at the OS level, do overlap and then use delete noprompt expired archivelog all.
The retention policy applies to backup and archivelogs. However, you can have a separate archivelog deletion policy that applies to archivelogs.
-
case of disaster with backup rman and archivelogs
Salvation;
When the disk failure comes and drop everything on disks, if we have a cold backup and logs archiving ONLY after a cold backup up to disk failure, we can restore files (datafiles, controlfile and everything) and apply to these cold backup archive logs and make the database updated up to the failure of disks.
I had this case in real life, and it works.
but
What happens if you don't have backup rman online that was taken before the failure of disk instead of cold backup and archive logs that was created after the backup online up to the failure of the drive.
We can restore the online of rman backup files, but can we apply archive logs to these restored files to update the database to the disk failure?
Best regardsUse the SET clause UNTIL - for example the VALUE up to TIME - before running the command RECOVER the DATABASE.
See http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsubcl019.htm#i1000331
and example 4-38 on the same page.
Hemant K Collette
-
While you take the cumulative incremental backup RMAN. Meanwhile users ke
While you take the cumulative incremental backup RMAN.
During this time users keep be updated, insert the corresponding schema.
But my Client doesn't backup up-to-date. Is it possible to get the up-to-date backup?
(If I have something wrong, sorry about that, that was my interview question)
Thanks for all,
Kind regards
DBDB wrote:
While you take the cumulative incremental backup RMAN.
During this time users keep be updated, insert the corresponding schema.
But my Client doesn't backup up-to-date. Is it possible to get the up-to-date backup?
(If I have something wrong, sorry about that, that was my interview question)Thanks for all,
Kind regards
DBRMAN backup is not compatible and easy to follow on-line transactions. If it's something any purpose of migration suggest taking COLD backup.
If it's no way suggested, then after your entire + cumulative backups, however, that data will be available in archives -
Cold backup of database primary affect DR sync
Hello
We have some 10gr 2 DR of installation,
We are planning for the cold primary database backup on every Sunday.
It's going to affect DR sync if the primary database is not available at the time of the cold backup.
Thank youNo Impact
-
Should we backup Archivelogs special cold backups?
B version: 11.2
Version of the operating system: Solaris 5.10
Here's the script that we use for ad-hoc cold backups. Is it necessary to take the backup of the archivelogs when we do the backup to cold?
Size of the backup archivelog room is sometimes greater than the backup piece containing the full backup of the comic itself! Then lost too much disk space.
The script that we userun { allocate channel t1 type disk; sql 'alter system archive log current'; shutdown immediate; startup mount; backup full database format='/mypath/ORCL_full_%U_%T.bkp' tag='ORCL_full'; backup archivelog all tag='arch_bkp' format='/mypath/ORCL_BKP/arch_%U_%T.bkp' delete input; release channel t1; }
Hello;
A cold backup is a consistent state. If you do not have to save them. No new archived logs generated during the backup or if you're still OK.
For other types of RMAN backup, you STILL want it. This ensures that backups of data taken when the command file is recoverable in a consistent state.
Best regards
mseberg
-
Restore and backup RMAN recovery in a new server
Version: 11.2
Platform: Solaris
I did several restorations of RMAN backups to new hosts. Whenever I do a full recovery of a cold backup, when I run the
I used to getRECOVER DATABASE
I considered this as being 'Normal' and always used to causearchive log filename=/u04/mvf/data/dbase/arch/arch.log1_235_678649266.dbf thread=1 sequence=235 unable to find archive log archive log thread=1 sequence=236 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 12/04/2011 14:33:18 RMAN-06054: media recovery requesting unknown log: thread 1 seq 236 lowscn 11290198
But I read the below mentioned informative post yesterday.alter database open resetlogs
Question on create Redo log after restoring files and recover
According to the guidelines of this post, I shouldn't use
for a full recovery.alter database open resetlogs
So, what should I do
a.
Should I use
ORALTER DATABASE OPEN ; -- I think I got some error with this command when i issued it after RMAN-06054 error . Can't recall what error
b.
Should I userecover database until sequence 236;
Here is how I could use a combination of RMAN (for RESTORATION) and SQL (for the OPEN RESETLOGS):
$ rman target / Recovery Manager: Release 10.2.0.2.0 - Production on Wed Nov 16 05:40:51 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database (not started) RMAN> startup nomount Oracle instance started Total System Global Area 419430400 bytes Fixed Size 1261164 bytes Variable Size 113246612 bytes Database Buffers 297795584 bytes Redo Buffers 7127040 bytes RMAN> restore controlfile from autobackup; Starting restore at 16-NOV-11 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=156 devtype=DISK recovery area destination: /usr/oracle/flash_recovery_area database name (or database unique name) used for search: MYNDB channel ORA_DISK_1: autobackup found in the recovery area channel ORA_DISK_1: autobackup found: /usr/oracle/flash_recovery_area/MYNDB/autobackup/2011_11_16/o1_mf_n_767337675_7d6l55ck_.bkp channel ORA_DISK_1: control file restore from autobackup complete output filename=/usr/oracle/oradata/MYNDB/control01.ctl output filename=/usr/oracle/oradata/MYNDB/control02.ctl Finished restore at 16-NOV-11 RMAN> sql 'alter database mount'; sql statement: alter database mount released channel: ORA_DISK_1 RMAN> RMAN> restore database; Starting restore at 16-NOV-11 Starting implicit crosscheck backup at 16-NOV-11 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=156 devtype=DISK allocated channel: ORA_DISK_2 channel ORA_DISK_2: sid=155 devtype=DISK Crosschecked 16 objects Crosschecked 3 objects Finished implicit crosscheck backup at 16-NOV-11 Starting implicit crosscheck copy at 16-NOV-11 using channel ORA_DISK_1 using channel ORA_DISK_2 Finished implicit crosscheck copy at 16-NOV-11 searching for all files in the recovery area cataloging files... cataloging done List of Cataloged Files ======================= File Name: /usr/oracle/flash_recovery_area/MYNDB/autobackup/2011_11_16/o1_mf_n_767337675_7d6l55ck_.bkp using channel ORA_DISK_1 using channel ORA_DISK_2 channel ORA_DISK_2: starting datafile backupset restore channel ORA_DISK_2: specifying datafile(s) to restore from backup set restoring datafile 00003 to /usr/oracle/oradata/MYNDB/sysaux01.dbf restoring datafile 00004 to /usr/oracle/oradata/MYNDB/users01.dbf restoring datafile 00005 to /usr/oracle/oradata/MYNDB/datafile/o1_mf_example_7c4qzn5k_.dbf restoring datafile 00006 to /usr/oracle/oradata/MYNDB/undotbs.dbf channel ORA_DISK_2: reading from backup piece /usr/oracle/flash_recovery_area/MYNDB/backupset/2011_11_16/o1_mf_nnndf_TAG20111116T052209_7d6l4227_.bkp channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00001 to /usr/oracle/oradata/MYNDB/system01.dbf restoring datafile 00002 to /usr/oracle/oradata/MYNDB/datafile/o1_mf_hemant_7c4qzn0o_.dbf restoring datafile 00007 to /usr/oracle/oradata/MYNDB/datafile/o1_mf_assm_tbs_7c4qzn0q_.dbf restoring datafile 00008 to /usr/oracle/oradata/MYNDB/datafile/o1_mf_mssm_tbs_7c4qzn0x_.dbf channel ORA_DISK_1: reading from backup piece /usr/oracle/flash_recovery_area/MYNDB/backupset/2011_11_16/o1_mf_nnndf_TAG20111116T052209_7d6l4216_.bkp channel ORA_DISK_1: restored backup piece 1 piece handle=/usr/oracle/flash_recovery_area/MYNDB/backupset/2011_11_16/o1_mf_nnndf_TAG20111116T052209_7d6l4216_.bkp tag=TAG20111116T052209 channel ORA_DISK_1: restore complete, elapsed time: 00:00:35 channel ORA_DISK_2: restored backup piece 1 piece handle=/usr/oracle/flash_recovery_area/MYNDB/backupset/2011_11_16/o1_mf_nnndf_TAG20111116T052209_7d6l4227_.bkp tag=TAG20111116T052209 channel ORA_DISK_2: restore complete, elapsed time: 00:00:35 Finished restore at 16-NOV-11 RMAN> RMAN> exit Recovery Manager complete. $ sqlplus '/ as sysdba' SQL*Plus: Release 10.2.0.2.0 - Production on Wed Nov 16 05:42:52 2011 Copyright (c) 1982, 2005, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options SQL> alter database open; alter database open * ERROR at line 1: ORA-01589: must use RESETLOGS or NORESETLOGS option for database open SQL> alter database open resetlogs; Database altered. SQL>
Note This error message 1589 is:
$ oerr ora 1589 01589, 00000, "must use RESETLOGS or NORESETLOGS option for database open" // *Cause: Either incomplete or backup control file recovery has been // performed. After these types of recovery you must specify either // the RESETLOGS option or the NORESETLOGS option to open your // database. // *Action: Specify the appropriate option. $
Hemant K Collette
Maybe you are looking for
-
No videos don't play at all, or youtube, vimeo or other. My problem is summarized in this thread closed right at the bottom: https://support.mozilla.org/en-US/questions/777598. Same happens to me, black screen or loading very slow - unusable. After a
-
HP psc 1410 all-in-one: print Tablet
This printer supports printing of the new Tablet?
-
I couldn't find WLAN on Satellite 2430 402
Hello world I have Satellite 2430 402, what it says in the manual that this machine has card WLAN but my computer does not detect everything. I activated the switch is good, but is always the same. Could you please any body help me about this?
-
Lenova Ideapad U410 battery not charging!
My ideapad u410 isn't even a month old I noticed this week that my bettery does not load. When I move my mouse over the battery, it says (plugged in, does not support) and its deadlock at 60%. the diet plan I selected is balanced is there a quick fix
-
I am trying to open Web sites that I opened in the past (circus, Circus Reno) and now I am unable to open them. What could be the problem?