How to duplex archive logs in RAC DB?

Hi
I need to set up alternative, local disk location for archive logs for both RAC nodes, outside ASM.
The reason behind it is to transfer the logs (along with full backups) to remote location to ensure security of data.
I have mapped same remote directory as R: drive on both nodes.
11.2.0.2 RAC Standard 2-nodes database
Windows 2008 R2 Standard
+DATA ASM Storage
SYS@proton2x1> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 1750
Next log sequence to archive 1752
Current log sequence 1752
SYS@proton2x1> show parameter recov
NAME TYPE VALUE
db_recovery_file_dest string +DATA
The problem is when I set duplex location:
SQL> alter system set log_archive_duplex_dest='LOCATION=R:' SCOPE=spfile;
restart nodes and switch online logs 3 times it hangs and no archiive logs are written in R:\ directory.
alert log says:
LGWR: Error 16017 validating archivelog destination information
I played in similar way with other parameters:
alter system set log_archive_dest_1='LOCATION=+DATA MANDATORY' SCOPE=spfile;
alter system set log_archive_dest_2='LOCATION=R: OPTIONAL' SCOPE=spfile;
with same issue.
The question is, how to set up second location for archivelogs, outside ASM storage?
or maybe someone has another idea how to transfer/copy archivelogs to a remote storage?
I though about 'cp' command on asmcmd tool but it would be hard to sync source and target locations.

g777 wrote:
I tested the hint no.1 it before, now I've done it again to show the output:
SYS@vip2x> alter system set log_archive_dest_2='LOCATION=R:\archive';
it gives these errors:
ORA-16032: parameter LOG_ARCHIVE_DEST_2 destination string cannot be translated
ORA-09291: sksachk: invalid device specified for archive destination
OSD-04018: Unable to access the specified directory or device.
O/S-Error: (OS 3) The system cannot find the path specified.This maybe OS error that oracle cannot access it, Is this mounted properly?
>
though it is visible inside sqlplus:
SYS@vip2x> $dir R:
archive PROTON2_2nd_arch_location.txt
I tried also the other way (hint no.2), but got stuck as well:
SYS@proton2x1> alter system set log_archive_dest='LOCATION=+DATA';
alter system set log_archive_dest='LOCATION=+DATA'
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16018: cannot use LOG_ARCHIVE_DEST with LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST
Dont specify LOCATION in log_archive_dest
SYS@proton2x1> alter system set log_archive_duplex_dest='LOCATION=R:';
alter system set log_archive_duplex_dest='LOCATION=R:'
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16018: cannot use LOG_ARCHIVE_DUPLEX_DEST with LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST
Again dont use LOCATION in LOG_ARCHIVE_DUPLEX_DEST
>
I don't want to change DB_RECOVERY_FILE_DEST.
So I assume I need to follow hint no.1 but why is this?:
SYS@proton2x1> alter system set log_archive_dest_2='LOCATION=R:\archive';
alter system set log_archive_dest_2='LOCATION=R:\archive'
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16032: parameter LOG_ARCHIVE_DEST_2 destination string cannot be translated
ORA-09291: sksachk: invalid device specified for archive destination
OSD-04018: Unable to access the specified directory or device.
O/S-Error: (OS 3) The system cannot find the path specified.See my example:
SQL> alter system set log_archive_dest_1='LOCATION=D:\app\rnagi\archive' scope=spfile;
System altered.
SQL> alter system set log_archive_dest_2='LOCATION=D:\app\rnagi\archive2' scope=spfile;
System altered.Or use
SQL> alter system set log_archive_dest='D:\app\rnagi\archive' scope=spfile;
System altered.
SQL> alter system set log_archive_duplex_dest='D:\app\rnagi\archive2' scope=spfile;
System altered.

