RMAN backup restore a band
Hello gurusWe have lvl0 RMAN backup restored to a band, but a few reasons that we couldn't apply recovery on it. Verification of the information contained in the controlfile, he identified the file system only and no other files. So we recreated the controlfile and decided to recover using backup controlfile (up to cancel or to change or until). However, to my surprise, when I listed the columns checkpointchange # and checkpoint_time v$ datafile_header, I found the difference in time stamps ranging from 24 hours - including menat we had to apply 24 hrs of archiving to bring dbfs all in a consistent state (before it has allowed us to open the db) - well, it worked this way.
My question is that if I trigger a lvl0 RMAN backup to say 16:00 July 27 and ends at 16:00 on 28 July (as I am directly pushing around 1 TB of data on tapes) - what is the timestamp of the coherence of this backup. In other words, there is this backup to restore from 16:00 July 27? Or it is only available for a restore from 16:00 28 July and later...?
Is it not that RMAN works at the block level and when I start a backup should give me all the dbf than timestamp... ?
Enjoy your entries and comments.
When you take an online backup with RMAN, the backup of data files is always inconsistent because they have logs archived redo generated during the backup to match: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/intro005.htm#sthref70.
A full online backup can only be used to restore the database to a point in time begins after the end of backup: If a backup starts at 16:00 on 27 July and ends at 16:00 on 28 July, you can use it to restore the database to a point in time after 28 - DEC 16:00.
Tags: Database
Similar Questions
-
Only RMAN backup, restore the temporary files?
DB version: 11.2
Operating system platform: Solaris 10
Can RMAN backup and restore temp files?
I'm to recreate a database in a new server, when restoring, it's recommended to restore a temporary RMAN backup file? (if Rman can indeed save and restore temporary files). Or is it better to manually create temporary files in the new server?N ° RMAN does not backup TEMPFILEs. (so it does not restore them).
You can not even explicitly issue a command to BACKUP for TEMPFILEs.The TEMPORARY file is re-created automatically when you OPEN the database - it is created at the location specified in the controlfile.
Hemant K Collette
-
AFTER dbid chanaged rman backup restore
Hi all:
I'm on 10.2.0.3.
I need to do a restore from a tape that contains my RMAN backup (in a different database). The backup is in 2 weeks and I use redundancy 1, so I have to re-catalogue my backup items.
All this is perfect until now, but there's a complication. DBID was changed on this database AFTER the backup was made, so the catalog command is get rejected:
RMAN > Catalogue backuppiece ' / db/backup/HMTRN/25 Jul 09/c-3431719427-20090723-00 ";"
ORA-19870: error reading backup total/db/backup/HMTRN/25 Jul 09/c-3431719427-20090723-00
ORA-19691: / db/backup/HMTRN/25 Jul 09/c-3431719427-20090723-00 is different data base: id = 3431719427, name = HMTRN.
Someone has an idea?
Reset original database in a privious incarnation would work?
Dear I don't see any of them:
RMAN > list incarnation of database;
RMAN > list incarnation;
RMAN > exir
Thanks in advance!Before you start the backuppieces of cataloging, you must restore the controlfile that correspond to this backup (with the correct DBID). CATALOGUE update the controlfile as well.
Then
STARTUP NOMOUNT
RESTORE CONTROLFILE FROM '... location ';
ALTER DATABASE MOUNT
CATALOGUE... -
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
-
RAC's RMAN backup restore single-instance ASM
Hello
We use oracle 11 g 2 on AIX 6.1,
We need restore the backup RMAN of CARS to the single ASM instance.
IM new CARS & ASM, what will change
What are the steps involved in it.
Thank youHello
See this doc MOS * backups RMAN disk HowTo restore database RAC to single Instance on another node [415579.1 ID] *.
On the Single-Instance ASM, you must specify the name of diskgroup for «control_files, db_create_file_dest» settings
Handle: user10745179
E-mail: [email protected]
Status level: Rookie (5)
Join date: February 24, 2009
Messages total: 168
Total Questions: 74 (52 pending)
Name dhaine
Location MumbaiIf you feel that your questions have been answered, then please consider the son of fence by providing appropriate points. Please clean the forum!
Kind regards
Shivananda -
Compatibility of RMAN backup 32/64 Bit
Hi Experts, database
I have a Windows 2008 Maschine installed with 64-bit RDBMS 11.1 and have successfully taken some RMAN backups.
Because I have to build a database clone on a Windows 2003 machine with a 32-bit RDBMS (11.2) installed, I would like to know if I could use the backups made in a 64-bit environment.
Thank you in advance,
HeikoNormally, you can use 64-bit RMAN to restore by 32-bit RMAN backups.
You can also restore backups RMAN 64 bit with 32 bit RMAN as long as the db_block_size database is 16 K or less. If only some spaces have been created with a 32K block size, backups of data files of these storage spaces would fail to restore.
I have seen this problem with 10.2 64 bit of RMAN backups, restored 32-bit on 10.2.Note: Of course, you must run utlirp.sql on your database of cloned before you start using it.
Hemant K Collette
-
Hello
I tried to include works of RMAN Oracle 12 c
If I use the following command, I should have the backuppiece and the archivelog saved in a folder:
RMAN > BACKUP database DATA PLUS ARCHIVELOG;
If I ran this command in 4 different days, which I ended up having 4 folders with different inside files
I guess that, in these files, I have the data files and the archivelogs
Now I move these folders to tape, re-cutting the backups and delete expired
Say that in a month, I need one of these backups if I put a band records and I added start with 'c:\path_of _restored_folder _L', so I added all files in the folder that I restored from tape
Now, if I try to restore the basis of all is well but when I run the recover, it is missing some archiving logs it says
If I put all the files for 4 days then he finds the archivelog she needs and pick up without problem
on this basis I understand that in the folder containing a backuppiece of a specific day there is the newspaper of archive that I needed to recover from the DB, is that true? How can I know if the backups folder I need to replace in order to have all the required log archiving?
At the moment my DB retrieves only if I handed out the Ribbon last backup folder, if I handed out the previous, it restores, but is not recover
Also I have this configuration of the oracle recovery 3 days window maintains backups in order to be able to restore and recover the last 3 days and he simply deletes all obsolete if the FRA is full
I tried earlier to set up the window of 3 days as a test recovery
I ran a few backups and after that I ran the 5th FRA leak out of space and the backup fails
I expect rman to remove the old backup and make way for a new that I have 5 backuppiece and the FRA is full, why he not do?
Thank you
The default behavior of RECOVER is to make a full recovery - right until the transactions today. So it must all archivelogs.
If you want to restore and recover to a point in time, use the SET clause to THAT specify a sequence of the newspaper or time or SNA. Oracle will then not get beyond that point in time - that is to say he will not seek further archiving logs.
(Ideally, when you restore an old backup, I also begins to restore the old controlfile, then using this controlfile).
If you use the FRA in this way
a. set db_recovery_file_dest_size and db_recovery_file_dest
b. * not * used a FORMAT clause in the BACKUP command
Oracle will recognize all backups in the FRA (you can check by querying V$ FLASH_RECOVERY_AREA_USAGE before and after the backup).
In this case, Oracle can and will automatically purge outdated backups - that is to say any backup older than the retention period, provided that there is at least a L0 or backup complete closest to the retention period. You should see messages to this effect in the alert of the instance database log file.
Hemant K Collette
-
Here's my question after tons of research and test without have the right solutions.
Target:
(1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".
(2) I created physical standby database "stbydb" on the server "node2".
(3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.
(4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)
(5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)
(6) I do RMAN backup (database and archivelog) on the site of relief only.
(7) I want to use this backup for full restore of the database on the primary database.
He is a DR test to simulate the scenario that has lost every primary & Eve total servers.
Here is how to save, on the database pending:
(1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files
(2) RMAN > backup database;
(3) RMAN > backup archivelog all;
I got elements of backup and copied to primary db Server something like:
/Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)
/Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)
/Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)
So here's how to restore, on the main site:
I clean all the files (data files, controlfiles oder all gone).
(1) restore spfile from pfile
RMAN > startup nomount
RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
(2) modify pfile to convert to db primary content. pFile shows below
*.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '
* .audit_trail = "db".
* full = '12.1.0.2.0'
*.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'
* .db_block_size = 8192
* .db_domain = "
*.db_file_name_convert='/testdb/','/testdb /'
* .db_name = "testdb".
* .db_recovery_file_dest ='/ orafra'
* .db_recovery_file_dest_size = 10737418240
* .db_unique_name = "testdb".
*.diagnostic_dest='/opt/Oracle/DB '
* .fal_server = "stbydb".
* .log_archive_config = 'dg_config = (testdb, stbydb)'
* .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"
* .log_archive_dest_state_2 = 'ENABLE '.
*.log_file_name_convert='/testdb/','/testdb /'
* .memory_target = 1800 m
* .open_cursors = 300
* runoff = 300
* .remote_login_passwordfile = "EXCLUSIVE."
* .standby_file_management = "AUTO".
* .undo_tablespace = "UNDOTBS1.
(3) restart db with updated file pfile
SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'
SQLPLUS > the judgment
SQLPLUS > startup nomount
(4) restore controlfile
RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
RMAN > change the editing of the database
(5) all elements of backup catalog
RMAN > catalog starts by ' / home/oracle/backupset / '.
(6) restore and recover the database
RMAN > restore database;
RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)
(7) open resetlogs
RMAN > alter database open resetlogs;
Everything seems perfect, except one of the file log roll forward pending is not generated
SQL > select * from v$ standby_log;
ERROR:
ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
no selected line
I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.
So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.
And I got the same missing log file.
The problem is:
(1) complete alert.log filled with this error, not the concern here
(2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."
(3) I can't delete and re-create this log file
Then I tried several and found:
The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.
For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 19 ACTIVE 133632
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
So until I take the backup, I tried on the primary database:
SQL > alter system set log_archive_dest_state_2 = delay;
This was the Group of standby_log side Eve #4 was released:
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 0 0 UNASSIGNED
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
Then, the backup has been restored correctly without missing standby logfile.
However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.
Finally, my real questions come:
(1) what I do may not do on parameter change?
(2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?
I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...
And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.
I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.
Your idea is very much appreciated.
Thank you!
Hello
1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.
2nd--> when we opened the ORL database should be deleted and created
3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.
DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;
THREAD # SEQUENCE # GROUP # STATUS
---------- ---------- ---------- ----------
1 233 4 ACTIVE
1 238 5 ACTIVE
DR sys@cdb01 SQL > select * from v$ logfile;
GROUP # STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ------------------------------ --- ----------
3 /u03/cdb01/cdb01/redo03.log no. 0 online
/U03/cdb01/cdb01/redo02.log no. 0 2 online
1 /u03/cdb01/cdb01/redo01.log no. 0 online
4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0
/U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory
DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log
DR sys@cdb01 SQL > alter database force claire logfile 4;
change the database group claire logfile 4
*
ERROR on line 1:
ORA-01156: recovery or current flashback may need access to files
DR sys@cdb01 SQL > alter database recover managed standby database cancel;
Database altered.
DR sys@cdb01 SQL > change the database group claire logfile 4;
Database altered.
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log
DR sys@cdb01 SQL >
If you do, you can recreate the controlfile without waiting for redo log entry...
If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".
Thank you
-
How to use backups RMAN to restore a RAC database to single instance on another host?
How to use backups Rman to restore a RAC database to single instance on another host?
I tried to copy these inline for you:
------------
Backups RMAN disk HowTo restore database RAC to single Instance on another node (Doc ID 415579.1)
Down
-
Restore the RMAN backup on another server
Hello
ENV: Oracle 10 g 2 64 bit, RHEL 5.8 64 bit on ASM, Database size = ~ 1.3 to
Backup RMAN of PROD will FRA and then backed up to tape. I have limited access to the PROD because it is maintained by 3rd party.
My client is planning to move this database on their own datacenter (from the 3rd party data center). For test purposes, I asked DBA of 3rd party to provide us with an export of drawings required data pump. Export takes about 8 hours, and the import takes the same time to the new location. To copy the files exported to new locations takes another few hours (over the network). The total size of the dump file is around 500 GB. Thus, a whole cycle of Export-Import-copy takes about ~ 20 + Hrs.
I want to try another option to reduce the time required for the updating of the database of PROD and which is "use RMAN backup of PROD ' and restore it on the data center server. RMAN full backup takes ~ 4hrs PROD and the restoration should be at the same time (new server has better and faster HW, storage with a SSD). I found this thread very useful on the Oracle Forms on this topic:
Restore backup RMAN on another server
This thread contains very good example for a restoration of database on the file system.
I have a bit of confusion because my database uses ASM. The default location of the backups in PROD is FRA (on ASM == > db_recovery_file_dest = + FRA ). If I understand correctly, the RMAN backup must be in the same place where he was on the PROD Server - i.e. the diskgroup FRA.
If I get a copy of the part 3 RMAN backup, how would I copy on FRA?
OR can / should I just change the init parameter "db_recovery_file_dest" on the new server to point to the file system directory where the backup (say "/ ora_backup") and RMAN will pick up and restore the database?
Please advise!
Best regards
You can restore the backup files to any location, then you must configure the channel using the "CONFIGURE CHANNEL device type disk format 'new location ';
This thread will help
Restore from a different location from the original location of RMAN backup
-
RMAN backup and restore into Production KEEPS RAC and DATA
Hi gurus of the Oracle
We need the expert advice for tune and cross check the RMAN Script for Production environment below below
Please suggest any corrections or comments on below mention scripts which will be executed on RAC and Production DATA GUARD environment
LINUX RHEL 5.5 64-bit
ORACLE GRID Infrastructure R2 Version 11.2.0.3.0 (we use ASM Cluster File system)
ORACLE11g R2 Version 11.2.0.3.0
We planned for basically rman backup drive using control file target instead of recovery catalog database
We will have Data Guard Setup between 2 remote sites of database and two remote sites have running the local 2-node RAC database
=========================RMAN_Full_Backup.sh=========================================================================
#! / bin/bash
. /Home/orarac/.bash_profile
logloc = 'date' + rman_backup_lvl0_orcldb_ %m %y hour %M %S %d ".log
# Start rman backup
Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
run
{
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
include current controlfile
tag 'datafile_full ';
}
run
{
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
overlap archivelog all;
SQL 'alter system archive log current';
backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
tag 'archivelog_full ';
}
cross-checking of backup;
delete noprompt obsolete;
Save the list of database;
EXIT;
EXPRESSIONS OF FOLKLORE
==================================================================================================
=========================================RMAN_Inc_Backup.sh ===========================================
#! / bin/bash
. /Home/orarac/.bash_profile
logloc = 'date' + rman_backup_lvl1_orcldb_ %m %y hour %M %S %d ".log
# Start rman backup
# use only the following line if this script is run via the root CRON
Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
Run {}
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
include current controlfile
tag 'datafile_Incr ';
}
Run {}
allocate channels ch1 type disk maxpiecesize = 1024 M;
allocate channel ch2 type disk maxpiecesize = 1024M;
overlap archivelog all;
SQL 'alter system archive log current';
backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
tag 'archivelog_full ';
}
cross-checking of backup;
delete noprompt obsolete;
backup from the list;
EXIT;
EXPRESSIONS OF FOLKLORE
-bash - $3.2
====================================================================================================
===================================RMAN_DB_Restore.sh====================================================
-bash-3, $ 2 cat /home/orarac/RMAN_Scripts/RMAN_DB_Restore.sh
#! / bin/bash
. /Home/orarac/.bash_profile
logloc = 'date' + rman_restore_orcldb_ %m %y hour %M %S %d ".log
# use only the following line if this script is run via the root CRON
Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
Run {}
BOOTABLE MEDIA FORCE;
RESTORE THE DATABASE;
RECOVER THE DATABASE;
ALTER DATABASE OPEN;
}
EXIT;
EXPRESSIONS OF FOLKLORE
====================================================================================================
Concerning
HitgonThank you mseberg
This command is the full backup or a backup of level 0?
full backup as compressed backupset
data include current controlfile more archivelog deletion entry;We use command below for the full backup of database.
database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
include current controlfile
tag 'datafile_full ';We use the command below to the increment backup
database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
include current controlfile
tag 'datafile_Incr ';What is the different when we use
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;or
full backup as backupset compressed database include controlfile current more archivelog delete all input;
Concerning
Hitgon -
Hello
We communicated in code. For this we will have option rollback is that take a full RMAN backup and restore the backup in the database. This is to check if we can able to recover the database before the output of code.
10.2.0.4 database
AIX OPERATING SYSTEM
There is no change in the locations of the files (control file, file data, all). on the same server and the same database.
Just to recover from a backup.
can you tell me how we can get there.Hello;
RMAN point to the recovery time.
Example of
Connect to RMAN RMAN> startup mount; RMAN> restore database until time "to_date('5-NOV-2012 11:23:00','dd-mon-rrrr hh24:mi:ss')"; RMAN> recover database until time "to_date('5-NOV-2012 11:23:00','dd-mon-rrrr hh24:mi:ss')"; RMAN> alter database open resetlogs; Note: You should perform a full backup.
Best regards
mseberg
-
Restore RMAN backups on another server
Version: 11gRel 2
Platform: AIX
We have been provided to the cold RMAN backup of a DB and was invited to recreate in a new server. After installing the binary files in the new server, that's what I'll do
Step 1. Create a pfile file (I created it manually, because I do not know what backup piece has spfile and we have no control file autobkp.) I know the name of DB)
Step 2. Mount the DB using this file with RMAN pfile
I have a question on step 3 and step 4
Step 3.
The above command for step 3 is a variation of an order that I readRMAN> RESTORE CONTROLFILE from 'rman_backup_piecename' to '/rsadat2/prod/config/my_newcontrolfile_name';
http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14192/recov004.htm#CFABADJC
Will this work?
Step 4.
We want to restore the data files to one different location other than the source. Oracle Doc, I found the command to do so below
All data files go to a location in the target databaseSET NEWNAME FOR DATAFILE '/olddisk/users01.dbf' TO '/new_path/file.dbf';
But it has more than 400 files in the source of the DB, which were located on 4 different file systems. So, in a TEXT Editor, I can't do not a SEARCH and REPLACE for all 400 lines in one./rsadat1/prod/oradata/dbname/
Is there a single command by which I could know the new location RMAN to restore?If you want to restore traditional as you explained, then Yes, step 3 is correct and should work.
With respect to see what backup piece contains your control file, then it is actually easy to identify, because the control file and the settings file usually contained in a separate backup element and this backup piece is the smallest in size (around several MB). So just browse by size, you could easily point the backupset containing controlfile. Also, you can use the time stamp of the backup as the controlfile items and spfile are saved at the end. -
Restore from a different location from the original location of RMAN backup
All,
Sorry to bother you on this simple question, but it's something I've never done before:
Background
=======
My sys admin is currently copying a full backup of the default RMAN backup location to another location on the drive (say/u01/oracle/backup).
The backup was performed using RMAN and in my view, THAT RMAN knows that his initial backup location. See RMAN permanent setting below:
SET UP DEFAULT DISK DEVICE TYPE;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / banksys_arch0/backup/ora_cf%F';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F ';
SET UP THE DEVICE TYPE DISK BACKUP FOR PARALLELISM BACKUPSET TABLET 1 TYPE;
SET UP THE DEVICE TYPE 'SBT_TAPE' PARALLELISM 1 BACKUP BACKUPSET TYPE;
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1;
CONFIGURE BACKUP COPIES OF DATA FILE FOR THE 'SBT_TAPE' UNIT 1;
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1;
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE 'SBT_TAPE' 1;
CONFIGURE CHANNEL DEVICE TYPE DISK RATE 10 M FORMAT ' / arch/oradata/BANKSYS/backup/%Y-%M-%D-ora_df_s%s_s%p';
Question
======
I need to restore and recover the database from this new backup location. This is as simple as the following:
1 change the default RMAN location to the new location:
DISK CONFIGURATION CHANNEL DEVICE TYPE FORMAT "u01/oracle/backup/ora_df%t_s%s_s%p". (note that I've changed it to the new location)
2 restore and recover (I have a good knowledge/experience in the part).
Thanks in advance.just by changing the default backup location, custom RMAN find backups on its own, you should always run an overlap
However I would not change the default location temporarily
RMAN> CATALOG START WITH '/my/backup/location'
will be of RMAN recognize your backups
-
Restore from different database Rman backup RMAN
Hello world
I'm practicing Rman, so I request that the way to restore the rman backup in a different database.
For example:
1. I have backup Rman of DB1 to level 0 and level 1 cumulative data base more archievelog
2. I need to import or restore the backup Rman of DB1 to a different database DB2.
What is the procedure to make the queries above. Please anyone one help out me.
I use oracle 10g r2 running in windows server 2003.
Thanks in advance.flanged wrote:
Hello worldI'm practicing Rman, so I request that the way to restore the rman backup in a different database.
For example:
1. I have backup Rman of DB1 to level 0 and level 1 cumulative data base more archievelog
2. I need to import or restore the backup Rman of DB1 to a different database DB2.
What is the procedure to make the queries above. Please anyone one help out me.
I use oracle 10g r2 running in windows server 2003.
Thanks in advance.
If you want to restore the database from one node to the node of dfiferent, you can follow below url
http://mohamedazar.WordPress.com/2011/03/13/disaster-recoveryrestore-database-from-one-server-to-another-server-when-different-location/
but you couldnot able to restore the database backup entire rman in another database instance struture.
Maybe you are looking for
-
I can go to this address with an address displayed in the address bar, the only way is by clicking on the green arrow. It is a major nuisance. I used to be able to just press ENTER to get there.I start to type an address, the address bar shows the su
-
I have a HP Pavilion Slimline s3400f running Windows 7 32 bit. I have a HP x 2301 monitor. I need a new graphics card to take advantage of the speed of 3 ms of the monitor? I can renovate such a card?
-
I make a stop, shutdown computer properly, but after a few hours or minutes (no idea, that occur during the night), the computer starts again and only! This happens with the power cable, as well as on the battery. Any idea please?
-
Hi, I saved my photos on my passport, since I upgraded my phone and now I can't open the photos as it says that the version of the library is too old. I've uploaded my photos from my old laptop to my new office using my passport and still can't open.
-
Reset security issues does not
I forgot the answers that I play to my security questions. Now, I have a new Ipad 2 Air and asks me to check my ID using these questions. I tried to reset the questions, but I never have the instructions email Cancel. I am currently outside the US (I