RMAN BACKUP/RECOVERY OF DATA
Hi friendz,.I have a legacy of or copied from earlier sources, RMAN backup scripts, which is the ff:
(on the PROD server)
rman
run {
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/rman/%F';
crosscheck archivelog all;
backup format '/u03/rman/%d_LVL0_%T_%u_s%s_p%p' database plus archivelog;
delete obsolete;
delete expired archivelog all;
}
Then, I got the following output in/u03/rman:[root@oracleprod rman]# ls -l
total 75200672
-rw-rw---- 1 oraprod oraprod 16089088 Feb 18 19:40 c-4174489363-20110218-01
-rw-rw---- 1 oraprod oraprod 76882624512 Feb 18 19:39 OAPROD_LVL0_20110218_0gm50de6_s16_p1
-rw-rw---- 1 oraprod oraprod 31554048 Feb 18 19:40 OAPROD_LVL0_20110218_0hm50fks_s17_p1
I copied the files above to/u03/rman to the TEST server. I have also the same Oracle Home.How can I recover these files on our TEST Server?
I tried:
rman
run {
startup mount;
restore database;
recover database;
alter database open;
}
but I got error:[oraprod@oel5 ~]$ rman target /
Recovery Manager: Release 9.2.0.6.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database (not started)
RMAN> startup mount;
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 02/21/2011 22:31:09
ORA-00205: error in identifying controlfile, check alert log for more info
RMAN>
Help, please...Thank you
You must restore the controlfile first.
STARTUP NOMOUNT
RESTORE CONTROLFILE FROM '/u03/rman/c-4174489363-20110218-01' ;
sql 'alter database mount';
RESTORE DATABASE;
RECOVER DATABASE;
Hemant K Collette
Tags: Database
Similar Questions
-
RMAN backup recovery point in time
Hi all
Here's my rman backup script configuration and rman.
Because of size constraints I save my logs to archive by rman and delete.
I wanted to know if it was possible to go at a certain time using these archiving logs.
ex: -.
Racing script at 10:00 in the evening daily say it ran on March 1 and March 2, to 22:00, if I want to recover until 14:00 on March 2, will be March 2 backup enough or I'll need March 1 backup and archive logs until 14:00 for which I need to physcially archive backup logs daily , with rman.
RUN { ALLOCATE CHANNEL ch1 DEVICE TYPE DISK; ALLOCATE CHANNEL ch2 DEVICE TYPE DISK; ALLOCATE CHANNEL ch3 DEVICE TYPE DISK; BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\TEST\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T'; DELETE NOPROMPT OBSOLETE; SQL "ALTER SYSTEM ARCHIVE LOG CURRENT"; BACKUP ARCHIVELOG ALL DELETE INPUT format 'G:\Oracle\flash_recovery_area\TEST\BACKUPSET\tmp\rman_backup\arc_%d_%s_%p_%T'; }
RMAN configuration parameters for database with db_unique_name TEST are: CONFIGURE RETENTION POLICY TO REDUNDANCY 1; CONFIGURE BACKUP OPTIMIZATION OFF; # default CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'G:\Oracle\flash _recovery_area\TEST\BACKUPSET\tmp\RMAN_BACKUP\CTL_%F'; 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 COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOA D TRUE ; # default CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\ORACLE\PRODUCT\11.2.0\DBHOME_1\DATABA SE\SNCFTEST.ORA'; # default
Hello;
RMAN> startup mount RMAN> restore database until time "to_date('02-MAR-2013 09:00:00', dd-mon-rrrr hh24:mi:ss')"; RMAN> recover database; RMAN> alter database open;
Best regards
mseberg
-
Trying to retrieve the RMAN backup in another data base (another physical machine
Hello!
I am trying to restore to a different machine with a different database. I created the database with the same SID, but the computer name is different from the other. All I wish to recover is the user data file and the main data file that clients use. I could not find the right way to do outside forums. Someone would be able to offer assistance?
I did an INCREMENTAL LEVEL 0 CUMULATIVE database BACKUP; on node 1 and transferred the wallet and backups from node 1 to node 2.
Any help would be appreciated! :)
Thank you!but the dbid can be different. This is the error.
You may need to restore the controfile of these backups first before you can restore files.
in this case to do that:
Start the db2 as nomount with your pfile file instance
then
RMAN target /;RMAN > RESTORE CONTROLFILE 'filename '; -"the file name is backups that you have copied the disk."
can do the
backup from the list; If the controlfile is restored then the info should be there already if not then you can make the order of catalog again recovery area.
-
backup recovery of data to LUN.
I have two hosts vsphere 4 connect to a SAN Fibre Channel optical switch.San, I created 3 LUN.LUN 2 are for computers, virtual and the third ONE of backup and recovery.How can I use the third LUN for data recovery? I can't add that LUN to the backup.Thank you toocreate a VMFS and add a VHD to the device? (http://www.vmware.com/pdf/vdr_10_admin.pdf)
Duncan
VMware communities user moderator | VCP | VCDX
-
-
Hi all
11.2.0.3.11
AIX6
I have a script that runs every hour to recover the application archivelogs manual script database. What happened if accidentally, I run the script twice?
RMAN control not to execute the order to duplicate 2nd, and will it hold or mark error him?
For example:
I have a script recover.exe, scheduled cron to run every hour and apply the manual standby db logs. (non-dataguard).
But as the archive logs are too many, it was not completed in time, and the next restarted cron process, duplication of the race.
Now, there are two batch process, applying archive logs. What will happen to our database?
Thank you
MK
It depends on how you scripted operations. What happens if you have hardcoded the archivelogs to apply list and the execution-error? The next execution generates the correct list.
If you don't have not hardcoded the list, but allow Oracle to identify the archivelogs, it should be ok.
Hemant K Collette
-
Is it possible to restore a RMAN full backup on a different/db machine?
I have a DB of Prod (800 f) running 10.2.0.4 and launch the RMAN backup strategy. I am to perform full backups on tape and need to prove that the backups are viable for the restoration. The problem I have is that I can't do any test on the Prod db. My original plan was to create a tablespace and a data file - get the rman backup, delete the data file and restore from the backup. I'm not allowed to do this simple test, while he was susggested we use RMAN to recover from Prod backup set to a different database on another server. Is it still possible? I proved functionaly RMAN can restore in a test environment, but management wants to prove we can restore/recovery of data from production wo affecting primary production of db.
Thank you!!!Hello.
If you have access to metalink take a look at the Doc.
388431.1 (creation database duplicated on a new host). RMAN
* T -
Hi all
11.2.0.1
AIX 6.1
I'm reviewing the scripts in RMAN backup in our data base of prod that was written by the previous dba.
The script said:
run
{
overlap archivelog all;
cross-checking of backup;
delete expired backup noprompt.
delete noprompt expired archivelog all;
delete noprompt obsolete;
allocate channels ch1 disc type;
allocate channel ch2 type disk;
allocate channel ch3 type disk;
allocate channel ch4 type disk;
backup in the database format compressed more archivelog backupset ' / rmanbackup/prod/backup/db/db_%U';
backup current controlfile to Eve format ' / rmanbackup/prod/backup/db/ctrl_stby_%U';
current backup controlfile as ' / rmanbackup/prod/backup/db/ctrl_%U';
}
Then I check the contents of/rmanbackup/prod/backup/db
Oracle [/ rmanbackup/backup/prod/db] ls-l
Total 0
-rw - r - 1 oracle backup 8617984 Sep 18 2012 ctrl_0knlh44v_1_1
-rw - 1 oracle dba 11698176 Aug 18 01:24 ctrl_2sok4bqk_1_1
-rw - 1 oracle dba 11698176 Aug 19 01:21 ctrl_3aok7001_1_1
-rw - 1 oracle dba 11698176 Aug 18 01:24 ctrl_stby_2rok4bqi_1_1
-rw - 1 oracle dba 11698176 Aug 19 01:21 ctrl_stby_39ok6vvu_1_1
-rw - 1 oracle dba 8598016 17 Sep 01:24 db_2cok1ne6_1_1
-rw - 1 oracle dba 3942116864 Aug 18 01:17 db_2hok4acs_1_1
-rw - 1 oracle dba 3570494976 Aug 18 01:18 db_2iok4acs_1_1
-rw - 1 oracle dba 130300928 Aug 18 01:16 db_2jok4bap_1_1
-rw - 1 oracle dba 8078848 Aug 18 01:24 db_2qok4bqh_1_1
-rw - 1 oracle dba 3205571072 Aug 19 01:14 db_2tok6uot_1_1
-rw - 1 oracle dba 2845661696 Aug 19 01:14 db_2uok6uot_1_1
-rw - 1 oracle dba 3153846272 Aug 19 01:14 db_2vok6uot_1_1
-rw - 1 oracle dba 2851247104 Aug 19 01:14 db_30ok6uot_1_1
-rw - 1 oracle dba 104608256 Aug 19 01:14 db_31ok6vjb_1_1
-rw - 1 oracle dba 7869440 Aug 19 01:21 db_38ok6vvt_1_1
The above backup are complete?
I also check the flash_recovery_area:
Oracle [/ rmanonline/flash_recovery_area/PROD/backupset/2013_09_19] ls-l
Total 0
-rw - 1 oracle dba 1867776 Aug 19 01:19 o1_mf_ncnnf_TAG20130919T011455_93mr5j77_.bkp
-rw - 1 oracle dba 1314160640 Aug 19 01:19 o1_mf_nnndf_TAG20130919T011455_93mqwkc1_.bkp
-rw - 1 oracle dba 1329709056 Aug 19 01:20 o1_mf_nnndf_TAG20130919T011455_93mqwkfr_.bkp
-rw - 1 oracle dba 1459748864 Aug 19 01:20 o1_mf_nnndf_TAG20130919T011455_93mqwlhc_.bkp
-rw - 1 oracle dba 1779367936 Aug 19 01:20 o1_mf_nnndf_TAG20130919T011455_93mqwlvo_.bkp
-rw - 1 oracle dba 98304 Sep 19 01:19 o1_mf_nnsnf_TAG20130919T011455_93mr5kgk_.bkp
That is why he is another backup here? Do you have duplicate backups? Please validate.
Thank you very much, zxy
Enterprise Manager doesn't have to be DB Console. It can be Grid Control or control clouds.
The backup task was scheduled via DBMS_SCHEDULER.
It could have been programmed by a timer external non-cron.
Hemant K Collette
-
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 -
Using primary data backup recovery
Hi all
Here we have an environment dataguard with db1 (db_unique_name) as primary and db2 (db_unique_name) Physics of the standby database. We have configured dataguard in environments of 10 g and we don't use a grid control. And now we want to configure rman for incremental backups. After you set up, we took full backup successfully in the newspapers of the previous day and archive. While the test case we dropped a primary data file and tried to get it back. It displays the following error. Also when I tried "overlapping backup" since the primary, is to show that all backups taken to sleep are "expiration". But the same backups show as 'available' RMAN connected standby mode. Can someone help with this problem?
Elementary school:
[oracle@db1 NIOS] $ sqlplus / as sysdba;
SQL * more: release 10.2.0.3.0 - Production on Sat Oct 6 02:58:11 2012
Copyright (c) 1982, 2006, Oracle. All rights reserved.
Connected to:
Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - Production
With partitioning, OLAP and Data Mining options
SQL > alter database datafile offline 4; (after the deletion of system-level data file)
Database altered.
[oracle@db1 NIOS] $ rman target sys/oracle@db1 catalog rman/oracle@appsdb
Recovery Manager: release 10.2.0.3.0 - Production on Sat Oct 6 02:58:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: NIOS (DBID = 1590630518)
connected to the recovery catalog database
RMAN > restore datafile 4;
From catering to 12-SEP-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 107 devtype = DISK
channel ORA_DISK_1: from datafile backupset restoration
channel ORA_DISK_1: specifying datafile (s) to restore from backup set
restoring datafile 00004 in /u01/app/oracle/oradata/NIOS/users01.dbf
channel ORA_DISK_1: backup /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp piece reading
ORA-19870: error reading backup total /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
ORA-19505: impossible to identify the file ' / u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp '.
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
switch to the previous backup
channel ORA_DISK_1: from datafile backupset restoration
channel ORA_DISK_1: specifying datafile (s) to restore from backup set
restoring datafile 00004 in /u01/app/oracle/oradata/NIOS/users01.dbf
channel ORA_DISK_1: backup /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp piece reading
ORA-19870: error reading backup total /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
ORA-19505: impossible to identify the file ' / u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp '.
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
switch to the previous backup
channel ORA_DISK_1: restore datafile 00004
entry of data copy file recid = stamp 13 = filename=/tmp/users01.dbf 793208425
destination for the restoration of the data file 00004: /u01/app/oracle/oradata/NIOS/users01.dbf
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at 06/09/2012 02:59:10
ORA-19571: datafilecopy recid 13 stamp 793208425 not found in the control file
ORA-19600: input file is datafile 13-copy)
ORA-19601: output file is the data-copy 0 file (/ u01/app/oracle/oradata/NIOS/users01.dbf)
RMAN > crosscheck backup;
using channel ORA_DISK_1
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid = piece stamp 18 = 793212040
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid = piece stamp 19 = 793212087
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid = piece stamp 20 = 793212132
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid = piece stamp 21 = 793212180
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid = 22 = 793216080 stamp item
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid = 23 = 793216082 stamp item
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid = piece stamp 24 = 793216129
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid = piece stamp 5 = 793238431
Cut 8 objects
Stand-by:
[oracle@db2 NIOS] $ rman target sys/oracle@db2 catalog rman/oracle@appsdb
Recovery Manager: release 10.2.0.3.0 - Production Wed Sep 5 20:11:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: NIOS (DBID = 1590630518, is not open)
connected to the recovery catalog database
RMAN > crosscheck backup;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 91 devtype = DISK
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid = piece stamp 18 = 793212040
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid = piece stamp 19 = 793212087
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid = piece stamp 20 = 793212132
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid = piece stamp 21 = 793212180
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid = 22 = 793216080 stamp item
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid = 23 = 793216082 stamp item
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid = piece stamp 24 = 793216129
verified backup item: found to be "EXPIRED".
backup handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid = piece stamp 5 = 793238431
Cut 8 objects
Thanks in advance.Hello;
I would consider one of them step by step:
Use of primary database to retrieve backup RMAN backup files
http://oraganism.files.WordPress.com/2009/04/backup-from-physical-standby.PDF
How to use the backup of the previous day to restore primary db
http://alexzeng.WordPress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-DB/
Steps to recover the database to the primary database using a copy of the file to the standby database.
http://dbaregistry.blogspot.com/2010/01/steps-to-recover-primary-databases.html
RMAN in a data protection environment
http://Oracle.Su/docs/11g/backup.112/e10642/rcmarchi.htm#CHDIFGFH
Make a clone of database using a physical standby database Data Guard
http://gavinsoorma.com/2012/04/performing-a-database-clone-using-a-Data-Guard-physical-standby-database/
Best regards
mseberg
-
RMAN recovery is data loss - tips welcome
Hello
I really need help here if someone is a guru RMAN n.
Problem
------------
The system I have recover aid that the rman backup below does not include the table that I created after the backup was completed, the database has been recovered, but somehow the creation and populating a table after the backup is complete have been lost. Can you see what I did wrong here, the text is based on an existing script I need to also change little this is used in Prod dystsems elsewhere
DB is:-11.2.0.1
Please adsvise where I'm wrong...
Target of $ORACLE_HOME/bin/rman / log = $BACKUP_LOG < < EOF
Run {}
delete noprompt obsolete device type disk;
affect the disc channel d1 device format type "$ORACLE_BACKUP_DIR_LOC/%Y_%M_%D/database_%U."
allocate channel device d2 disc format type "$ORACLE_BACKUP_DIR_LOC/%Y_%M_%D/database_%U."
backup as compressed backupset database include current controlfile;
output channel d1;
output channel d2;
SQL 'alter system archive log current';
affect the disc channel a1 device format type "$ORACLE_BACKUP_DIR_LOC/%Y_%M_%D/archivelog_%U."
Backup to compressed backupset archivelog all;
output channel a1;
delete noprompt obsolete device type disk;
}
backup from the list;
output
EXPRESSIONS OF FOLKLORE
What I've done
------------------
Create a table and insert a line first (backup before): -.
create table rman_test (empname varchar2 (20), varchar2 (20)) of the city.
insert into rman_test values ('azar', 'riyadh');
insert into rman_test values ('jabar', 'chennai');
commit;
Select count (*) in the rman_test;
2 rows
Run the script of backup as follows: -.
CD/u01/scripts
SH hot_backup_db.bash emrep/u01/backup/u01/scripts
Parameter 1 - SID ORACLE
Parameter 2 - directory where will backups rman
Parameter 3 - directory where rman records go
Create a table after backup so we can verify that the data is not lost
create table rman_test1 (empname varchar2 (20));
insert into rman_test1 values ('kareem');
insert into rman_test1 values ('syed');
commit;
Select count (*) in the rman_test1;
2 rows
Stop and rename the db files to impersonate a systems crash
Closing of the database '
Rename/u01/oradata/emrep in emrep-ren
Renamed the spfile;
CD $ORACLE_HOME/dbs
MV spfileemrep.ora spfileemrep.ora_ren
Prepare for recovery
Look at the rman backuplog: -.
Search the DBID:-e, g, connected to the target database: EMREP (DBID = 4012088007)
Looking for where are the backups spfile and controlfile;
Item name: / u01/backup/2012_07_25/database_2jnh03ua_1_1
Control file included: cash SNA: 1344967 cash time: July 25, 12 16:16:10
Item name: / u01/backup/2012_07_25/database_2knh03uc_1_1
SPFILE included: Modification Date: July 25, 12 14:27:55
Note the path and the name of the backup items to the location of backup for the last backup.
Recover the database (all nuked)
----------------------------------------------------------
RMAN target /.
the value of dbid 4012088007
startup nomount
Restore spfile to ' / u01/backup/2012_07_25/database_2knh03uc_1_1 ";
Restore controlfile to ' / u01/backup/2012_07_25/database_2jnh03ua_1_1 ";
From restoration to 24/07/2012 10:32:24
using channel ORA_DISK_1
channel ORA_DISK_1: restore the control file
channel ORA_DISK_1: restore complete, duration: 00:00:01
output file name=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/cntrlemrep.dbf
Finished restore at 24/07/2012 10:32:25
immediate stop
startup nomount
Restore controlfile to ' / u01/app/oracle/product/11.2.0/dbhome_/dbs/cntrlemrep.dbf';
change the editing of the database;
Catalogue backuppiece ' / u01/backup/2012_07_25/database_2hnh03u3_1_1 ";
Catalogue backuppiece ' / u01/backup/2012_07_25/database_2inh03u3_1_1 ";
Catalogue backuppiece ' / u01/backup/2012_07_25/database_2jnh03ua_1_1 ";
Catalogue backuppiece ' / u01/backup/2012_07_25/database_2knh03uc_1_1 ";
Catalogue backuppiece ' / u01/backup/2012_07_25/archivelog_2lnh03vg_1_1 ";
restore the database;
recover the database;
This experience: -.
Archives journal thread = 1 sequence = 49
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 25/07/2012 13:42:54
RMAN-06054: unknown request media recovery log archived for thread 1 with sequence 49 and from the 1330997 SNA
ALTER database open resetlogs;
Select count (*) in the rman_test;
Select count (*) in the rman_test1;
QL > select count (*) in the rman_test;
Select count (*) in the rman_test1;
COUNT (*)
----------
2
SQL > select count (*) in rman_test1
*
ERROR on line 1:
ORA-00942: table or view does not exist
How can I recover it?
Welcome to all the advice I can get. Select count (*) rman_test1 should return 2 rows.
Cheers, Rob Ford, DBA Oracle recent to rmanRMAN-06054: unknown request media recovery log archived for thread 1 with sequence 49 and from the 1330997 SNA
This sequence might not have been archived, and it could be your with the State CURRENT redolog file.
During my recovery, give the path of your redolog file RUNNING when he asks sequence 49.
SQL > restore database using backup controlfile until cancel;
Published by: renee_mathieu on July 26, 2012 14:49
-
extract the rman backup data file
Hello
I want to search when logical corruption occurs in my database, so I want to extract my rman backup and test a file with db_verify.
But I don't want to recover the database. How to extract a file without recovery and destroing database work?
thnx
PodkovYou must perform the RESTORE in an auxiliary instance - preferably on another server.
Note: If you do it on the same server, make sure that
a. you do not connect to the same database instance
b. you set NEWNAME so that the data file is extracted to a different location -
RMAN-05556: not all data files have backups can be picked up at SNA
Dear all,
By RMAN cloning in 11.2.0.3 database with ebs 11i.
We get below error.
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 03/07/2015 15:36:20
RMAN-05501: abandonment of duplicate target database
RMAN-05556: not all data files have backups can be recovered on SNA 15901715
991
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06100: no channel to restore a backup or a copy of the data file 94
RMAN-06100: no channel to restore a backup or a copy of the data file 93
RMAN-06100: no channel to restore a backup or a copy of the data file 92
RMAN-06100: no channel to restore a backup or a copy of the data file 91
RMAN-06100: no channel to restore a backup or a copy of the data file 90
RMAN-06100: no channel to restore a backup or a copy of the data file 89
RMAN-06100: no channel to restore a backup or a copy of the data file 88
RMAN-06100: no channel to restore a backup or a copy of the data file 87
RMAN-06100: no channel to restore a backup or a copy of the data file 86
RMAN-06100: no channel to restore a backup or a copy of the data file 85
RMAN-06100: no channel to restore a backup or a copy of the data file 84
RMAN-06100: no channel to restore a backup or a copy of the data file 83
RMAN-06100: no channel to restore a backup or a copy of the data file 82
RMAN-06100: no channel to restore a backup or a copy of the data file 81
RMAN-06100: no channel to restore a backup or a copy of the data file 80
RMAN-06100: no channel to restore a backup or a copy of the data file 79
RMAN-06100: no channel to restore a backup or a copy of the data file 78
RMAN-06100: no channel to restore a backup or a copy of the data file 77
RMAN-06100: no channel to restore a backup or a copy of the data file 76
RMAN-06100: no channel to restore a backup or a copy of the data file 75
RMAN-06100: no channel to restore a backup or a copy of the data file 74
RMAN-06100: no channel to restore a backup or a copy of the data file 73
RMAN-06100: no channel to restore a backup or a copy of the data file 72
RMAN-06100: no channel to restore a backup or a copy of the data file 71
RMAN-06100: no channel to restore a backup or a copy of the data file 70
RMAN-06100: no channel to restore a backup or a copy of the data file 69
RMAN-06100: no channel to restore a backup or a copy of the data file 68
RMAN-06100: no channel to restore a backup or a copy of the data file 67
RMAN-06100: no channel to restore a backup or a copy of the data file 66
RMAN-06100: no channel to restore a backup or a copy of the data file 65
RMAN-06100: no channel to restore a backup or a copy of the data file 64
RMAN-06100: no channel to restore a backup or a copy of the data file 63
RMAN-06100: no channel to restore a backup or a copy of the data file 62
RMAN-06100: no channel to restore a backup or a copy of the data file 61
RMAN-06100: no channel to restore a backup or a copy of the data file 60
RMAN-06100: no channel to restore a backup or a copy of the data file 59
RMAN-06100: no channel to restore a backup or a copy of the data file 58
RMAN-06100: no channel to restore a backup or a copy of the data file 57
RMAN-06100: no channel to restore a backup or a copy of the data file 56
RMAN-06100: no channel to restore a backup or a copy of the data file 55
RMAN-06100: no channel to restore a backup or a copy of the data file 54
RMAN-06100: no channel to restore a backup or a copy of the data file 53
RMAN-06100: no channel to restore a backup or a copy of the data file 52
RMAN-06100: no channel to restore a backup or a copy of the data file 51
RMAN-06100: no channel to restore a backup or a copy of the data file 50
RMAN-06100: no channel to restore a backup or a copy of the data file 49
RMAN-06100: no channel to restore a backup or a copy of the data file 48
RMAN-06100: no channel to restore a backup or a copy of the data file 47
RMAN-06100: no channel to restore a backup or a copy of the data file 46
RMAN-06100: no channel to restore a backup or a copy of the data file 45
RMAN-06100: no channel to restore a backup or a copy of the data file 44
RMAN-06100: no channel to restore a backup or a copy of the data file 43
RMAN-06100: no channel to restore a backup or a copy of the data file 42
RMAN-06100: no channel to restore a backup or a copy of the data file 41
RMAN-06100: no channel to restore a backup or a copy of the data file 40
RMAN-06100: no channel to restore a backup or a copy of the data file 39
RMAN-06100: no channel to restore a backup or a copy of the data file 38
RMAN-06100: no channel to restore a backup or a copy of the data file 37
RMAN-06100: no channel to restore a backup or a copy of the data file 36
RMAN-06100: no channel to restore a backup or a copy of the data file 35
RMAN-06100: no channel to restore a backup or a copy of the data file 34
RMAN-06100: no channel to restore a backup or a copy of the data file 33
RMAN-06100: no channel to restore a backup or a copy of the data file 32
RMAN-06100: no channel to restore a backup or a copy of the data file 31
RMAN-06100: no channel to restore a backup or a copy of the data file 30
RMAN-06100: no channel to restore a backup or a copy of the data file 29
RMAN-06100: no channel to restore a backup or a copy of the data file 28
RMAN-06100: no channel to restore a backup or a copy of the data file 27
RMAN-06100: no channel to restore a backup or a copy of the data file 26
RMAN-06100: no channel to restore a backup or a copy of the data file 25
RMAN-06100: no channel to restore a backup or a copy of the data file 24
RMAN-06100: no channel to restore a backup or a copy of the data file 23
RMAN-06100: no channel to restore a backup or a copy of the data file 22
RMAN-06100: no channel to restore a backup or a copy of the data file 21
RMAN-06100: no channel to restore a backup or a copy of the data file 20
RMAN-06100: no channel to restore a backup or a copy of the data file 19
RMAN-06100: no channel to restore a backup or a copy of the data file 18
RMAN-06100: no channel to restore a backup or a copy of the data file 17
RMAN-06100: no channel to restore a backup or a copy of the data file 16
RMAN-06100: no channel to restore a backup or a copy of the data file 15
RMAN-06100: no channel to restore a backup or a copy of the data file 14
RMAN-06100: no channel to restore a backup or a copy of the data file 13
RMAN-06100: no channel to restore a backup or a copy of the data file 12
RMAN-06100: no channel to restore a backup or a copy of the data file 11
RMAN-06100: no channel to restore a backup or a copy of the data file 10
RMAN-06100: no channel to restore a backup or a copy of the data file 9
RMAN-06100: no channel to restore a backup or a copy of the data file 8
RMAN-06100: no channel to restore a backup or a copy of the data file 7
RMAN-06100: no channel to restore a backup or a copy of the data file 6
RMAN-06100: no channel to restore a backup or a copy of the data file 5
RMAN-06100: no channel to restore a backup or a copy of the data file 4
RMAN-06100: no channel to restore a backup or a copy of the data file 3
RMAN-06100: no channel to restore a backup or a copy of the data file 2
RMAN-06100: no channel to restore a backup or a copy of the data file 1
Concerning
Villi Kumar
Dear all,
Solution:
Location of the data file is not correct that we are mentioned in the file (init.ora) settings.
Change the location of data file settings.
Test the issue again.
Concerning
Villi Kumar
-
Creating a new controlfile with RMAN backup data files
Hello
I use oracle 10g (10.2.0.1) in RHEL5 server. I am trying to restore a RMAN backup from one server to another server again with the new name of the comic. I took on the RMAN backup spfile and created her pfile and edited the file pfile with new dbname and directory structure and launched the db in nomount with new pfile. Today I restored the backup controfile RMAN has tried to put the database in State of Mount. But it failed due to the error below
RMAN-03002: failure of alter db command at 21:44:56 05/11/2012
ORA-01103: name "ORADB" in the control of the database file is not 'DEVDB '.
So I stop the database and started the db in nomount with new pfile and tried to create the controlfile with new db name, but he didn't like it is looking for the data files.
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in file identification
' / u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
All my data files in my RMAN backup. How to get the data files of RMAN backup in the above scenario?
Kind regards
007restaurer restore as ORADB, then rename the database with DBNEWID
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dbnewid.htmor use duplicate instead of restore
-
Notification by e-mail after backup with Vmware Data Recovery?
Is there an option (I can't find it) to send me an email after a backup of vmware data recovery?
Kind regards
Andreas
Hello
Check out http://communities.vmware.com/thread/252977?tstart=10
-
RMAN backup - incomplete recovery
Hi guys,.
just a test scenario.
For example, I have a daily rman full backup at 20:00 yesterday. the database is in archiveloj... However we do not backup the archivelogs.
This morning at 10:00, all databases, controlfile, redologs, archivelogs files are deleted from the system accidentally.
the database can still be restore?
1. create the controlfile to trace
2. restoring the database
3. restore database until cancel (it will be prompt will be the next newspaper which is not available)
4. alter database open resetlogs
open resetlogs will work without even a log available to apply to the rman backup archiving?
Thank youThe question is: "what is the definition of a FULL BACKUP?"
What you have is a database backup that did not include the ArchiveLogs.
You cannot recover the database with only a database backup unless the database backup was in State of MOUNT-no is not OPEN.A "backup of the closed base" is a FULL database backup.
A "hot Database backup' is not COMPLETE unless ArchiveLogs are included.
The command 'BACKUP of DATA PLUS ARCHIVELOG' RMAN; could meet the requirement of a full backup (although it does not include the ORACLE_HOME, EM/GridConsole tnsnames.ora, listener.ora files, etc).Hemant K Collette
Maybe you are looking for
-
Broadcast Pro L20 PSL2YE - need new hard drive
I am in need of a new hard drive for my Pro L20 PSL2YE broadcast.I just had the laptop off a friend, less HD. He thinks it was a 40 GB. I bought a drive off Ebay which arrived this morning, but it was the connection error.I need an ATA. I bought a ne
-
Question about upgrading memory
Hello I have a HP G62 Notebook pc with 3 GB of ram. I want to upgrade my memory to the maximum which I believe is 8 GB. Is this possible? Is there a question I might encounter? Also, what would be the part number to buy it. Thank you
-
Do I need to install the Office updates if Office is not installed?
original title: Microsoft Office updates My computer came with a free trial of Microsoft Office, but I never used, nor do I purchase and install the program. When it comes to install updates, it shows the important updates for office. What I have t
-
Teredo tunneling pseudo interface is no longer present in the Device Manager
I am running Windows 7 64 bit and I noticed an exclimation point via the Teredo Interface of Pseudo Tunnling. I uninstalled to reinstall the drivers and it never reappeared in my tree of devices. How can I recover this unit and install the correct
-
I can't get photos off my camera on my laptop computer laptop doesn t seem to recognize the camera had no problem before recently connected a printer Epsom Don t know if this is the problem that I n t camera used for awhile