Archive log format in ASM

Hi Folks,
Am copying the archive logs from ASM instance using the below command...
allocate channel t1 device type disk format '/backup/today/today/%h_%e.arc'; according to ML id:293234.1 %h is the thread number and %e is the sequence number...
What is the value for resetlogs identifier... %r doesnt works in archive log copy....if i include %r it gives as below..
output filename=/backup/today/today/1_%r_10572.arc recid=21022 stamp=688060687
what is the exact value to be passed?
thanks
baskar.l

Hi..
Go through the below link which shows all the format strings available in RMAN
[http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta033.htm#RCMRF195]

Similar Messages

  • List archive log pagewise in asm

    How to view archived log pagewise in asm?
    In RAC , do I need to delete archived log thread from second node or after RMAN backup if I use following comand would delete?
    delete force noprompt archivelog all completed before 'sysdate-15';
    Want to keep 15 days logs.
    ls -tl |more not work
    thanks

    Hi..
    Go through the below link which shows all the format strings available in RMAN
    [http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta033.htm#RCMRF195]

  • 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/

  • Archive Log Format Issues

    Hi DBAs,
    I have 2 Archive destination. My archive log format is ARC%S_%R.%T
    But In my 1 location E:\app\Administrator\product\11.1.0\db_1\RDBMS format shows ARC00025_0769191639.001
    2 location shows E:\app\Administrator\flash_recovery_area\BASKAR\ARCHIVELOG\2011_12_08\O1_MF_1_25_7G15PVYX_.ARC
    SQL> select destination from v$archive_dest;
    DESTINATION
    E:\app\Administrator\product\11.1.0\db_1\RDBMS
    USE_DB_RECOVERY_FILE_DEST
    My Question is that, I am using this format only ARC%S_%R.%T
    but it shows different format in each location. May i know what 's the reason behind this?
    Thanks in Advance

    If you are using other archive destination other than FRA it will creates as per LOG_ARCHIVE_FORMAT,
    and the FRA configured then the archive format for FRA is O1_MF_1_25_7G15PVYX_.ARC
    from your query it is clear that there are two destinations are configured, So if you dont want *.ARC* files, you have to disable FRA.
    But recommended to use FRA easy to manage.

  • 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

  • Archive log format

    Hi,
    I have given log_archive_format = %t_%s.dbf in my init.ora file.
    But when I am doing recovery it asks for the archive format like arch1_47677.dbf appending arch at start of the string. How I can get the format as 1_47677.dbf.
    Regards,
    Mushir

    Hi,
    My current format on production is below.
    log_archive_format string %t_%s.dbf
    It is creating archive logs as 1_47673.dbf format.
    I am cloning the database on other testnode using recovery and keep the log_archive_format same as production on test box also. But in recovery it is asking the format as arch1_47673.dbf not 1_47673.dbf.
    Regards,
    Mushir

  • Arch log format in asm

    I am on single node asm with 10gr3. I changed the arch log format to %t_%s_%r.arc but the files are still getting created as thread_1_seq_90.459.653928775
    I have bounced the db already.
    SQL> show parameter archive_fo
    NAME TYPE VALUE
    log_archive_format string %t_%s_%r.arc
    SQL>
    What else to be setup in order to correct the format?
    Thanks.

    I believe what you are observing is Alias created by Oracle.
    Check logs available at your destination defined by "log_archive_dest_1"
    e.g In my case it is +DATA/test
    ASMCMD>cd DATA/test
    ASMCMD> ls
    1_7_653875700.dbf
    2_6_653875700.dbf
    Now I switch to directory storing alias
    ASMCMD>cd ARCHIVELOG
    ASMCMD>cd 2008_05_06
    ASMCMD>ls
    thread_1_seq_7.425.654030021
    thread_2_seq_6.363.654040811
    Is it clear?
    -Amit
    http://askoracledba.blogspot.com/

  • How to know the size of archived logs created under ASM

    I using Oracle 10g on Linux x86-64.
    I need to ship the archived logs(not the entire directory, only a few) from the Live database to the DR site, so I need an estimate of how much time it will take to ship them across the network ?
    Is there anyway I can know the size of a specific archived log file stored under ASM ?
    We can use du in ASM to know the size of directory but I dont find a command in ASM to get the size of a file ?

    No we are also switching logfiles manually , so the maximum size may not
    have reached.
    What I need is something like ls -l command in the Unix prompt which will
    help us to find the size of the file , a similar command to help us determine
    a size of file in ASM ?What is the objective?
    Anyways, you can get the size of an archived log file by quering V$ARCHIVED_LOG view.
    SQL> select sequence#, name, blocks*block_size from v$archived_log where sequence# > 180;
    SEQUENCE# NAME                                     BLOCKS*BLOCK_SIZE
           182 C:\MYDB\ARCH\ARC00182_0633314306.001             223053312
           181 C:\MYDB\ARCH\ARC00181_0633314306.001             264281600
           183 C:\MYDB\ARCH\ARC00183_0633314306.001              26209280
           184 C:\MYDB\ARCH\ARC00184_0633314306.001                  4096
           185 C:\MYDB\ARCH\ARC00185_0633314306.001                 16384
    SQL>

  • How to delete the standby archive log files in ASM?

    Hi Experts
    we have a realtime downstream replication that is using the a location in ASM to put the shipped logs files.
    set up by
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='LOCATION=+BOBOASM/NANPUT/standbyarchs/
    VALID_FOR=(STANDBY_LOGFILE,PRIMARY_ROLE)' Scope=BOTH;
    What shall i do to clean up those files ?
    Any procedure or script to do that?
    Thanks

    Hello Haggylein
    check this out, seems to work
    --- redologs used or not?
    ---- when purgeable we can delete it
    COLUMN CONSUMER_NAME HEADING 'Capture|Process|Name' FORMAT A15
    COLUMN NAME HEADING 'Archived Redo Log|File Name' FORMAT A25
    COLUMN FIRST_SCN HEADING 'First SCN' FORMAT 99999999999
    COLUMN NEXT_SCN HEADING 'Next SCN' FORMAT 99999999999
    COLUMN PURGEABLE HEADING 'Purgeable?' FORMAT A10
    SELECT r.CONSUMER_NAME,
    r.NAME,
    r.FIRST_SCN,
    r.NEXT_SCN,
    r.PURGEABLE
    FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
    WHERE r.CONSUMER_NAME = c.CAPTURE_NAME and PURGEABLE = 'YES';
    -- Now the script
    -- to be executed on the downstream database
    -- generate the list of logs to be purged and executed in a ksh script
    -- sqlplus "/as sysdba" @$HOME/bin/generate_list.sql
    SET NEWPAGE 0
    SET SPACE 0
    SET LINESIZE 150
    SET PAGESIZE 0
    SET TERMOUT OFF
    SET ECHO OFF
    SET FEEDBACK OFF
    SET HEADING OFF
    SET MARKUP HTML OFF SPOOL OFF
    spool list_purgeable_arch_redologs.ksh
    SELECT 'asmcmd ls ' || r.NAME
    FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
    WHERE r.CONSUMER_NAME = c.CAPTURE_NAME and PURGEABLE = 'YES';
    spool off
    exit
    # eventually we can call it from a script
    # !ksh
    # delete of the shipped redologs
    # to be performed on node 2
    # not to be used on
    $HOME/bin/export ORACLE_SID=+ASM2
    ./list_purgeable_arch_redologs.ksh
    exit

  • How to delete Archive log files in ASM?

    Hi,
    Env: Sun Solaris
    10.2.0.2.0 RAC with 2 node cluster
    using ASM
    I noticed that there are directories for ARCHIVELOG for every day.
    for example:
    2007_01_13/
    2007_01_29/
    ASMCMD> pwd
    +DG01/<<INSTANCENAME>>/ARCHIVELOG
    a) How to purge these files/directories automatically?
    b) We use RMAN for backup. Not sure if these directories are created by RMAN
    Thanks

    Natrajan,
    Since I don't remember what exactly I did which caused stopping those folder from being created, this is what I would try.
    You have mentioned that these folder are being created at
    "+DG01/<<INSTANCENAME>>/ARCHIVELOG" in your first post. Is this the same location what you set at init/spfile.ora ?
    "*.log_archive_dest_1='LOCATION=+<<DISKNAME?>/<<DBNAEM>>/'"
    If yes please change one of the nodes
    node1.log_arch_dest_1 to some where else which is not the current location. Then watch whether these directories being created at this location. If they are not created we have an answer what causing this folder creation.
    This is just a suggestion.
    Do you see the filename inside these foloder somewhat in this pattern
    "o1_mf_1_9403_2pxpr9dw_.arc"
    Let me know what you think? Again it is just a suggestion I really don't know the answer.
    Thanks
    Leo

  • RAC online and archive logs question

    Hello All,
    I setup a RAC database instances prod1 and prod2 (10.2.0.4). Datafiles and onlinelogs are on ASM.
    Does these results look good queried from two instances. I am kind of concerned about the Group3 that has the same name for both the members.
    Also archived logs are going to the ASM, is this a good practice. I was reading Oracle RMAN book and it mentioned archived logs go to local disk.
    Is it possible to archive to local disk for online that are on ASM? Please advice. Early reply appreciated.. Thanks San~
    PROD1 Instance
    SQL> select member from v$logfile;
    MEMBER
    +DATA/prod/onlinelog/group_2.264.706892209
    +FLASH/prod/onlinelog/group_2.259.706892211
    +DATA/prod/onlinelog/group_1.261.706892209
    +FLASH/prod/onlinelog/group_1.260.706892209
    +DATA/prod/onlinelog/group_3.258.706892235
    +FLASH/prod/onlinelog/group_3.258.706892235
    +DATA/prod/onlinelog/group_4.256.706892237
    +FLASH/prod/onlinelog/group_4.257.706892237
    8 rows selected.
    PROD2 Instance
    SQL> select member from v$logfile;
    MEMBER
    +DATA/prod/onlinelog/group_2.264.706892209
    +FLASH/prod/onlinelog/group_2.259.706892211
    +DATA/prod/onlinelog/group_1.261.706892209
    +FLASH/prod/onlinelog/group_1.260.706892209
    +DATA/prod/onlinelog/group_3.258.706892235
    +FLASH/prod/onlinelog/group_3.258.706892235
    +DATA/prod/onlinelog/group_4.256.706892237
    +FLASH/prod/onlinelog/group_4.257.706892237
    8 rows selected.
    ===
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 3
    Next log sequence to archive 4
    Current log sequence 4
    ====
    Thanks
    San

    Hi San,
    sannidhi wrote:
    Also archived logs are going to the ASM, is this a good practice. I was reading Oracle RMAN book and it mentioned archived logs go to local disk.
    Is it possible to archive to local disk for online that are on ASM? Please advice. Early reply appreciated.. Thanks San~
    It is recommend to store archived log files on ASM and on Shared disk, check your archive log format which suppose to represent uniqueness across all instances.
    Yes, technically it is possible to archive to local disk, but not recommended as if you loose local disk there will be gaps in the archived log files and also it increases the administration.
    Regards,
    Thota

  • Steps to Enable Archive log - RAC 10gR2(10.2.04)

    Hi
    Can anyone help on steps to enable archive log in RAC + ASM environment.
    db version- 10.2.0.4 , filesystem - ASM, Two nodes(db1,db2)
    Regards & Thanks

    you can follow below steps to configure your RAC database archive/noarchive log mode
    Putting the database into archive/noarchivelog mode in RAC environment:
    ========================================================================
    1. Set cluster_database=false for the instance.
    alter system set cluster_database=false scope=spfile sid='PROD1';
    2. Shutdown all the instances accessing the database.
    srvctl stop database -d prod
    3. Mount the database using the local instance.
    startup mount
    4. Enabling archiving / noarchiving
    alter database archivelog;
    OR
    alter database noarchivelog;
    5. Change the parameter cluster_database=true for the instance prod1.
    alter system set cluster_database=true scope=spfile sid='PROD1';
    6. Shutdown the local database.
    shutdown
    7. Bring up all the instances.
    srvctl start database -d prod

  • How does one name an Archive Log file in ARC%S_%R.%T format

    Hallo!I have been trying to enable Archive Log mode for the Oracle 10g database.
    In OEM,I went via the links Maintenance->Recovery Settings->Media Recovery
    There,a text box by the name Log Archive Filename Format requires one to name the Archive Log file in ARC%S_%R.%T format.
    I have tried several times to name the Archive log e.g ARC001_001.001 but when I shutdown and restart the database instance,the error below appears
    ORA-19905: log_archive_format must contain %s, %t and %r.
    This error has proved impossible to rectify and I am forced to uninstall then re-install Oracle 10g.
    I would like to have back-ups in archive log mode.Please give me the best way to name the Archive Log file i.e with an example name so that I can have online back-ups.
    Thanks.

    Hi,
    If you try to change the LOG_ARCHIVE_FORMAT to something other than the default %s,%t,%r, it will fail
    Perform as the below steps in order to enable archive log mode
    SQL>create pfile from spfile
    SQL>create pfile='c:\temp\init.ora' from spfile;
    SQL>created;
    SQL>shutdown immediate;
    edit the init.ora file by adding the following information
    *.LOG_ARCHIVE_DEST_1='LOCATION=C:\db\archive1'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.dbf'
    Start the DB with modified pfile.
    - Pavan Kumar N
    Edited by: Pavan Kumar on May 2, 2010 2:17 PM

  • Format archive log

    Hi All
    I am using the
    "backup as compressed backupset incremental level 0 database format '/backup/%d-%I-%U-LVL0' plus archivelog delete all input;" command
    Archive log goes to diffrent location that defined in "CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1" I want to create archive log backups in diffrent location
    How can I do this in same command ? could I type second format command for archivelogs ?
    Best Regards

    Hi,
    As ebrain mentioned, you can specify different locations for db and archivelogs in the same rman command.
    Here is my case.
    C:\downloads>rman target / nocatalog
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jun 16 15:12:15 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: TEST (DBID=1987145012)
    using target database control file instead of recovery catalog
    RMAN> backup as compressed backupset incremental level 0 database
    2> format 'c:\oracle\%U' plus archivelog format 'c:\oracle\admin\%D_%U.arc' delete all input;
    Starting backup at 16-JUN-09
    current log archived
    using channel ORA_DISK_1
    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=1 recid=1 stamp=689004392
    input archive log thread=1 sequence=2 recid=2 stamp=689176817
    input archive log thread=1 sequence=3 recid=3 stamp=689417731
    input archive log thread=1 sequence=4 recid=4 stamp=689594593
    input archive log thread=1 sequence=5 recid=5 stamp=689699030
    input archive log thread=1 sequence=6 recid=6 stamp=689699680
    input archive log thread=1 sequence=7 recid=7 stamp=689699745
    channel ORA_DISK_1: starting piece 1 at 16-JUN-09
    channel ORA_DISK_1: finished piece 1 at 16-JUN-09
    piece handle=C:\ORACLE\ADMIN\16_06KHNUT2_1_1.ARC tag=TAG20090616T151545 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:26
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_08\O1_MF_1_1_52TNS3CL_.ARC recid=1 stamp=6
    89004392
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_10\O1_MF_1_2_52ZX5CMK_.ARC recid=2 stamp=6
    89176817
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_13\O1_MF_1_3_5378FW00_.ARC recid=3 stamp=6
    89417731
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_15\O1_MF_1_4_53DO4V6T_.ARC recid=4 stamp=6
    89594593
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_16\O1_MF_1_5_53HV4O7B_.ARC recid=5 stamp=6
    89699030
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_16\O1_MF_1_6_53HVRZY8_.ARC recid=6 stamp=6
    89699680
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_16\O1_MF_1_7_53HVV0TC_.ARC recid=7 stamp=6
    89699745
    Finished backup at 16-JUN-09
    Starting backup at 16-JUN-09
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 16-JUN-09
    channel ORA_DISK_1: finished piece 1 at 16-JUN-09
    piece handle=C:\ORACLE\07KHNUTU_1_1 tag=TAG20090616T151614 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 16-JUN-09
    channel ORA_DISK_1: finished piece 1 at 16-JUN-09
    piece handle=C:\ORACLE\08KHNUVC_1_1 tag=TAG20090616T151614 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:06
    Finished backup at 16-JUN-09
    Starting backup at 16-JUN-09
    current log archived
    using channel ORA_DISK_1
    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=8 recid=8 stamp=689699826
    channel ORA_DISK_1: starting piece 1 at 16-JUN-09
    channel ORA_DISK_1: finished piece 1 at 16-JUN-09
    piece handle=C:\ORACLE\ADMIN\16_09KHNUVJ_1_1.ARC tag=TAG20090616T151707 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    channel ORA_DISK_1: deleting archive log(s)
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TEST\ARCHIVELOG\2009_06_16\O1_MF_1_8_53HVXLOH_.ARC recid=8 stamp=6
    89699826
    Finished backup at 16-JUN-09
    RMAN>
    Please check and update.
    Thanks,
    Nirmal

  • Is there anyway to read binary archive log file in a readable format

    please advise..
    thanks

    Logminer is tool provide by Oracle to turn content of archive logs and redo logs into useful information.
    Check here for more information
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm

Maybe you are looking for

  • HT204053 both my wife and I have iphones but only one apple ID

    we share my apple id for all apps and music, but she wants her own email (i gues now it would be an icloud account?) as I still have a .mac account, but she doesnt want to have to set up a new credit card, or loose the music and apps we already have.

  • Installation of Premiere trial has made my licensed version of Design & Web Premium revert to trial!

    As the subject line states, some time ago I downloaded a trial of Premiere CS6...using my personal Adobe ID. I used the software once and didn't touch it again. Today I went to launch Photoshop CS6 and was asked to log in to my Adobe account (the com

  • Change outgoing mail subject

    Hi Guru's, I need to change the subject of the outgoing standad mail template dynamically by the comlaint id which i get it through the refernce field of the mail. or is there any way through which the refernce id can be copied in the mail subject. T

  • OE Discount Lines

    Dear experts Some client I'm working on has a line based item discount which will appear in the invoice as a separate discount line. The discount is defined as a 'PBH'  - Price Break Headers However i can't find a way to differentiate this discount l

  • Multiple Document Interface in version 11

    Please could anyone help? Why isnt it possible to have Multiple Document Interface in version 11? Thanks