RMAN retores archivelog to dbs location
While i test my RMAN backup in test server, I found archive log always restore to oracle_home/dbs location .rather than actual location.
I copy the whole rman bacnk to my test server from production to test..which is same folder structure. When i put the backup in exact location and set dbid and restore controlfile. And then restore datafile and start recover them ,And the problem start at this point .Archive log should restore to the same location that in production. But it restores to oracle_home/dbs. Where is the mistake that i have done??
Post the output of
log_archive_dest_1 ------ > assuming your db version > 10.1from your source DB.
Please provide the version
I know your question is about restore. Just want to let you know ; if you execute
rman > backup database;without specifying backup location using FORMAT parameter, then your backup files will end up in ORACLE_HOME/dbs
Similar Messages
-
Rman not reading archivelogs from all locations
Hello,
My physical standby database has two archivelog locations inside ASMFLASH. One of the location is ASMFLASH/DB/ARCHIVELOG/ where the local archivelogs of the standby database get stored. Other one is ASMFLASH/DB/archstd/ where the archivelogs are stored after getting shipped from the primary database.
I want to do maintenance task by deleting the old archivelog files. But when i connect to RMAN, it lists out archivelogs of only one location:
RMAN> list archivelog all;
using target database control file instead of recovery catalog
List of Archived Log Copies
Key Thrd Seq S Low Time Name
2418 1 1501 A 09-APR-11 +ASMFLASH/db/archstd/1_1501_714749644.arc
2422 1 1502 A 10-APR-11 +ASMFLASH/db/archstd/1_1502_714749644.arc
2424 1 1503 A 11-APR-11 +ASMFLASH/db/archstd/1_1503_714749644.arc
2428 1 1504 A 12-APR-11 +ASMFLASH/db/archstd/1_1504_714749644.arc
2431 1 1505 A 13-APR-11 +ASMFLASH/db/archstd/1_1505_714749644.arc
2434 1 1506 A 14-APR-11 +ASMFLASH/db/archstd/1_1506_714749644.arc
2436 1 1507 A 15-APR-11 +ASMFLASH/db/archstd/1_1507_714749644.arc
2439 1 1508 A 16-APR-11 +ASMFLASH/db/archstd/1_1508_714749644.arc
2442 1 1509 A 17-APR-11 +ASMFLASH/db/archstd/1_1509_714749644.arc
I cannot see the locally generated archivelogs of +ASMFLASH/DB/ARCHIVELOG/ . How shall i delete those archives from RMAN?ASMCMD> cd archivelog
ASMCMD> pwd
+asmflash/db/archivelog
ASMCMD> ls
2011_02_10/
2011_02_11/
2011_02_12/
2011_02_13/
2011_02_14/
2011_02_15/
2011_02_16/
2011_02_17/
2011_02_18/
2011_02_19/
2011_02_20/
2011_02_21/
2011_02_22/
2011_02_23/
2011_02_24/
2011_02_25/
2011_02_26/
2011_02_27/
2011_02_28/
2011_04_09/
2011_04_10/
2011_04_11/
2011_04_12/
2011_04_13/
2011_04_14/
2011_04_15/
2011_04_16/
2011_04_17/
2011_04_18/
2011_04_19/
2011_04_20/
2011_04_21/
2011_04_22/
2011_04_23/
2011_04_24/
2011_04_25/
2011_04_26/
2011_04_27/
2011_04_28/
2011_04_29/
2011_04_30/
2011_05_01/
2011_05_02/
ASMCMD> cd 2011_05_02/
ASMCMD> ls
thread_1_seq_1579.1316.750079865
thread_2_seq_995.1320.750072691
thread_2_seq_996.1317.750079867
Also :
2_985_714749644.arc
2_986_714749644.arc
2_987_714749644.arc
2_988_714749644.arc
2_989_714749644.arc
2_990_714749644.arc
2_991_714749644.arc
2_992_714749644.arc
2_993_714749644.arc
2_994_714749644.arc
2_995_714749644.arc
2_996_714749644.arc
ASMCMD> pwd
+asmflash/db/archstd -
Backup being written to dbs location
Hello all,
when i try to run the backup using below....for some reason my backup keeps going to $ORACLE_HOME/dbs location and the backup location that i specified...any reason why its writting back to dbs location?? .....i am on 11.2.0.2...its almost seems like its backing it up twice ?
allocate channel t1 type disk;
backup incremental
level=1 database FORMAT '/oracle/test/backups/%d_%t_%s_%p_%T' plus archivelog not backed up 1 times delete all in
put tag = 'DB_NAME level 1';
and here is my show all;
RMAN configuration parameters for database with db_unique_name TRGT are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 8 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oracle/test/backups/cont_spfile_%F';
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/oracle/test/backups/%d_%t_%s_%p_%T';
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 2 TIMES TO DISK;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/prodcut/11.2/dbs/snapcf_TRGT.f'; # default-rw-r----- 1 oracle dba 19562496 Sep 15 14:01 cont_spfile_c-3396062562-20110915-04
-rw-r----- 1 oracle dba 843776 Sep 15 14:13 TRGT_761926387_560_1_20110915
-rw-r----- 1 oracle dba 942080 Sep 15 14:14 TRGT_761926392_562_1_20110915
-rw-r----- 1 oracle dba 3973120 Sep 15 14:15 TRGT_761926391_561_1_20110915
-rw-r----- 1 oracle dba 8192 Sep 15 14:15 TRGT_761926550_563_1_20110915
-rw-r----- 1 oracle dba 19562496 Sep 15 14:15 cont_spfile_c-3396062562-20110915-05 -
Backup archivelogs from different location
DB : 10.2.0.4
OS : HEHL5
due to space issue i moved the archived to different location from log_archive_dest_1.
is it possible to backup the archivelogs from different location as i moved them?
Thanks.My bad , it's not a must! Please see,
bash-3.2$ ls
o1_mf_1_34_8jk60c7b_.arc o1_mf_1_35_8jkz3p0l_.arc o1_mf_1_36_8jlcqpky_.arc
bash-3.2$ mkdir /tmp/archivelognewloc
bash-3.2$ cp *.* /tmp/archivelognewloc
bash-3.2$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Jan 30 14:40:17 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
allconnected to target database: **** (DBID=1228973204)
RMAN>
RMAN> catalog start with '/tmp/archivelognewloc';
searching for all files that match the pattern /tmp/archivelognewloc
List of Files Unknown to the Database
=====================================
File Name: /tmp/archivelognewloc/o1_mf_1_36_8jlcqpky_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_35_8jkz3p0l_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_34_8jk60c7b_.arc
Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /tmp/archivelognewloc/o1_mf_1_36_8jlcqpky_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_35_8jkz3p0l_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_34_8jk60c7b_.arc
RMAN>
Update : A little better demo
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 30 15:00:32 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> alter system checkpoint;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
bash-3.2$ ls
o1_mf_1_38_8jldnkog_.arc o1_mf_1_40_8jlfdnph_.arc
o1_mf_1_39_8jlfdmoq_.arc o1_mf_1_41_8jlff2nn_.arc
bash-3.2$ pwd
/u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30
[root@EDHDR3P0 ~]# ls /tmp/archivelognewloc/
[root@EDHDR3P0 ~]# exit
logout
bash-3.2$
bash-3.2$
bash-3.2$ pwd
/u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30
bash-3.2$ ls
o1_mf_1_38_8jldnkog_.arc o1_mf_1_40_8jlfdnph_.arc
o1_mf_1_39_8jlfdmoq_.arc o1_mf_1_41_8jlff2nn_.arc
bash-3.2$ ls /tmp/archivelognewloc/
bash-3.2$ ls -l /tmp/archivelognewloc/
total 0
bash-3.2$ cp * /tmp/archivelognewloc/
bash-3.2$ ls -l /tmp/archivelognewloc/
total 3620
-rw-r----- 1 oracle oinstall 549888 Jan 30 15:02 o1_mf_1_38_8jldnkog_.arc
-rw-r----- 1 oracle oinstall 3117568 Jan 30 15:02 o1_mf_1_39_8jlfdmoq_.arc
-rw-r----- 1 oracle oinstall 1024 Jan 30 15:02 o1_mf_1_40_8jlfdnph_.arc
-rw-r----- 1 oracle oinstall 19456 Jan 30 15:02 o1_mf_1_41_8jlff2nn_.arc
bash-3.2$ pwd
/u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30
bash-3.2$ rm -rf *
bash-3.2$ ls
bash-3.2$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Jan 30 15:03:13 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: AMER (DBID=1228973204)
RMAN> backup archivelog all;
Starting backup at 30-JAN-13
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=151 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 01/30/2013 15:03:32
RMAN-06059: expected archived log not found, loss of archived log compromises recoverability
ORA-19625: error identifying file /u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30/o1_mf_1_38_8jldnkog_.arc
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
RMAN> catalog start with '//tmp/archivelognewloc';
searching for all files that match the pattern //tmp/archivelognewloc
List of Files Unknown to the Database
=====================================
File Name: /tmp/archivelognewloc/o1_mf_1_39_8jlfdmoq_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_41_8jlff2nn_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_40_8jlfdnph_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_38_8jldnkog_.arc
Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /tmp/archivelognewloc/o1_mf_1_39_8jlfdmoq_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_41_8jlff2nn_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_40_8jlfdnph_.arc
File Name: /tmp/archivelognewloc/o1_mf_1_38_8jldnkog_.arc
RMAN> backup archivelog all;
Starting backup at 30-JAN-13
current log archived
using channel ORA_DISK_1
archived log /u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30/o1_mf_1_38_8jldnkog_.arc not found or out of sync with catalog
trying alternate file for archived log of thread 1 with sequence 38
archived log /u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30/o1_mf_1_39_8jlfdmoq_.arc not found or out of sync with catalog
trying alternate file for archived log of thread 1 with sequence 39
archived log /u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30/o1_mf_1_40_8jlfdnph_.arc not found or out of sync with catalog
trying alternate file for archived log of thread 1 with sequence 40
archived log /u01/app/oracle/flash_recovery_area/AMER/archivelog/2013_01_30/o1_mf_1_41_8jlff2nn_.arc not found or out of sync with catalog
trying alternate file for archived log of thread 1 with sequence 41
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=38 RECID=45 STAMP=806079846
input archived log thread=1 sequence=39 RECID=42 STAMP=806079846
input archived log thread=1 sequence=40 RECID=44 STAMP=806079846
input archived log thread=1 sequence=41 RECID=43 STAMP=806079846
input archived log thread=1 sequence=42 RECID=41 STAMP=806079812
input archived log thread=1 sequence=43 RECID=46 STAMP=806079851
channel ORA_DISK_1: starting piece 1 at 30-JAN-13
channel ORA_DISK_1: finished piece 1 at 30-JAN-13
piece handle=/u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T150411_8jlfmcmf_.bkp tag=TAG20130130T150411 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 30-JAN-13
RMAN> list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
1 981.94M DISK 00:01:15 30-JAN-13
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20130130T143224
Piece Name: /u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T143224_8jlcqs5d_.bkp
List of Archived Logs in backup set 1
Thrd Seq Low SCN Low Time Next SCN Next Time
1 5 830546 25-JAN-13 841823 25-JAN-13
1 6 841823 25-JAN-13 866733 25-JAN-13
1 7 866733 25-JAN-13 889743 25-JAN-13
1 8 889743 25-JAN-13 912846 26-JAN-13
1 9 912846 26-JAN-13 931109 26-JAN-13
1 10 931109 26-JAN-13 952239 26-JAN-13
1 11 952239 26-JAN-13 979268 26-JAN-13
1 12 979268 26-JAN-13 1004465 26-JAN-13
1 13 1004465 26-JAN-13 1021707 26-JAN-13
1 14 1021707 26-JAN-13 1040437 27-JAN-13
1 15 1040437 27-JAN-13 1068031 27-JAN-13
1 16 1068031 27-JAN-13 1091450 27-JAN-13
1 17 1091450 27-JAN-13 1114656 27-JAN-13
1 18 1114656 27-JAN-13 1137779 27-JAN-13
1 19 1137779 27-JAN-13 1165125 27-JAN-13
1 20 1165125 27-JAN-13 1199499 28-JAN-13
1 21 1199499 28-JAN-13 1228282 28-JAN-13
1 22 1228282 28-JAN-13 1249640 28-JAN-13
1 23 1249640 28-JAN-13 1270613 28-JAN-13
1 24 1270613 28-JAN-13 1291570 28-JAN-13
1 25 1291570 28-JAN-13 1312497 28-JAN-13
1 26 1312497 28-JAN-13 1332622 28-JAN-13
1 27 1332622 28-JAN-13 1365097 28-JAN-13
1 28 1365097 28-JAN-13 1395297 28-JAN-13
1 29 1395297 28-JAN-13 1407058 28-JAN-13
1 30 1407058 28-JAN-13 1437549 29-JAN-13
1 31 1437549 29-JAN-13 1469773 29-JAN-13
1 32 1469773 29-JAN-13 1504608 29-JAN-13
1 33 1504608 29-JAN-13 1522578 29-JAN-13
1 34 1522578 29-JAN-13 1553706 30-JAN-13
1 35 1553706 30-JAN-13 1586954 30-JAN-13
1 36 1586954 30-JAN-13 1603625 30-JAN-13
BS Key Size Device Type Elapsed Time Completion Time
2 538.00K DISK 00:00:01 30-JAN-13
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20130130T144745
Piece Name: /u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T144745_8jldnkxt_.bkp
List of Archived Logs in backup set 2
Thrd Seq Low SCN Low Time Next SCN Next Time
1 38 1604067 30-JAN-13 1604680 30-JAN-13
BS Key Size Device Type Elapsed Time Completion Time
3 3.64M DISK 00:00:00 30-JAN-13
BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20130130T150411
Piece Name: /u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T150411_8jlfmcmf_.bkp
List of Archived Logs in backup set 3
Thrd Seq Low SCN Low Time Next SCN Next Time
1 38 1604067 30-JAN-13 1604680 30-JAN-13
1 39 1604680 30-JAN-13 1606046 30-JAN-13
1 40 1606046 30-JAN-13 1606049 30-JAN-13
1 41 1606049 30-JAN-13 1606057 30-JAN-13
1 42 1606057 30-JAN-13 1606303 30-JAN-13
1 43 1606303 30-JAN-13 1606353 30-JAN-13
RMAN> crosscheck backup of archivelog all;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T143224_8jlcqs5d_.bkp RECID=1 STAMP=806077945
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T144745_8jldnkxt_.bkp RECID=2 STAMP=806078865
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T150411_8jlfmcmf_.bkp RECID=3 STAMP=806079851
Crosschecked 3 objects
RMAN> list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
1 981.94M DISK 00:01:15 30-JAN-13
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20130130T143224
Piece Name: /u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T143224_8jlcqs5d_.bkp
List of Archived Logs in backup set 1
Thrd Seq Low SCN Low Time Next SCN Next Time
1 5 830546 25-JAN-13 841823 25-JAN-13
1 6 841823 25-JAN-13 866733 25-JAN-13
1 7 866733 25-JAN-13 889743 25-JAN-13
1 8 889743 25-JAN-13 912846 26-JAN-13
1 9 912846 26-JAN-13 931109 26-JAN-13
1 10 931109 26-JAN-13 952239 26-JAN-13
1 11 952239 26-JAN-13 979268 26-JAN-13
1 12 979268 26-JAN-13 1004465 26-JAN-13
1 13 1004465 26-JAN-13 1021707 26-JAN-13
1 14 1021707 26-JAN-13 1040437 27-JAN-13
1 15 1040437 27-JAN-13 1068031 27-JAN-13
1 16 1068031 27-JAN-13 1091450 27-JAN-13
1 17 1091450 27-JAN-13 1114656 27-JAN-13
1 18 1114656 27-JAN-13 1137779 27-JAN-13
1 19 1137779 27-JAN-13 1165125 27-JAN-13
1 20 1165125 27-JAN-13 1199499 28-JAN-13
1 21 1199499 28-JAN-13 1228282 28-JAN-13
1 22 1228282 28-JAN-13 1249640 28-JAN-13
1 23 1249640 28-JAN-13 1270613 28-JAN-13
1 24 1270613 28-JAN-13 1291570 28-JAN-13
1 25 1291570 28-JAN-13 1312497 28-JAN-13
1 26 1312497 28-JAN-13 1332622 28-JAN-13
1 27 1332622 28-JAN-13 1365097 28-JAN-13
1 28 1365097 28-JAN-13 1395297 28-JAN-13
1 29 1395297 28-JAN-13 1407058 28-JAN-13
1 30 1407058 28-JAN-13 1437549 29-JAN-13
1 31 1437549 29-JAN-13 1469773 29-JAN-13
1 32 1469773 29-JAN-13 1504608 29-JAN-13
1 33 1504608 29-JAN-13 1522578 29-JAN-13
1 34 1522578 29-JAN-13 1553706 30-JAN-13
1 35 1553706 30-JAN-13 1586954 30-JAN-13
1 36 1586954 30-JAN-13 1603625 30-JAN-13
BS Key Size Device Type Elapsed Time Completion Time
2 538.00K DISK 00:00:01 30-JAN-13
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20130130T144745
Piece Name: /u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T144745_8jldnkxt_.bkp
List of Archived Logs in backup set 2
Thrd Seq Low SCN Low Time Next SCN Next Time
1 38 1604067 30-JAN-13 1604680 30-JAN-13
BS Key Size Device Type Elapsed Time Completion Time
3 3.64M DISK 00:00:00 30-JAN-13
BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20130130T150411
Piece Name: /u01/app/oracle/flash_recovery_area/AMER/backupset/2013_01_30/o1_mf_annnn_TAG20130130T150411_8jlfmcmf_.bkp
List of Archived Logs in backup set 3
Thrd Seq Low SCN Low Time Next SCN Next Time
1 38 1604067 30-JAN-13 1604680 30-JAN-13
1 39 1604680 30-JAN-13 1606046 30-JAN-13
1 40 1606046 30-JAN-13 1606049 30-JAN-13
1 41 1606049 30-JAN-13 1606057 30-JAN-13
1 42 1606057 30-JAN-13 1606303 30-JAN-13
1 43 1606303 30-JAN-13 1606353 30-JAN-13
RMAN> HTH
Aman....
Edited by: Aman.... on Jan 30, 2013 3:06 PM -
RMAN show archivelog deletion policy;
RMAN> show archivelog deletion policy;
RMAN configuration parameters are:
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
What choices i have for its deletion policy? I want to carry only 30 days archivelogs , How i can chnage that?Hello,
These are the options.
When backups of archived redo log files are taken on the standby database:
1)Issue the following command on the primary database:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
2) Issue the following command on the standby database:
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
When backups of archived redo log files are taken on the primary database:
1) Issue the following command on the standby database:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
2) Issue the following command on the primary database:
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
Check this url for more info
https://dpt-info.u-strasbg.fr/doc/oracle/server.102/b14239/rman.htm
-Sri -
RMAN backup archivelog all delete input
Hello DBAs,
what does this command will do?
RMAN> backup archivelog all delete input;
DNI have set cron job for RMAN> backup archivelog all delete input; and its work.
But I got following message in my log file.
Please give ur feed back.
Recovery Manager: Release 10.1.0.4.0 - 64bit Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
RMAN>
connected to target database: SIDNAME (DBID=XXXXXXXX)
using target database controlfile instead of recovery catalog
RMAN>
Starting backup at 10-FEB-06
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=269 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=268 devtype=DISK
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=5701 recid=2412 stamp=581958928
input archive log thread=1 sequence=5702 recid=2413 stamp=581961105
input archive log thread=1 sequence=5703 recid=2414 stamp=581964532
input archive log thread=1 sequence=5704 recid=2415 stamp=582025325
input archive log thread=1 sequence=5705 recid=2416 stamp=582029976
input archive log thread=1 sequence=5706 recid=2417 stamp=582031922
channel ORA_DISK_1: starting piece 1 at 10-FEB-06
channel ORA_DISK_2: starting compressed archive log backupset
channel ORA_DISK_2: specifying archive log(s) in backup set
input archive log thread=1 sequence=5707 recid=2418 stamp=582037207
input archive log thread=1 sequence=5708 recid=2419 stamp=582038471
input archive log thread=1 sequence=5709 recid=2420 stamp=582043538
input archive log thread=1 sequence=5710 recid=2421 stamp=582048518
input archive log thread=1 sequence=5711 recid=2422 stamp=582055205
channel ORA_DISK_2: starting piece 1 at 10-FEB-06
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2006 18:00:
12
ORA-19502: write error on file "/u02/backup/backup_6ehb2t97_1_1", blockno 6145 (
blocksize=512)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
channel ORA_DISK_1 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/10/2006 18:00:
12
ORA-19502: write error on file "/u02/backup/6fhb2t97_1_1", blockno 6145
(blocksize=512)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2006 18:00:
12
ORA-19502: write error on file "/u02/backup/backup_6ehb2t97_1_1", blockno 6145 (
blocksize=512)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
RMAN>
Recovery Manager complete.
DN -
Archivelogs to different locations - only with Enterprise Edition?How to?
Hello,
while searching for an answer to 'how to store my archivelogs to different locations' I came across a post, that says, that this is only possible with enterprise edition? Is that true?
In case it is not: How do I add to an online database a second or more targets? I tried it on a test database, but the new target was not accepted, the entry pointing to the FRA was deleted, and everythin stopped, of course. Is there a way to add a second target without shutting down the database? Could anyone please explain, I am afraid to crash our live database. But living without a second target makes me nervous...
Thank you very much for your help,
ChrisDid you look at the documentation for 10g?
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_transport.htm#i1265402
This was only for remote db site but there is more in the book.
5.2.2.1 Changing Destination Attributes
You can dynamically update most of the attribute values of the LOG_ARCHIVE_DEST_n and the LOG_ARCHIVE_DEST_STATE_n parameters using the ALTER SYSTEM SET statement.
The modifications take effect after the next log switch on the primary database. For example, to defer redo transport services from transmitting redo data to the remote standby database named boston, issue the following statements on the primary database:
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=boston
2> VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)';
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=DEFER;
Read and have fun.
I think the point you missed is that you got to set the state of the destination as well.
Regards
Tim -
Hi,
I have a question regarding RMAN.
I have 2 DBs in 2 different servers and I do a daily backup of the DBs with RMAN (no catalog, just the rman script) The two DBs are connected through an application that writes on both DBs common and connected data for the applicazion it self, so if one db stops and the other keeps working the data i will find on my application will become inconsistens (or at least I will have differences between the dbs).
Is there a way to create a single RMAN script that does a backup of archive logs and db of the two DBs simultaniously so that I am 100% sure that the data is taken exactly at the same moment, and I don't have to worry about having discrepancies between the two dbs in case of a restore procedure? because if one db needs restore I will need to restore BOTH dbs to have the application up and running correctly!
(hope I explaied it well enough)
I have Oracle 10.2.0.4 EE on Windows Server 2003 R2 SP2
Thank you all!Phelit wrote:
Hi,
I have a question regarding RMAN.
I have 2 DBs in 2 different servers and I do a daily backup of the DBs with RMAN (no catalog, just the rman script) The two DBs are connected through an application that writes on both DBs common and connected data for the applicazion it self, so if one db stops and the other keeps working the data i will find on my application will become inconsistens (or at least I will have differences between the dbs).
Is there a way to create a single RMAN script that does a backup of archive logs and db of the two DBs simultaniously so that I am 100% sure that the data is taken exactly at the same moment, and I don't have to worry about having discrepancies between the two dbs in case of a restore procedure? because if one db needs restore I will need to restore BOTH dbs to have the application up and running correctly!
(hope I explaied it well enough)
I have Oracle 10.2.0.4 EE on Windows Server 2003 R2 SP2
Thank you all!
Hi,
I think you must use data guard configuration.
In data guard configuration databases will be primary and standby database and transport service (SYNC or ASYNC) is send all archived logs to standby
and apply service will apply all received redo logs to standby.
When primary database i failed, then you can convert standby to new primary.
If you will use SYNC transport then you sure you data loss is equal to zero.
Regards
Mahir M. Quluzade -
RMAN Validate backup from a location
Hi All,
I need to validate a set of RMAN backup files that I took to a disk say /ora_tmp.
Do I need to catalogue those files to validate or I can validate the files connecting to the target and provide a location to validate the backups.
Please let me know.
Thanks,
Chilakamarthi.You can use the BACKUP VALIDATE command to do the following:
Check datafiles for physical and logical block corruption
Confirm that all database files exist and are in the correct locations
When you run BACKUP VALIDATE, RMAN reads the files to be backed up in their entirety, as it would during a real backup. RMAN does not, however, actually produce any backup sets or image copies.
To validate files with the BACKUP VALIDATE command:
Start RMAN and connect to a target database and recovery catalog (if used).
Run the BACKUP VALIDATE command.
For example, you can validate that all database files and archived logs can be backed up by running a command as shown in the following example. This command checks for physical corruptions only.
BACKUP VALIDATE
DATABASE
ARCHIVELOG ALL;
To check for logical corruptions in addition to physical corruptions, run the following variation of the preceding command:
BACKUP VALIDATE
CHECK LOGICAL
DATABASE
ARCHIVELOG ALL;
Hope this will help you -
RMAN backup to 3 different locations
Hi,
I'm trying to backup my database to 3 different locations. If one location is unavailiable backup fails. Is there a possibility to make backup to other 2 locations when one is unavailiable? For example second location from following code is unavailiable. Here is my code:
RUN
CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup/location1/%d_DB_%u_%s_%p', '/backup/location2/%d_DB_%u_%s_%p', '/backup/location3/%d_DB_%u_%s_%p';
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 3;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 3;
BACKUP DATABASE PLUS ARCHIVELOG SKIP INACCESSIBLE;
}Hello again;
I was able to find an example of your other question :
If you specify a nonexistent directory, RMAN displays output such as the following:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/29/2001
14:36:04
ORA-19504: failed to create file "/nosuchdisk/0cd2momi_1_1"
ORA-27040: skgfrcre: create error, unable to create file
SVR4 Error: 2: No such file or directory
Source
Spreading a Backup Across Multiple Disk Drives: Example
Database Backup and Recovery Advanced User's Guide
So it really looks like it errors, ORA-19504 appears to be the key.
Unable to find any Oracle note regarding skip. Interesting question.
Best Regards
mseberg -
Howto: RMAN catalog backupset in different location
Hi,
How can I tell RMAN catalog that the location of backup set has changed.
For example: after my RMAN backup all my backup pieces went to C:\first_location\
directory. I am using a catalog while running backup.
Now I moved the backup pieces to D:\new_location\ directory. Say C:\first_location\ directory is no longer for some reason. How do I tell my catalog that the backup pieces about the new location D:\new_location\
Catalog, Rman, database all in 10.2 version.
thank you in advanceThank you for your response to my question.
Can someone help me with syntax and usage of new location of backup pieces in a backup set to be reflected in my catalog. Catalog, target and rman all 10g version.
thanks in advance -
Rman restore files from diff location
Hi,
In rman backups i have kept 3 location of backup /disk1,/disk2,sbt.now i want to restore the datafile or archive file from only location /disk2 .how can i do that.I dont want to give the backupset name or tag etc etc.Can i point allocate channel to /disk2.when i am pointing it to /disk2 it is still picking for /disk1.
Please help
RegardsHi CKPT,
give the full connection string i am trying below its not connecting
rman TARGET sys/xxxx@kau CATALOG '/disk2'Recovery Manager: Release 10.2.0.1.0 - Production on Sun Nov 14 12:40:27 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: KAU (DBID=1783968026, not open)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-10000: error parsing target database connect string "/disk2">
AND WHAT CHINAR SAID IS NOT WORKING ITS GOING TO /disk1 after allocation channel to /disk2
Regards -
Hi All,
We are about to implement RMAN instead of brarchive/brbackup. For us the major disadvantage of using RMAN is the way it handles deletion of the archivelogs after backing them up to our TSM storage manager.
When using brarchive a single archivelog is deleted from the archivelog filesystem once it has been backed up to TSM, in this way freeing up space in the archivelog filesystem. When using RMAN the backed up archive logs are only deleted when the complete bunch of "to be backed up archive logs" are actually backed up to TSM. This would mean that if the archive log filesystem fills up (e.g. due to problems with our storage manager or heavy archivelog creation) the space in the filesystem is only freed after the complete RMAN cycle has finished. The database would be hanging untill that time. When using brarchive a single archive log will be deleted once it has been backed up, thereby creating free space in the filesystem immediately and the database to be running normally again.
In order to keep our systems running when the oraarch filesystem is filled up and RMAN is running we can increase the size of the filesystem untill the RMAN cycle has finished and the archivelogs are subsequently deleted. However we are wondering if there is any other way in which we can make sure that the system keeps running. E.g. is it possible to use an 'overflow archivelog filesystem" to which oracle switches once the initial archivelog filesystem fills up? Or any other method?
What's best practice for this?
Thanks.
Regards,
Bart GrootHello Bart,
i am sorry, but in your previous post you said that you want to "implement RMAN instead of brarchive/brbackup".
Now you are talking about the init<SID>.sap file again.
If you use native RMAN you have some backup scripts (for full backup, archive log backup, etc.) in which you can specify the FILESPERSET clause. If you still want to use the BR*Tools with RMAN (which uses the init<SID>.sap file) you can specify the FILESPERSET clause globally .. so it is used for archive log files and full backups, etc.
But as i already mentioned that should be no problem, because of in huge environments not all files should be in one backupset.
http://help.sap.com/saphelp_sm32/helpdata/de/82/29e03a00281877e10000000a11402f/content.htm
Regards
Stefan -
RMAN change archivelog all crosscheck
Hi DBA's
I want to implement RMAN backup on a prod db for the first time. tha DB was running for more than 2 years and generated seveal archive logs. the previous dba was just taking a cold backup and move the archive logs to somwhere else.
i want to know if i issu the command "change archivelog all crosscheck" how long it will takes and how far it will go back to check the archive logs.
is it going to crosscheck from SCN 1 to current which is 189234 or just checks the necessary SCN numbers ?
ThanksHi,
Checks whether the specified backups and copies exist. If RMAN cannot find backup pieces, it marks them as having the status expired. It marks all other types of absent files--image copies and archived redo logs--as deleted.
If the files are on disk, RMAN queries the file headers. For other device types, RMAN queries the media manager to see whether the file exists in the media management catalog.
Note: RMAN considers archived redo logs as copies, so issue the change archivelog all crosscheck command if one or more logs become unavailable. If the archived logs become unavailable again, you must issue catalog archivelog to re-catalog them.
Note: If you crosscheck a control file copy, specify a filename rather than a primary key.
http://docs.oracle.com/cd/F49540_01/DOC/server.815/a67773/rmansyn7.htm
Regards
Hitgon -
Rman delete archivelog until time 2hrs
guys,
I want to use this inside rman.
rman{
RUN{
ALLOCATE CHANNEL ch01 TYPE DISK FORMAT 'blah lah';
BACKUP
ARCHIVELOG ALL
DELETE archivelog until time "older than 2 hrs ago" backed up 1 times to device type sbt; ;
RELEASE CHANNEL ch01;
how do i translate this "older than 2 hrs ago" to RMAN language
Edited by: user2579172 on Mar 29, 2010 1:19 PMthis served my purpose :
DELETE archivelog until time "sysdate-1/30" backed up 1 times to device type disk ;
but
rman is prompting whether to delete the archivelogs or not
ex:
List of Archived Log Copies
Key Thrd Seq S Low Time Name
4303374 1 11623
Do you really want to delete the above objects (enter YES or NO)?
Error occurred getting response - assuming NO response
released channel: ch01
RMAN>
HOW i heck I tell RMAN inside the run { to delete the archive logs without prompting me for YES OR NO
Maybe you are looking for
-
Voice memos playlist missing on iphone 4S
Voice memos playlist music missing on iphone 4S. They syncr with itunes, appear there but I can't find them under music on my iphone.
-
Custom playbar does not display in the list of available widgets
I followed the steps described in the "Skins" page of the Captivate 5 help outlined here: http://help.adobe.com/en_US/captivate/cp/using/WSc1b83f70210cd101126156ac11c7f147d6b-8000. html Now my problem is, that my custom playbar is not displayed in th
-
Closed Lid Operations Wont Work
I am a big fan of the closed lid with external mouse, keyboard, and display (minimize spill risks in college dorm room). I just got a new macbook pro after 4 great years with my g4 powerbook and I cannot get the new machine to work with the lid close
-
Eating up hard disk space - help, please!
I've burned two dvd's from digital video tapes using the "one-step" method, and have gone from around 50Gb to 8Gb. How do I get rid of the files that are taking up that space?
-
How to see WAD reports on browser
Hi experts, We created some reports on BEx. Now we want to show them in browser. For this i went into WAD and gave one report as input. An URL is generated. I copied that URL and pasted in the Address bar of internet explorer. It is giving an error