Similar Messages

  • How to delete archive log files from ASM through Grid Control

    Hi
    Anybody suggest me how to delete archive log files from ASM through Grid Control.
    Thanks

    It is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
    In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • How to delete archive log on standby site

    hi
    i configured dataguard on 10g. could anyone suggest how to delete archived log on standby site..

    Hi,
    There is no automatic feature out-of-the-box but you have the following views:
    1) Shows archive logs transfered:
    select sequence#, first_time, next_time from v$archived_log order by sequence#;
    2) Shows archive logs applied:
    select sequence#, archived, applied from v$archived_log order by sequence#;
    If you see your archivelogs applied you can safely remove archive log files from your disk. It is your decision if you keep or delete them completely.

  • How to delete archive log by RMAN.

    Hi All,
    How to delete archive log by RMAN and what is the difference between
    delete all input & all delete input in RMAN backup.

    plus archivelog all delete inputYou get an error on the syntax.
    "PLUS ARCHIVELOG" does not allow the "ALL" keyword.
    (See "backupSpecOperand" in the RMAN Documentation of the BACKUP command syntax).
    However, "DELETE INPUT" allows the optional "ALL" keyword as in "DELETE ALL INPUT" to delete from all archivelog destinations.
    I guess that you have confused the "ALL" keyword in "BACKUP ARCHIVELOG" as being possible in "BACKUP .. PLUS ARCHIVELOG".
    "ALL" is allowed in "BACKUP ARCHIVELOG" but not in "BACKUP .. PLUS ARCHIVELOG".
    Hemant K Chitale

  • RMAN9I HOW TO RESTORE ARCHIVE LOGS WITH LIMITED DISK SPACE

    제품 : RMAN
    작성날짜 : 2002-12-09
    RMAN9I HOW TO RESTORE ARCHIVE LOGS WITH LIMITED DISK SPACE
    ==========================================================
    PURPOSE
    이 자료는 Oracle 9.2 이상의 RMAN에서 사용 가능한 MAXSIZE 기능에 대하여
    설명할 것이다.
    How to restore archive logs with limited disk space
    Old Backup을 사용하여 RMAN으로 database를 recvoery할때, 모든 archived
    redo logfile들을 Restore할 destination의 disk space가 모자란 경우를 종종 만난다.
    이러한 경우 여러 개의 restore and recovery job으로 나누어 수행한다.
    즉, 첫 번째 restore and recovery job이 끝나면 archived redo logfile들을 지우고
    다음 적용될 것들을 restore한다. 그리고 다시 Recovery를 수행한다. 이러한 작업을
    원하는 시점까지 recovery를 하기위해 반복적으로 수행한다.
    Oracle 9iR2(9.2.0.x)부터 RMAN은 MAXSIZE option을 제공하는데 이것은 archive log
    file이 restore될 disk의 space를 control할 수 있게 해 준다.
    만약 disk space가 매우 제한적이라면, 즉 예를 들어 모든 archive log의 size 합보다
    disk free space가 적다면 MAXSIZE option을 사용하는 것은 매우 유용하다.
    이 OPTION이 기술되면 RMAN은 Media Manager에게 disk space 크기에 부합하는 만큼만
    archive log들을 restore하도록 한다. 부가적인 restore operation들은 restore된
    마지막 archive log가 적용될 때마다 발생한다.
    MAXSIZE option은 이러한 작업들을 하나의 rman job으로 처리하게 해 주고
    실수를 하지 않게 해 준다.
    아래는 MAXSIZE를 설명하기 위한 예제이며 총 6 단계로 구성되어 있다.
    STEP 1: Add data to the database to enforce log switches
    STEP 2: Backup the database and archive logs and delete the logs
    STEP 3: Add additional data to enforce new log switches
    STEP 4: Remove the data file and simulate a database crash
    STEP 5: Restore the data file from the backup
    STEP 6: Recover the database using MAXSIZE
    위 예제는 Unix와 Windows 모두에 적용될 수 있다.
    STEP 6 는 다음과 같은 조건으로 두 번 수행될 것이다.
    1) MAXSIZE가 archive log size보다 작은 경우:
    이 경우 RMAN-6558 Error message를 만나게 된다.
    그러므로 MAXSIZE를 archive log보다는 크게 설정해야한다.
    2) MAXSIZE가 archive log size보다 큰 경우:
    예를 들어 여러 개의 archive log를 포함할 수 있을 정도로 크게 설정하면
    restore/recovery는 user에게 transparent하게 수행되어진다.
    즉 archive log들은 restore된 후 applied되고 deleted되어 진다. 다시 새로운
    archive log들이 restore되어지고 applied된 후 deleted 되어 진다. 이러한 작업은
    recovery가 끝날 때까지 반복되어진다. 이러한 작업들이 진행되는 동안 RMAN은
    아무런 Message도 발생시키지 않는다.
    # Step 1: INSERT enough new data to generate log switches
    create table rman_tst (col1 varchar2 (10));
    begin
    for i in 1..30000 loop
    insert into rman_tst values(i,'test');
    commit;
    end loop;
    end;
    # Step 2: BACKUP the database and the archive logs automatically
    # and then delete the input
    run {
    backup database format='/web01/usupport/krosenme/admin/backups/db_%d%s%t'
    plus archivelog format='/web01/usupport/krosenme/admin/backups/arch_%d%s%t'
    delete input;
    # Step 3: INSERT enough new data to generate new log switches
    begin
    for i in 1..30000 loop
    insert into rman_tst values(i,'test');
    commit;
    end loop;
    end;
    # Step 4: REMOVE users01.dbf file and crash the database
    mv users01.dbf users01.org
    shutdown abort
    # Restore is now needed as the data file is deleted. The backup was
    # taken before the new data was added to it, thus archive logs are
    # needed to bring the database up to date
    # Step 5: RESTORE the data file from the full backup
    run {
    restore datafile '/web01/usupport/krosenme/oradata/kro_920/users01.dbf';
    # Step 6: RECOVER
    run {
    recover database delete archivelog maxsize 10 K;
    # This will fail with RMAN-6558 as the archived log has a size of 16 KB,
    # which is bigger than MAXSIZE limit of 10 KB. So the error is expected
    # and MAXSIZE works as designed.
    # Now rerunning STEP 6: but with MAXSIZE 50 K
    run {
    recover database delete archivelog maxsize 50 K;
    RELATED DOCUMENTS
    Recovery Manager Reference, Release 2 (9.2)

    cold backup means offline backup, you shut database normally and copy datafiles to another location.
    i think operating system does not matter that much but it is RedHat Linux Enterprise Server.
    backing up archivelogs whith rman script which is:
    run {
    allocate channel c1 type disk format '$BKUPLOC/arch_%d_%u_%s_%p.bkp';
    change archivelog all validate;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    backup archivelog time between 'SYSDATE - (30*60/(60*60*24))' and 'sysdate';
    release channel c1;
    so here is the details.
    1. because everything is lost, we restored all files(datafiles, controlfiles, redologs etc) from offline backup meaning copied all files from another location to corresponding location.
    2. want to apply archive logs which were created after cold backup till disk failure and we have these archive logs with backups which were taken by rman.
    So
    first of all, we want to register these archive log rman backups(because these backup information does not exist in restored controlfile)
    and then restore them and then apply them.
    we need rman commands to register these backups and restore them.
    Regards,
    Kamil

  • How to read ARCHIVE LOGS.

    Is there any easier way to read 9i archive logs. I know the logminer has this capability. But it is very complicated. Is there any other way, if not can some basic steps how to use logminer.
    Thanks

    Hi,
    Here you have some links that will help you!
    Please take a look on the following links:
    - [Using LogMiner to Analyze Redo Logs|http://download.oracle.com/docs/cd/B10500_01/server.920/a96521/logminer.htm]
    - [Mining for Clues  - By Arup Nanda|http://www.oracle.com/technology/oramag/oracle/05-jul/o45dba.html]
    - [Steps and examples to use logminer for Remote mining |http://arjudba.blogspot.com/2008/08/steps-and-examples-to-use-logminer-for.html]
    Cheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • How to remove archive log files from ASM managed 11g R2 database?

    Hi,
    I am planning to automate deletion of older archive log files from my 11g R2 Production instance which is ASM managed.
    Also want to remove the archive log files files from standby database.
    Please provide your inputs on how can I remove the older archive log files.
    Regards,
    Avinash

    Greetings
    Did you check RMAN,
    RMAN>show all;
    CONFIGURE RETENTION POLICY . . . .
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-10';
    This will be part of your RMAN Backup scripts/process
    Check the urls below:
    11gRel2:
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV90079
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV89634
    10g:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm#sthref45
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1008093
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/maint003.htm#sthref712
    Regards & Thanks
    BN

  • How to remove archive log files using Enterprise Manger

    Hi,
    I took backup of the archive log files and i deleted those files at OS level but it is not reflecting in the Enterprise Manager it is showing the same. Can any one help in how to delete the archive log files by using Enterprise Manger.
    version 10.2.0.1.0
    any help is appreciated.
    Regards,
    Ashraf

    I have the same problem. I have 10gr1 and 10gr2 on different servers. On 10gr1, under administration/manage current backup/image, I can see archivelog files, and can mange them. But on 10gr2, the image doesn't show archivelog files. I can only remove them using rman. I wonder if it's because the different design on 10gr2 or I missed something when setup the backup?

  • Finding the order of archive logs in RAC to NON-RAC manual cloning

    Hi,
    I am in the process of automating a RAC to NON-RAC clone using traditional method [ not using RMAN ].
    Here are the steps:
    On Source:
    Record the sequence number and thread of the instance
    put the database in begin backup mode
    copy the files
    disable the backup mode
    record the sequence number and thread of the instance
    prepare the order of the archive logs which will be needed for recovery ==> Here is where I need help
    On Target:
    Restore the backup
    Issue recovery using the order of archive logs identified ==> Failing as order is not correct.
    I am finding the archive logs based on FIRST_TIME# and preparing the order which is not correct. I think i should be using SCN but not sure what should be the criteria.
    Could you please let me know on what basis we can find the order of the archive logs which will be asked during the recovery ?
    Your quick response is appreciated. Thanks in advance for your help.
    Thanks
    Suneel

    Yes, When we execute recover database using backup controlfile until cancel, will prompt for the redo log sequences.
    But as i mentioned before, I am trying script everything and cannot manually enter the sequence numbers required. I need to know the archives and thread it is going to ask [ in what order as well ] so that recovery command can be scripted in shell.
    Please let me know if there is a away to find the order of archive logs which needs to be applied to recover [ if this is a NON-RAC, we can simply go with the sequence numbers but since it is a RAC, i should know the thread number as well ].
    Thanks

  • How to delete archive logs on the standby database....in 9i

    Hello,
    We are planning to setup a data guard (Maximum performance configuration ) between two Oracle 9i databases on two different servers.
    The archive logs on the primary servers are deleted via a RMAN job bases on a policy , just wondering how I should delete the archive logs that are shipped to the standby.
    Is putting a cron job on the standby to delete archive logs that are say 2 days old the proper approach or is there a built in data guard option that would some how allow archive logs that are no longer needed or are two days old deleted automatically.
    thanks,
    C.

    We are planning to setup a data guard (Maximum performance configuration ) between two Oracle 9i databases on two different servers.
    The archive logs on the primary servers are deleted via a RMAN job bases on a policy , just wondering how I should delete the archive logs that are shipped to the standby.
    Is putting a cron job on the standby to delete archive logs that are say 2 days old the proper approach or is there a built in data guard option that would some how allow archive logs that are no longer needed or are two days old deleted automatically.From 10g there is option to purge on deletion policy when archives were applied. Check this note.
    *Configure RMAN to purge archivelogs after applied on standby [ID 728053.1]*
    Still it is on 9i, So you need to schedule RMAN job or Shell script file to delete archives.
    Before deleting archives
    1) you need to check is all the archives are applied or not
    2) then you can remove all the archives completed before 'sysdate-2';
    RMAN> delete archvielog all completed before 'sysdate-2';
    As per your requirement.

  • How to exam archive logs

    System filled up archive-logs disk unexpectedly. This may caused by some unknown application process. How can I tracking this?

    Hi James:
    You better find out which application fills up the archive log destination "unexpectedly". You should also write a script to monitor the archive log destination. If its usage reaches to a certain percentage, says 80%, then kicks off a backup process to backup the archive logs.

  • HELP....How to delete archive log from v$archived_log table...

    Hi All
    Our prod database was running in Archive log mode and now it is in NO Archive log mode. I deleted all archive logs from the disk but I can still see them in v$archived_log table. How do I delete them from this table.
    Environment is Oracle8i(8.1.7) running on Windows 2000 Advanced Server.
    Thank you
    Amit

    Hi,
    Recreating the controlfile is the only way to force a cleanup of all entries in v$archived_log.
    You can see information on Metalink Note:1012929.6
    Paolo

  • How to delete archived log file in rman

    Hi friends,
    I got a series list of archived log validation failed by crosscheck.
    How can I delete these files to release space?
    Thanks for help!
    Jimmy

    user589812 wrote:
    Thanks for your help!
    RMAN> report obsolete;
    RMAN> DELETE OBSOLETE;
    these twon way does not work. the fail backup is still in backup report by EM
    How do I get a backup set number?
    JIm
    Edited by: user589812 on Nov 17, 2008 2:52 PMDELETE OBSOLETE deletes the backups that are no longer needed to meet the recovery policy.
    DELETE EXPIRED deletes backups that are found (through a CROSSCHECK) to no longer exist - usually because the files were deleted outside of rman.
    Documentation is at tahiti.oracle.com

  • How to practice "Archived log sequences loss- Block corruptions recovery"

    Hello,
    Prepare and test a recovery scenarios
    - System Tablespace loss
    - Online Redolog loss
    - Controlfile loss
    - Data Tablespace loss
    - Single/multiple datafile loss
    - Archived log sequences loss- Block corruptions recovery
    - Total loss (database)
    - Total loss (server = database/software/parameter files)
    11g on windows
    I am practicing my rman recovery and found this list of recovery scenarios. I have completed all scenarios
    besides "Archived log sequences loss- Block corruptions recovery"
    How do I break the database for the snenario "Archived log sequences loss- Block corruptions recovery"?
    Do I delete the acr.001 files in directory I:\oracle\product\11.1.0\db_1\RDBMS? Then recovery as far forward as I can?
    thanks for your help.

    thanks for the tips
    11g on windows 2003
    I broke the database like this:
    rman backup
    shutdown immediate;
    deleted datafile 5
    delete most recent archivelogs seq 5 and 6;
    recovered like this:
    startup mount;
    restore datafile 5;
    recover datafile 5;
    alter database open;
    This does not seem correct? Did this also apply my archivelogs seq 5 and 6? Should I also do a point in time recovery?
    Should I also run this?
    run (set until sequence 6 thread 1; restore database; recover database;)
    thanks for any help

  • How to delete archive log entries from catalog?

    Some old, not needed archive logs are deleted from disk using OS commands but RMAN catalog still lists them.
    How can I get rid of them in RMAN?

    First mark them expired
    crosscheck archivelog all;then delete them from the RMAN catalog
    delete expired archivelog all;Cheers

Maybe you are looking for