Archiving of redo group completion trigger

Hi
I am using Oracle 11.2 64bit
Is there any trigger when a group of redo log is archived (the archiving process has finished)?
Regards,
Groxy

What i want to achive is a copy archivelogs to another remote destiantion which is not 100% avaialale.
So instead of firing the script from cron. I would like to issue a script after archiving is complete
The script will copy -u the archivelog directory
I know i can use log_archive_dest parameters but this will write (to all destinations) the current archived redo. In case the destination was not avaialble some moment ago, the previous archivelog(s) will not be copied using that method.
Groxy

Similar Messages

  • How to change Redo group from archive to noarchive

    Hi guys i am having a dummy database it's in noarchive mode.
    but i have added one more redo group (earlier there were two).
    now it shows that this group is in archive mode.
    how to change it.

    What is the query you use?Can I guess ?
    SYS@db11 > select GROUP#, STATUS, ARCHIVED from v$log;
        GROUP# STATUS           ARC
             1 INACTIVE         NO
             2 INACTIVE         NO
             3 CURRENT          NO
    SYS@db11 > alter database add logfile group 4
      2  '/home/oracle/base/oradata/db11/redo04.log' size 5M;
    Database altered.
    SYS@db11 > select GROUP#, STATUS, ARCHIVED from v$log;
        GROUP# STATUS           ARC
             1 INACTIVE         NO
             2 INACTIVE         NO
             3 CURRENT          NO
             4 UNUSED           YES
    SYS@db11 > alter system switch logfile;
    System altered.
    SYS@db11 > /
    System altered.
    SYS@db11 > select GROUP#, STATUS, ARCHIVED from v$log;
        GROUP# STATUS           ARC
             1 CURRENT          NO
             2 INACTIVE         NO
             3 ACTIVE           NO
             4 ACTIVE           NO
    SYS@db11 >

  • How do I manually archive 1 redo log at a time?

    The database is configured in archive mode, but automatic archiving is turned off.
    For both Oracle 901 and 920 on Windows, when I try to manually archive a single redo log, the database
    archives as many logs as it can up to the log just before the current log:
    For example:
    SQL> select * from v$log order by sequence#;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
    1 1 14 104857600 1 NO INACTIVE 424246 19-JAN-05
    2 1 15 104857600 1 NO INACTIVE 425087 28-MAR-05
    3 1 16 104857600 1 NO INACTIVE 425088 28-MAR-05
    4 1 17 512000 1 NO INACTIVE 425092 28-MAR-05
    5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
    6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
    6 rows selected.
    SQL> alter system archive log next;
    System altered.
    SQL> select * from v$log order by sequence#;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
    1 1 14 104857600 1 YES INACTIVE 424246 19-JAN-05
    2 1 15 104857600 1 YES INACTIVE 425087 28-MAR-05
    3 1 16 104857600 1 YES INACTIVE 425088 28-MAR-05
    4 1 17 512000 1 YES INACTIVE 425092 28-MAR-05
    5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
    6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
    See - instead of only 1 log being archive, 4 of them were. Oracle behaves the same way if I use the "sequence" option:
    SQL> select * from v$log order by sequence#;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
    1 1 14 104857600 1 NO INACTIVE 424246 19-JAN-05
    2 1 15 104857600 1 NO INACTIVE 425087 28-MAR-05
    3 1 16 104857600 1 NO INACTIVE 425088 28-MAR-05
    4 1 17 512000 1 NO INACTIVE 425092 28-MAR-05
    5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
    6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
    6 rows selected.
    SQL> alter system archive log next;
    System altered.
    SQL> select * from v$log order by sequence#;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
    1 1 14 104857600 1 YES INACTIVE 424246 19-JAN-05
    2 1 15 104857600 1 YES INACTIVE 425087 28-MAR-05
    3 1 16 104857600 1 YES INACTIVE 425088 28-MAR-05
    4 1 17 512000 1 YES INACTIVE 425092 28-MAR-05
    5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
    6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
    Is there some default system configuration property telling Oracle to archive as many logs as it can?
    Thanks,
    DGR

    Thanks Yoann (and Syed Jaffar Jaffar Hussain too),
    but I don't have a problem finding the group to archive or executing the alter system archive log command.
    My problem is that Oracle doesn't work as I expect it.
    This comes from the Oracle 9.2 online doc:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_23a.htm#2053642
    "Specify SEQUENCE to manually archive the online redo log file group identified by the log sequence number integer in the specified thread."
    This implies that Oracle will only archive the log group identified by the log sequence number I specify in the alter system archive log sequence statement. However, Oracle is archiving almost all of the log groups (see my first post for an example).
    This appears to be a bug, unless there is some other system parameter that is configured (by default) to allow Oracle to archive as many log groups as possible.
    As to the reason why - it is an application requirement. The Oracle db must be in archive mode, automatic archiving must be disabled and the application must control online redo log archiving.
    DGR

  • Problem while archiving the redo Log

    Hi all,
    I m having few issues in my server...
    I get the following error in the alert log of oracle..
    There are many errors
    1) No space left on device
    2) ARC0: I/O error 19502 archiving log 1 to
    '/oracle/admin/SNM/arch/arch_1_393_668727286.arc'
    ARCH: Archival stopped, error occurred. Will continue retrying
    3) ORA-16014: log 1 sequence# 393 not archive*d, no available destinations*
    Also please find the v$log file query
    SQL> select * from v$log;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
    FIRST_CHANGE# FIRST_TIM
    1 1 405 1073741824 1 NO CURRENT
    60275455 20-OCT-09
    2 1 403 1073741824 1 NO INACTIVE
    59987366 19-OCT-09
    3 1 404 1073741824 1 NO INACTIVE
    60125083 20-OCT-09
    Also the diskspace is almost 97%.
    Can anyone let me know whether archival of redo log files is causing the issue here?
    If so if i stop the archival of logs ,will it solve the problem?
    Can anyone help me on this?
    Mon Oct 19 09:54:39 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
    ORA-19502: write error on file
    "/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
    577537 (blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    SVR4 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    ORA-19502: write error on file
    "/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
    559105 (blocksize=512)
    Mon Oct 19 09:54:39 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
    ORA-19502: write error on file
    "/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
    577537 (blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    SVR4 Error: 28: No space left on device
    Additional information: -1
    Additional information: 1048576
    ORA-19502: write error on file
    *"/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno*
    *559105 (blocksize=512)*
    ARC0: I/O error 19502 archiving log 1 to
    '/oracle/admin/SNM/arch/arch_1_393_668727286.arc'
    ARCH: Archival stopped, error occurred. Will continue retrying
    Mon Oct 19 09:54:40 2009
    ORACLE Instance SNM - Archival Error
    Mon Oct 19 09:54:40 2009
    ORA-16038: log 1 sequence# 393 cannot be archived
    ORA-19502: write error on file "", blockno (blocksize=)
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 09:54:40 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
    ORA-16038: log 1 sequence# 393 cannot be archived
    ORA-19502: write error on file "", blockno (blocksize=)
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 09:54:40 2009
    ARCH: Archival stopped, error occurred. Will continue retrying
    Mon Oct 19 09:54:40 2009
    ORACLE Instance SNM - Archival Error
    Mon Oct 19 09:54:40 2009
    ORA-16014: log 1 sequence# 393 not archived, no available destinations
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 09:54:40 2009
    Errors in file /oracle/admin/SNM/bdump/snm_arc1_23833.trc:
    ORA-16014: log 1 sequence# 393 not archive*d, no available destinations*
    ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
    Mon Oct 19 10:00:16 2009
    ARC0: Encountered disk I/O error 19502
    Mon Oct 19 10:00:16 2009
    ARC0: Closing local archive destination LOG_ARCHIVE_DEST_1:
    '/oracle/admin/SNM/arch/arch_1_393_668727286.arc' (error
    19502)
    (SNM)

    yes it is the production server.
    Also the arch folder contains 2 GB file - arc file....
    Does disable of archival will solve the issue?
    I am try to clear the space or move to some other location..But the thing is my application files is of 3 to 4 GB.remaining thing is of dbf files.
    6564 drwxr-x--- 2 oracle oinstall 512 Oct 21 2008 .
    6563 drwxr-x--- 3 oracle oinstall 512 Oct 21 2008 ..
    6568 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control01.ctl
    6569 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control02.ctl
    6570 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control03.ctl
    9283 -rw-r----- 1 oracle oinstall 5128192 Sep 30 10:21 mfxpima.dbf
    6600 -rw-r----- 1 oracle oinstall 17179877376 Sep 30 11:50 muse0.dbf
    6572 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 08:10 redo01.log
    6573 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 10:16 redo02.log
    6574 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 11:58 redo03.log
    6578 -rw-r----- 1 oracle oinstall 19293806592 Sep 30 11:58 sysaux01.dbf
    6576 -rw-r----- 1 oracle oinstall 1698701312 Sep 30 11:56 system01.dbf
    6579 -rw-r----- 1 oracle oinstall 2147491840 Sep 30 11:04 temp01.dbf
    6577 -rw-r----- 1 oracle oinstall 4084211712 Sep 30 11:58 undotbs01.dbf
    6580 -rw-r----- 1 oracle oinstall 5251072 Sep 30 10:21 users01.dbf
    What as to be done....in this case....
    Help me out...
    I have no other option ....
    SRinivasan

  • Archiver is unable to archive a redo log because the output device is full

    Dear Experts,
    When I logged to EM of my DB 11g R2. I found the following:
    - Database Instance Status : Down
    - Details          
    The instance has been terminated by a database process because of a fatal internal condition, or a critical background process was killed by the user.
    Archiver is unable to archive a redo log because the output device is full or unavailable.
    - Agent Connection to Instance
    Status: Failed
    Details: ORA-01034: ORACLE not available
    Thank you in advance for any help you provide
    Best Regards

    mahmoudrabie wrote:
    Thank you 919294
    I was root not oracle and when I switch to oracle (which is member of dba group), the I ran
    rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Mar 7 13:27:06 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database (not started)
    then as friends suggested
    RMAN> backup archivelog all delete input;
    Starting backup at 07-MAR-12
    using target database control file instead of recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 03/07/2012 13:28:00
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directorycheck the connection
    connected to target database (not started)*so first startup the databaseto mount and then perform the operation
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Manual archiving of redo log files....

    Hi ,
    If the database is running in NOARCHIVELOG mode , is it possible to archive the redo log files manually.... and how..????
    Note: I use Oracle 10g v.2
    Many thanks,
    Simon

    Having issued the command , i noticed that the USE_DB_RECOVERY_FILE_DEST is the destination of LOG_ARCHIVE_DEST_10:
    SQL> select dest_id,dest_name,status,destination from V$ARCHIVE_DEST;
       DEST_ID DEST_NAME                                                                        STATUS    DESTINATION
             1 LOG_ARCHIVE_DEST_1                                                               VALID     C:\oracle\product\10.2.0\flash_recovery_area\EPESY\ARCHIVELOG\
             2 LOG_ARCHIVE_DEST_2                                                               INACTIVE 
             3 LOG_ARCHIVE_DEST_3                                                               INACTIVE 
             4 LOG_ARCHIVE_DEST_4                                                               INACTIVE 
             5 LOG_ARCHIVE_DEST_5                                                               INACTIVE 
             6 LOG_ARCHIVE_DEST_6                                                               INACTIVE 
             7 LOG_ARCHIVE_DEST_7                                                               INACTIVE 
             8 LOG_ARCHIVE_DEST_8                                                               INACTIVE 
             9 LOG_ARCHIVE_DEST_9                                                               INACTIVE 
            10 LOG_ARCHIVE_DEST_10                                                              VALID     USE_DB_RECOVERY_FILE_DESTBut... i have set the LOG_ARCHIVE_DEST parameter not ...._10.
    How the system will point to the directory i've set in my previous alter system command...- when i use the archive log list???
    Many thanks,
    Simon

  • Redo group status

    Referring to the Redo Group management screen in Oracle 10g Enterprise Manager - what do the following status as regards to Redo Groups, mean:
    Active, Inactive, Current, Unused ?
    What's the difference between them, so I can have an idea of how much I can make them large, and how much groups should i have?

    See
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10755/dynviews_1126.htm#sthref3203

  • REDO GROUP addition

    I have oracle 11g Rac with two node system,
    I want to add one more redo group , as I have already 4 groups and each have three members
    If I run following query then How many members it will create to group 5
    alter database add logfile thread 1 group 5 size 200M

    Check this, hope it will help you.
    http://kb.dbatoolz.com/tp/3374.how_to_resize_and_multiplex_redo_group_members.html

  • Checkpoint not complete & more online redo groups

    Hi
    When i doing a import i found in alert log checkpoint not complete.I am planning to add 2 more groups.TO add online redolog groups & and to take affect in database,whether we need to shutdown the database and restart again.
    If i have to shutdown the db i have to restart the import again? or already inserted half no of records if i give ignore=y indexes=n whether the existing data in table and indexes will bypass?.I am importing 1 big table only already created indexes.
    With regards
    Ramya

    A shutdown is not required. The steps are detailed
    in the docs:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/onlineredo.htm#429
    Hope this helps.
    Kailash.

  • R3 job completion trigger a process chain to run on BW

    Hello,
    I was wondering how I can trigger a process chain to run on BW 3.5 after a SM37 job completes on R3?
    I have been searching the forums and the web, but I haven't found what I am looking for.
    Thanks,
    Nick

    Hello Pramod,
    I would need a more detailed suggestion to implement, but thanks for starting the discussion.
    I thought it would be as easy as this
    1. Create an event in BW
    2. Have a process chain that starts when that event is raised.
    Having implemented and successfully tested steps 1 and 2, the rest should be simple (I was able to raise the event on BW locally and the chain did run as expected)
    3. On R3, create a small ABAP program that calls the BP_EVENT_RAISED Function Module on R3.
    4. Pass that Function Module the following parameters
            A. My BW system name, and
            B. The event name that I created on my BW system
    5. Add that ABAP program to the end of the job on R3.
    It doesn't work though! The event i created on BW, doesn't seem to exist from R3's perspective.  I was hoping it was as easy as that.  Hopefully I am missing something simple, but so far R3 does not want to cause the event on BW to be raised.
    Thanks,
    Nick
    Edited by: Nick Bertz on Oct 13, 2008 12:19 PM
    Edited by: Nick Bertz on Oct 13, 2008 12:23 PM

  • Archiving smart mailbox not complete

    I am using Mail version 3.6 on my PowerMac G4 running 10.5.8.
    Archiving a smart mailbox with more than 2200 mails results in a mbox file with only slightly more than 800 mails. I haven't figured out yet what the 800 saved mails have in common, compared to the total of 2200.  The smart mailbox has 2 rules, one searching for a single word in the message and another rule to include all senders in an address book mail group.
    Did anyone experience something similar and what found out what the cause was?
    With kind regards,
    Gerard

    I must admit that I was surprised as I suspect many would like to archive in this way - it may be a bug.
    I have found a workaround for you.
    Create a new mailbox
    Highlight all items in smart box - cmd A
    Copy to new mailbox - right click on highlighted mails and select new mailbox
    Archive new mailbox
    Drag appears to work for 3 but do a test run first.
    I hope this helps

  • Archive from redo log

    1. How can i read the DML's in the redo log?
    I need the statements from the redo log like we get through LOGMINOR in SQL_REDO column.
    2. How to create the archive log file from Redo logs through a command?
    Means i want to clean the Redo log and want to create archive log so that i can use those archive log in LOGMINOR.
    Thanks,

    Hemant K Chitale wrote:You can find out which row it is and what are the contents of that row currently in your database by querying
    Once you get the values, you'd have to work backwards (or forwards) to figure out what values you need to set in the other database.Actually i also have other tables then how i can consider perticular column name and search that?I could have other statements.
    update "TEST2" set "LEADCOUNTSTDFAILED" = '234' where "LEADCOUNTSTDFAILED" = '233' and ROWID = 'AAAQDRAAKAAAUSdAAs';
    Then how i can get it.
    Also that view conists of thousands of DML's.
    Thanks,

  • Can't open an archived address book group after emailed

    The only way i know to email a group in the address book is to archive it. How do you open it after you receive it thru email.

    You don't need to archive it. For one thing, an archive will replace the entire contents of your address book when you double-click on it.
    You only have to drag the group to an open email message or onto the Mail icon in the dock. You can also drag it to a folder on the mac to create a vCard of the group.

  • How to add members in REDO group in RAC

    Hi All
    I need to know the syntax to add members in redolog group in RAC database. Currently i have 4 groups (2 belonging to each thread) and one member in each group. I want to multiplex.
    Thanks in advance

    Check out:
    http://www.lc.leidenuniv.nl/awcourse/oracle/rac.920/a96600/mancrea.htm

  • Mac OS X Best Location to Archive Disabled Font Groups Stored on Drive?

    I am currently building a Mac OS X system and am now installing 3rd party applications. I've installed the CS6 Master Collection and other applications, but wanted to know what would be the most logical place to store various groups of fonts from 3rd parties? I have perhaps 7,000 fonts from various publishers.
    I've read this dated Adobe guide (it refers to OS Classic):
    http://www.adobe.com/africa/type/topics/FontsonMacOSX.pdf
    I've also read several other guides online.
    I am looking for the best location to store folders full of fonts from various publishers. Most of the fonts are not going to be in use, but I want to store them in one central place.
    Adding too many fonts in the default font folders will slow down the system after a certain point; however, does this only apply to enabled fonts?
    If I were to install a folder of 1,000 fonts inside the hard drive's main font folder (HD/Library/Fonts) using Font Book, but disable the entire collection will that still slow down the system just because they are in the main fonts folder?
    I am wanting to only enable individual fonts as they are needed from a vendor's collection as needed for individual projects.
    Or perhaps a better location would be HD/Fonts
    I've also thought of installing them in a special folder inside my user's folder as my Mac only has one account such as this:
    ~/Documents/Fonts/Publisher1
    ~/Documents/Fonts/Publisher2
    ~/Documents/Fonts/Publisher3
    ~/Documents/Fonts/Publisher4

    A user burned DVD+R DL version of any version of Mac OS X is asking for trouble without a backup. Technical reasons alone can cause problems. Apple uses commercial grade optical discs when selling optical discs to the general public. These are hard to come by, and have properties consumer grade discs don't have, such as DVD+R DL discs that are able to be read on original Apple DVD-R only drives. Secondly when you make a copy, it rarely if ever is as good as the original because optical drives face the same type of sector errors that hard drives do. Third, if the drive you say is broken is the one that originally made the copy, likely it was already getting broke at the time the copy was made, meaning the copy you made was already subject to impurities of being on a broken or dirty drive. You should have tested the copy on a backed up system regardless, before trusting it to your system after the drive was definitively broke. Now for target disc mode installs, you have other variables you should be aware of:
    http://discussions.apple.com/click.jspa?searchID=-1&messageID=6031855
    We are of course assuming you have license to make that copy. If you aren't, none of the advise should be taken here, because terms of use forbid us discussing illegal activities on the right hand side of this page.

Maybe you are looking for