Expired Copy in RMAN
Hi,
DB is 9iR2
We needed to move some datafiles, and the RMAN method we use in 10g,
didn't work in 9i.
The script was:
copy datafile 285 to '/u08/oracle/oradata/blablabla.dbf';
switch datafile 285 to copy;
However, switch command RMAN 9i didn't like.. after fiddling with a
few other commands, ended up with just running renames in nomout.
After doing that all my files in /u08 are listed as expired copies in
RMAN. How do I let RMAN to use new datafiles?
Regards
Sandeep
Hi sandeep,
pls run crosscheck on rman and we can ise operating system copies
to rman catalog datafilecopy command
if you use catalog then
RMAN> catalog datafilecopy 'C:\Oracle\Oradata\User01.dbf';
hope this helps,
Zekeriya
Similar Messages
-
How to copy/move RMAN catalog
how do I copy/move RMAN catalog from one DB to another ? Is it just copying the tablespace I created for the RMAN catalog ?
Exort the catalog (schema) and import in new database.
-
Can't update trial Expired copy of Lr
I let my trial copies of Lr and CC expire and then signed up for the Creative Cloud. Creative Cloud recognizes that I am a member but it won't update the "trial expired" copy. It also says that LR "uninstall unavailable". I tried deleting the app and re-installing but it still comes up "trial expired". How can I clear this so I can use these apps. The same thing happens with Photoshop cc. Frustrating start to this new membership.....
Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
-Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
or
A chat session where an agent may remotely look inside your computer may help
Creative Cloud chat support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html -
Oracle version 10.2.0.5
I aim to take the backup as copy of the production database using RMAN
the database size is around 500GB
I wold like to know if I take the backup as copy then what is the expected size of the image copy
getting some suggenstion from Oracle expertsImage copies are exact block level copies of the datafiles and have the same size.
-
Hi,
in 10g R2
what is the difference between :
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;And :
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET;Thanks.Dear friend, BACKUPSET is a repository where all the backedup datafiles,controlfiles,archivelog files and spfile are stored as one SET. Where are if you mention you use COPY then each file that has been copies will be kept in each separate file.
You can get better idea if you look below...
RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;
old RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;
new RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1;
new RMAN configuration parameters are successfully stored
released channel: ORA_DISK_1
RMAN> backup database;
Starting backup at 07-FEB-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile fno=00001 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSTEM01.DBF
output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-SYSTEM_FNO-1_1BL5E57D tag=TAG20100207T1
*52741 recid=5 stamp=710350116*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:02:02
channel ORA_DISK_1: starting datafile copy
input datafile fno=00002 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSAUX01.DBF
output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-SYSAUX_FNO-2_1CL5E5B7 tag=TAG20100207T1
*52741 recid=6 stamp=710350231*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:54
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\USERS01.DBF
output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-USERS_FNO-4_1DL5E5CT tag=TAG20100207T15
*2741 recid=7 stamp=710350255*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:23
channel ORA_DISK_1: starting datafile copy
input datafile fno=00003 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\UNDOTBS01.DBF
output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-UNDOTBS1_FNO-3_1EL5E5DK tag=TAG20100207
T152741 recid=8 stamp=710350276channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:23
channel ORA_DISK_1: starting datafile copy
input datafile fno=00005 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\DATA_TS.DBF
output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-DATA_TS_FNO-5_1FL5E5EC tag=TAG20100207T
*152741 recid=9 stamp=710350293*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:11
channel ORA_DISK_1: starting datafile copy
input datafile fno=00006 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\ONE.DBF
output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-ONE_FNO-6_1GL5E5EN tag=TAG20100207T1527
*41 recid=10 stamp=710350304*
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:09
Finished backup at 07-FEB-10
Starting Control File and SPFILE Autobackup at 07-FEB-10
piece handle=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\C-4206195613-20100207-03 comment=NONE
Finished Control File and SPFILE Autobackup at 07-FEB-10
If you go for BACKUPSET,
RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET;
old RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1;
new RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;
new RMAN configuration parameters are successfully stored
released channel: ORA_DISK_1
RMAN> backup database format 'c:\backupset';
Starting backup at 07-FEB-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSTEM01.DBF
input datafile fno=00002 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSAUX01.DBF
input datafile fno=00004 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\USERS01.DBF
input datafile fno=00003 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\UNDOTBS01.DBF
input datafile fno=00005 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\DATA_TS.DBF
input datafile fno=00006 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\ONE.DBF
channel ORA_DISK_1: starting piece 1 at 07-FEB-10
channel ORA_DISK_1: finished piece 1 at 07-FEB-10
piece handle=C:\BACKUPSET tag=TAG20100207T151443 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:24
Finished backup at 07-FEB-10
Starting Control File and SPFILE Autobackup at 07-FEB-10
piece handle=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\C-4206195613-20100207-02 comment=NONE
Finished Control File and SPFILE Autobackup at 07-FEB-10
I hope I cleared your doubt..
Shafiulla Syed -
Does anybody could explain difference between DELETE OBSOLETE command and DELETE EXPIRED
The way I uderstand DELETE OBSOLETE would delete physical backupsets and catalog records for them if it beyond retention policy. But what is DELETE EXPIRED does? Does it delete physical backupset files or only catalog records?http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1007.htm#sthref279
To quote the propaganda:
The term obsolete does not mean the same as expired. A backup is obsolete when REPORT OBSOLETE or DELETE OBSOLETE determines, based on the user-defined retention policy, that it is not needed for recovery. A backup is considered expired only when RMAN performs a crosscheck and cannot find the file. In short, obsolete means "not needed," whereas expired means "not found." -
11gR2 DB - RMAN retains backupsets outside the specified retention window
11.2.0.1.0 Enterprise Edition Database in Archivelog mode:
Here's the results of SHOW ALL:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 4 DAYS;
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 '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO 'SBT_TAPE';
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_hcoe.f'; # default
I run this RMAN job nightly:
$rman_script="run {allocate channel oem_disk_backup device type disk; recover copy of database with tag 'ORA_OEM_LEVEL_0'; backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;}
backup device type disk tag '%TAG' archivelog all not backed up delete all input;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
delete noprompt expired backup;
delete noprompt expired copy;
Here's what my FRA looks like as of 2/20/2013:
/u05/app/oracle/recovery_area/HCOE/archivelog - 7 subdirectories dated 2013-02-14 through 2013-02-20, all empty
/u05/app/oracle/recovery_area/HCOE/autobackup - 7 subdirectories dated 2013-02-14 through 2013-02-20. The delete noprompt obsolete seems to be deleting these according to the recovery window setting of 4 days. The 2/14 subdirectory is empty, and the 2/15 directory has only 1 file in it. The rest have 2 files.
/u05/app/oracle/recovery_area/HCOE/backupset - 15 directories from 2013-02-06 through 2013-02-20. These are not being deleted, nor are they considered obsolete. The directories only go back until 02/06, because I manually deleted the directories and their contents before that, and did a CROSSCHECK ALL afterwards when the FRA ran out of space and the active redo could not be archived. This is what I'm confused about. Why are they not being deleted, and what do I need to do to get them to become obsolete?
/u05/app/oracle/recovery_area/HCOE/datafile - The location of the dbf image copies which are up to date as of 3:30am 2/20/2013
Thanks in advance.
PhilPhil;
I believe this is why :
backup incremental level 1
Incremental backups are worthless unless you have the parent ( level 0 backup ). Because of this the window will always be larger than the 4 you have set.
Example
http://www.visi.com/~mseberg/rman/obsolete_backups.html
Why are they not being deleted, and what do I need to do to get them to become obsolete?
Do a level 0 more often.
Best Regards
mseberg
Edited by: mseberg on Feb 20, 2013 8:28 AM -
Hi,
I'm keen to know what does this comand mean in RMAN backup. "delete noprompt obsolete;" .Can I apply this comand for no catalog too or it's just meant for rman catalog.
Thanks
M.KaurHi,
I'm trying to do house keeping on RMAN backups,following is my script,but this does not remove hte last year's backups on the tape,thou the tape is mounted to the lib.Must I add in another command? but yes the last year's backup is not even shown in the rman backup list,but it's still in the sbt_tape,how do I remove it from there.
Note: RMAN no catalog running on oracle 9i 9.2.0.7
allocate channel for delete type disk;
allocate channel for delete type 'sbt_tape'
PARMS 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
report obsolete orphan;
report obsolete;
crosscheck backup;
crosscheck copy;
crosscheck backup of controlfile;
delete noprompt expired backup;
delete noprompt expired archivelog all;
delete noprompt expired backup of controlfile;
delete force noprompt expired copy;
delete force noprompt obsolete orphan;
delete force noprompt obsolete;
release channel;
Thanks -
Cannot delete expired portal certificate
Hi
I'm having problems deleting an expired portal certificate in STRUST. I tried exporting it and then reimporting it but still I wasn't able to delete it. When I try to delete it, i always get a generic error. Any insights? Thanks.
SheryProblem solved.
The rename operation of the copy of datafile was recorded in the controlfile, hence renamed also the recorded datafile copy in the rman repository.
The key was to simply use the RMAN switch command again.
RMAN> switch datafile '+DATA/orcl/datafile/example.269.730723991' to copy.
After that, deleting the copy in RMAN worked.
The RMAN switch command is obviously a 2-way toggle command, e.g.:
RMAN> backup as copy datafile 5;
input datafile file number=00005 name=+DATA/orcl/datafile/example.272.736664147
output file name=/u02/fra/ORCL/datafile/o1_mf_example_6hg6xo8p_.dbf
RMAN> switch datafile 5 to copy;
datafile 5 switched to datafile copy "/u02/fra/ORCL/datafile/o1_mf_example_6hg6xo8p_.dbf"
RMAN> switch datafile 5 to copy;
datafile 5 switched to datafile copy "+DATA/orcl/datafile/example.272.736664147" -
Hi all, I'm now approching RMAN and I wrote this script for the backup of my database (9.2.04 on Win2k3):
report schema;
show all;
configure channel device type disk format 'e:/oracle/test/2_%d_%T_%u.bus';
configure maxsetsize to 12000 M;
configure controlfile autobackup format for device type disk to 'e:/oracle/test/filename_%F.bak';
backup database plus archivelog;
backup current controlfile;
DELETE ARCHIVELOG UNTIL TIME='SYSDATE-3';
I can see that there is a problem in this script but I don't know how to solve it. The problem is that I delete the archived logs even if the backup database command doesn't end with success. Is it possibile to modify this script so that it will remove the archived logs only if the backup process ends with success?
Thank you very much.Hi,
your script have to be depended on your environment.
You should configure a channels for backup once and make only necessary changes in configuration thought the script.
This is example of real backup script of large system
-- reconfigure for 4 TAPES backup
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4;
-- crosscheck for unavailable copy of archivelog and controlfile
crosscheck copy of archivelog all;
crosscheck copy of controlfile;
-- backup archive logs for minimize time of backup up database
backup
format='%d_%U'
FILESPERSET=5
archivelog
until time 'sysdate'
delete input;
-- not needed auto backup control file because we make full backup
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
-- backup database
backup
INCREMENTAL LEVEL=0
database
format='%d_%U'
FILESPERSET=2
skip READONLY
skip offline
plus archivelog
delete input;
-- bold strings point your attention to remove archivelog after backup
-- PLZ Read documentation Recovery Manager Reference
-- restore configuration for every hours archivelog backup
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
-- delete expired backup from RMAN catalog
crosscheck backup completed before 'SYSDATE-24';
delete noprompt expired backup;
quit;
For disk backup last part have to be like
delete noprompt force backup completed before time 'SYSDATE-YOUR_TIME_WINDOW_RETENTION_POLICY'.
Message was edited by:
zolotko -
RMAN image copies not generating
Hi All,
i have configured default backup type as image copes in below
RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY
2> ;
old RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COPY;
new RMAN configuration parameters:
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 2;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
still the backup is taking only backup sets not image copies
Please advice how to get image copies instead of backup sets, below are the backup and list of copy backups
RMAN> backup as copy database;
Starting backup at 15-NOV-11
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting datafile copy
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/15/2011 14:54:47
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting datafile copy
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting datafile copy
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_1: starting datafile copy
copying current control file
channel ORA_DISK_2: starting datafile copy
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_2: starting datafile copy
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
continuing other job steps, job failed will not be re-run
channel ORA_DISK_2: starting full datafile backup set
channel ORA_DISK_2: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_2: starting piece 1 at 15-NOV-11
output file name=/u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111115T145447_7d5jw867_.ctl tag=TAG20111115T145447 RECID=6 STAMP=767285688
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:00
channel ORA_DISK_2: finished piece 1 at 15-NOV-11
piece handle=/u01/app/oracle/flash_recovery_area/APPLE/backupset/2011_11_15/o1_mf_nnsnf_TAG20111115T145447_7d5jw8fq_.bkp tag=TAG20111115T145447 comment=NONE
channel ORA_DISK_2: backup set complete, elapsed time: 00:00:01
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/15/2011 14:54:47
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 11/15/2011 14:54:48
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
RMAN> list copy;
specification does not match any datafile copy in the repository
specification does not match any archived log in the repository
List of Control File Copies
===========================
Key S Completion Time Ckp SCN Ckp Time
920 A 15-NOV-11 838639 15-NOV-11
Name: /u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111115T145447_7d5jw867_.ctl
Tag: TAG20111115T145447
891 A 15-NOV-11 838154 15-NOV-11
Name: /u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111115T144236_7d5j5f1d_.ctl
Tag: TAG20111115T144236
872 A 15-NOV-11 837188 15-NOV-11
Name: /u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111115T141632_7d5gnjx5_.ctl
Tag: TAG20111115T141632
835 A 15-NOV-11 836343 15-NOV-11
Name: /u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111115T140136_7d5frjxw_.ctl
Tag: TAG20111115T140136
794 A 15-NOV-11 835524 15-NOV-11
Name: /u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111115T134712_7d5dxjpb_.ctl
Tag: TAG20111115T134712
Thanks in advance.
VaraHi all,
Can you please suggest now, there is no ora error for not being in archive log mode, and my db in archive log mode,
and again i took a fresh backup of image copies,
RMAN> show all;
RMAN configuration parameters for database with db_unique_name APPLE are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 2;
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 LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle/11.2.0/dbs/snapcf_APPLE.f'; # default
RMAN> backup as copy database;
Starting backup at 16-NOV-11
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/APPLE/system01.dbf
channel ORA_DISK_2: starting datafile copy
input datafile file number=00002 name=/u01/app/oracle/oradata/APPLE/sysaux01.dbf
output file name=/u01/app/oracle/flash_recovery_area/APPLE/datafile/o1_mf_sysaux_7d8djobx_.dbf tag=TAG20111116T165844 RECID=8 STAMP=767379556
channel ORA_DISK_2: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_2: starting datafile copy
input datafile file number=00005 name=/u01/app/oracle/oradata/APPLE/example01.dbf
output file name=/u01/app/oracle/flash_recovery_area/APPLE/datafile/o1_mf_system_7d8djnj8_.dbf tag=TAG20111116T165844 RECID=9 STAMP=767379570
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:51
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/u01/app/oracle/oradata/APPLE/undotbs01.dbf
output file name=/u01/app/oracle/flash_recovery_area/APPLE/datafile/o1_mf_example_7d8dkrkx_.dbf tag=TAG20111116T165844 RECID=10 STAMP=767379571
channel ORA_DISK_2: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_2: starting datafile copy
copying current control file
output file name=/u01/app/oracle/flash_recovery_area/APPLE/datafile/o1_mf_undotbs1_7d8dl7v0_.dbf tag=TAG20111116T165844 RECID=12 STAMP=767379577
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:04
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u01/app/oracle/oradata/APPLE/users01.dbf
output file name=/u01/app/oracle/flash_recovery_area/APPLE/controlfile/o1_mf_TAG20111116T165844_7d8dl8ok_.ctl tag=TAG20111116T165844 RECID=11 STAMP=767379577
channel ORA_DISK_2: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_2: starting full datafile backup set
channel ORA_DISK_2: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_2: starting piece 1 at 16-NOV-11
output file name=/u01/app/oracle/flash_recovery_area/APPLE/datafile/o1_mf_users_7d8dlckf_.dbf tag=TAG20111116T165844 RECID=13 STAMP=767379579
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
channel ORA_DISK_2: finished piece 1 at 16-NOV-11
piece handle=/u01/app/oracle/flash_recovery_area/APPLE/backupset/2011_11_16/o1_mf_nnsnf_TAG20111116T165844_7d8dlcqz_.bkp tag=TAG20111116T165844 comment=NONE
channel ORA_DISK_2: backup set complete, elapsed time: 00:00:01
Finished backup at 16-NOV-11
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
958 Full 80.00K DISK 00:00:00 16-NOV-11
BP Key: 959 Status: AVAILABLE Compressed: NO Tag: TAG20111116T165844
Piece Name: /u01/app/oracle/flash_recovery_area/APPLE/backupset/2011_11_16/o1_mf_nnsnf_TAG20111116T165844_7d8dlcqz_.bkp
SPFILE Included: Modification time: 16-NOV-11
SPFILE db_unique_name: APPLE
Regards,
Vara -
If I need a full rman restore which backups will it use?
Hello,
I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
At the weekend I take level 0 backup and during the week level 1 cumulative.
For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
The grid reports:
Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M>
If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
Validating Backups Before Restoring Them
You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
You can monitor what RESTORE VALIDATE does.
Make precautions, so you do not damage the production DB!!!
Iordan Iotzov
http://iiotzov.wordpress.com/ -
Hi,
Does following command ONLY helpful in level 1 incremental?
RMAN>CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
I want to configure to have 30 days backup must be available on tape.I also have policy anually to have tape backup and send to IRON MOUNT.
If I use following command
RMAN>CONFIGURE RETENTION POLICY TO REDUNDANCY 30;
is there any diffrence?
If CROSSCHECK BACKUP shows expired and updated repository.Can we use expired backup for recovery purpose?
Thankssee this link also
How to delete expired backupset with RMAN ?
Khurram -
How to recover standby by rman
Hello every one
Oracle 11g2 on window server 2008
For testing i have created standby server and shutdow it.
I have also schedule the increamental backup daily in the morning at 5:00 am.
Suppose if primary server has crashed at day time at 11:00 am as whole and standby database has lag of two days with respect to primary server
I have all archive log till 11:00 am, rman backup and control at 5:00 am.
Process that followed to recover the standby server .
1) restore the control file to standby database
2) copy the rman backup to standby server and catalog it.
3) restore the database successfully
4) recover database but it give error
RMAN-03002: failure of recover command at 10/31/2013 14:55:40
ORA-19693: backup piece C:\BACKUP\STD_5TONPQ57_1_1 already included
5) i have issued alter database open but gives following error
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'C:\ORACLE\ORADATA\SLATE\SYSTEM01.DBF'
any help how to recover the standby server by rman incremental backupyasirdba wrote:
Hello every one
Oracle 11g2 on window server 2008
For testing i have created standby server and shutdow it.
I have also schedule the increamental backup daily in the morning at 5:00 am.
Suppose if primary server has crashed at day time at 11:00 am as whole and standby database has lag of two days with respect to primary server
I have all archive log till 11:00 am, rman backup and control at 5:00 am.
Process that followed to recover the standby server .
1) restore the control file to standby database
2) copy the rman backup to standby server and catalog it.
3) restore the database successfully
4) recover database but it give error
RMAN-03002: failure of recover command at 10/31/2013 14:55:40
ORA-19693: backup piece C:\BACKUP\STD_5TONPQ57_1_1 already included
5) i have issued alter database open but gives following error
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'C:\ORACLE\ORADATA\SLATE\SYSTEM01.DBF'
any help how to recover the standby server by rman incremental backup
Hi Yasir!
If you have all archived log, and control file backups.
Then you must follow this steps
1. Restore Standby control file;
2. Copy archived logs to a folder (/tmp/arch) or FRA
3. RMAN>alter database mount;
RMAN> catalog start with '/tmp/arch'; (or FRA)
RMAN must be cataloged all archived logs;
4. Start redo apply process for apply archived log;
5. If All archived logs applied, then you can perform failover to standby database.
It means Standby database role will change to Primary.
Do you want this?
Regards
Mahir M. Quluzade -
Removing RMAN backup files from RMAN prompt
DB version: 10.2.0.4
OS : AIX
Due to space constraints, we had to change our retention policy today. So, i need to remove some old backup files manually to free up some space. Should i remove the backup files from OS using rm command and then issue a
delete expired backup;from RMAN prompt?
Or is there another recommended way?If you remove them manually from the O/S, then you'll have to perform a CROSSCHECK BACKUP prior to the DELETE EXPIRED.
Or once you change your retention policy you could issue DELETE OBSOLETE, which may be the safer way to ensure you don't accidentally remove wrong backup files.
Maybe you are looking for
-
Firefox completely freezes when I open it (don't have to click on anything, or do anything). I read that Hyper-Threading could be the issue on Pentium 4 machines. I'm on a Pentium, so I gave it a shot. When in campatiblity, it loads, but when I try t
-
Windows 8.1 start screen
How do you add programs to start screen. I tried one answer (right click on blank part of screen) AND IT DID NOT WORK
-
HV30 24p 30p and Final Cut Pro
Hi I am planning on buying a Canon HV30 in about 2 to 3 weeks. I have a MacBook Unibody 2.4GHz 1GHz FSB 4GB Ram 320 GB HD 500 GB External HD "USB and FireWire" Final Cut Studio 2 This is for Family events and fun stuff. Well since my Mac no longer ha
-
Glxinfo/glxgears freeze the system like hell
I am running the latest updated Archlinux 64 bit box: [arnuld@gnu ~]$ pacman -Q mesa mesa 7.0.1-1 [arnuld@gnu ~]$ pacman -Q xorg-server xorg-server 1.4-5 I am using openchrome and X runs fine. NO freezes in normals runs but as soon as I type glxinfo
-
Audio out on HDMI from mac book pro?
Audio out on HDMI from mac book pro?