About delete archivelogs....

Hello everybody.
I have a Data Guard configuration.
DG resolved many gaps and then applied them on standby.
I did a backup of archived logs on primary database 'cause asm is growing and there is not enough space but at Rman 's log appears that many archive log can't be deleted 'cause are still needed by standby. When I go to standby those archive logs are applied.
How can I delete these archive log if they are applied on standby???
Thanks

hi,
read http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1007204
SELECT LOCAL.THREAD#, LOCAL.SEQUENCE# FROM (SELECT THREAD#, SEQUENCE# FROM V$ARCHIVED_LOG WHERE DEST_ID=1) LOCAL WHERE LOCAL.SEQUENCE# NOT IN (SELECT SEQUENCE# FROM V$ARCHIVED_LOG WHERE DEST_ID=2 AND THREAD# = LOCAL.THREAD#);
thanks
Edited by: CKPT on Nov 25, 2010 8:42 AM

Similar Messages

  • Delete archivelogs with rman

    I have this setting on one database: 10.2.0.3 on linux x86
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    When a backup occurs, i issue the following at the end:
    delete noprompt obsolete device type disk;
    Which delete an old backup and old archivelogs on the server.
    Situation: It happen rarely, but still, sometimes, I have to manualy delete archivelogs to make space.
    Here is what i do: Ensure that the archivelogs which I am about to delete are backed up.
    Then I issue the following Rman command:
    crosscheck archivelog all;
    delete noprompt expired archivelog all;
    which tells Rman that the archivelogs are not on the os anymore.
    Is there a way to delete archivelogs with rman or oracle, not manually on the os?
    note: i do not want to delete a backupset will doing so.
    This is temporary solution. More disk space is comming and new backup scenario will be in place for this database.

    Exists many ways to make this, as:
    DELETE NOPROMPT FORCE COPY OF ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-1';
    or
    BACKUP ARCHIVELOG all DELETE ALL INPUT;
    or
    BACKUP ARCHIVELOG all NOT BACKED UP 2 TIMES DELETE ALL INPUT;
    ...

  • How to delete archivelog with RMAN in the Primary and Standby database?

    Hello,
    I am working on Oracle 10gR2.
    My question is :
    How could I implement a automatized and secure way of:
    1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED to all my standby databases?
    2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
    Thanks a lot for your help!

    on 10G
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#CHDBEICE
    Coskan Gundogar
    http://coskan.wordpress.com

  • How do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    how do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    A bit vague as to what you intend, but the simple answer is to select all the files you want to delete then either drag to the Trash or CTRL- or RIGHT-click on the selection and choose Move to Trash from the contextual menu.

  • Question about delete statement

    I have question about delete statement...
    i am performing some simple delete statement against one table..but its taking so long..How can we check whether particular delete statements actually deleting records or not..?

    Is the associated select-statement returning rows or not?
    If yes -> delete is deleting
    If no -> delete is just using CPU-cycles
    To tune the delete-statement, you have to tune the corresponding select-statement. To tune the select-statement, you want to read the thread When your query takes too long ...

  • HT5043 So I was a little skeptical about deleting photos from my iPhone but I did. Shouldn't I be able to access them on iCloud? Because I can't find a way to view all my old photos that were backed up before I deleted them.

    So I was a little skeptical about deleting photos from my iPhone but I did. Shouldn't I be able to access them on iCloud? Because I can't find a way to view all my old photos that were backed up before I deleted them.

    No you can not access yoru photos on iCloud
    PhotoStream is a way to share photos between devices - it is not a way to backup photos or to view photos
    LN

  • Deleting Archivelog files.

    I'm trying to do some cleanup of my archivelog files that are over 30 days old that have been backed up using the command:
    delete archivelog until time 'sysdate -30';
    I get an ORA-15028 saying that a file is currently being accessed.
    My question is how can I find out what is trying to access a file that is close to 40 days old?

    Note the difference betweeen 'UNTIL TIME' and 'COMPLETED BEFORE'
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta008.htm#sthref121
    Is your "latest" Level 0 backup more than 30 days old ? Or do you have Retention Policy exceeding 30 days ?

  • RMAN in 10g database deletes archivelog files before standby receives them

    Hi all,
    We currently have problem with our Oracle 10gR1 database on Windows 2000 server in that the RMAN backups on the primary database delete archivelogs before the standby database can receive current and new archivelogs from primary database. What happens is that RMAN backs up the archivelogs and deletes them from disk before the archivelogs are sent to the standby. The standby then looks for these archivelogs on the primary but is unable to locate them. Whenever this happens, the production database (primary) hangs and we have to restart the instance on the primary. We have our Data Guard setup in maximum performance mode so this should not happen.
    As a short term fix, we have changed the backups to have RMAN backup and delete the archive logs 15 minutes older than current time so that the standby can receive the logs and not have problems. Besides this fix is there a long term solution to the problem or is it a bug in Oracle 10g? The issue came up after we upgraded from 9i to 10g and never saw it before in 9i with RMAN and Data Guard physical standby databases.
    Thanks
    Ben Prusinski, Oracle DBA

    thanks for answer...
    did you managed to make it 'work'?
    according to doc. if set on standby it should:
    <>
    Then, these files are eligible for deletion:
    Archived redo log files in the flash recovery area that
    were applied on the standby database.
    <>
    and this is to my understanding irespective to retention policy...unfortunately report obsolete does not report applied archived logs as eligable for deletion.
    How this works in your case?
    regards.
    goran

  • How to delete archivelogs in the STANDBY??

    Hello,
    I have a 10gR2 dataguard environment in which archivelogs are applied on the standby with a delay of 24 hours.
    Once the archivelogs are applied on the standby, I want to delete them.
    I don't have FRA (Flash Recovery Area).
    Could you tell me the best way to delete archivelogs on the standby, once they are applied on the standby database?
    Thanks

    Please see the follwoing link for a simmilar discussion:
    Applied archive log on standby

  • How to delete archivelog file at standby database

    Hi All,
    I'm running Physical Standby Database on ASM. At standby database, I can see all logs using asmcmd:
    ASMCMD> ls
    thread_1_seq_14.330.625772527
    thread_1_seq_15.346.625772527
    thread_1_seq_16.329.625772527
    thread_1_seq_17.327.625772559
    thread_1_seq_18.324.625772599
    thread_1_seq_19.341.625772367
    thread_1_seq_2.325.625772329
    But when I run RMAN to delete all these archivelogs, its give me error:
    oradr:/u01/app/oracle$rman rcvcat rman/rman@rman target /
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Jun 28 13:50:41 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: AIXDB (DBID=2438430915, not open)
    connected to recovery catalog database
    RMAN> delete archivelog all;
    Starting implicit crosscheck backup at 28-JUN-07:01:50:56
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 06/28/2007 13:50:56
    RMAN-12010: automatic channel allocation initialization failed
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
    RMAN> register database;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of register command at 06/28/2007 13:51:06
    RMAN-08040: full resync skipped, control file is not current or backup
    Even it is not registering it. So how to delete archivelog file at standby database.
    Thanks in Advance
    Rakesh

    This appears related to Bug 3298797 that was supposed to be fixed in 10.2.0.1. The workaround is to switch over to the standby, register the standby and then switch back.

  • Delete archivelogs on a manual standby with RMAN

    Hi,
    Using Oracle 10.2.0.3 Standard Edition, I created a manual physical standby database with a standby controlfile. FRA is configured on both servers.
    I want to use RMAN (recovery catalog in the controlfile) to delete archivelogs on the standby server using the following command:
    rman target /
    delete archivelog until time 'sysdate-5';
    The synchronisation is monitored on a daily basis so there's no risk to delete an archivelog that is not applied.
    My question: Is there a risk of corruption of the RMAN catalog (in the controlfile) in the event of a failover? I mean, will I be able to perform my RMAN backup as it becomes the primary?
    Thanks
    Christophe

    I don't see a problem with this statement. In 10g - even when a controlfile is missing backup information for whatever reason - backups can be recataloged.
    Werner

  • How do I go about deleting mulitple song files all at one time as opposed to deleting them all individually off of the latest version of iTunes

    How do I go about deleting mulitple song files all at one time as opposed to deleting them all individually off of the latest version of iTunes?
    Also I have tried authorizing my computer to play the songs I purchased off of iTunes when I had an iPhone 4 and it will not allow me to play them whatsoever. I now have an iPhone 5 and wish to load these past song purchases onto my new phone. How do I solve this issue?

    what you're missing to export multiple files is the batch export command available in the file menu or by control clicking on the items in the browser.  You can export multiple sequences/clips at full resolution with this.
    This has been available in fcp for a long long time.
    Wow, you are right.  Now that you mention it, I can't believe I never noticed that.  Thanks.
    Only if you have the 'Self-Contained' box checked.  Otherwise you'll end up with a reference movie.
    Correct.  That box is typically checked by default.  There are other default settings you could change that would not result in a full-quality version, but what I meant was hitting that option from the pull-down menu, then changing nothing and hitting ok.

  • I have just started using Time Machine. I was thinking about deleting old E-Mails on my Mac to clean. Does Time Machine back up the E-Mails , if so how can I find them in Time Machine ??

    I have just started using Time Machine. I was thinking about deleting old E-Mails on my Mac to clean. Does Time Machine back up the E-Mails , if so how can I find them in Time Machine ??

    If you back up your mac before deleting your emails, Time Machine should back up your e-mails.
    I never tried this so i'm not sure to find them in Time Machine. To browse in your backups simply click the Time Machine icon in your dock. In the right bar, you can select an backup. Than you can browse in finder, in your backkup.
    EDIT: Just browsed and CT above was right. This topic might help you:
    https://discussions.apple.com/message/20154303#20154303

  • Delete archivelogs using RMAN

    Hi,
    I usually delete archivelogs with RMAN with command as "DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE -1' if i have to clear the archivelogs to freeup space from the FRA.
    My question is if i delete the archivelogs-does this deletes the records from the catalog also(I think so) if backed up to tape.In that case the catalog doesn't have info for these archives even if they are on tapes,correct?
    So in case of recovery how can i restore them?
    Thanks
    Edited by: 822424 on May 15, 2011 7:28 PM

    The RESYNC CATALOG that may be part of your backup script or implicitly executed by a Backup would synchronise from the control file to the catalog schema (repository).
    I don't think that you can selectively decide what to not resync.
    You can query RC_ARCHIVEDLOG (the STATUS column) in the repository and in V$ARCHIVED_LOG (which is against the controlfile)
    i) before the DELETE executed by RMAN and
    ii) again after the next BACKUP which does a RESYNC to see if changes are reflected.
    Hemant K Chitale

  • Rman-08137 can't delete archivelog because the capture process need it

    When I use the rman utility to delete the old archivelog on the server ,It shows :Rman-08137 can't delete archivelog because the capture process need it .how to resolve the problem?

    It is likely that the "extract" process still requires those archive logs, as it is monitoring transactions that have not yet been "captured" and written out to a GoldenGate trail.
    Consider the case of doing the following: ggsci> add extract foo, tranlog, begin now
    After pressing "return" on that "add extract" command, any new transactions will be monitored by GoldenGate. Even if you never start extract foo, the GoldenGate + rman integration will keep those logs around. Note that this GG+rman integration is a relatively new feature, as of GG 11.1.1.1 => if "add extract foo" prints out "extract is registered", then you have this functionality.
    Another common "problem" is deleting "extract foo", but forgetting to "unregister" it. For example, to properly "delete" a registered "extract", one has to run "dblogin" first:
    ggsci> dblogin userid <userid> password <password>
    ggsci> delete extract foo
    However, if you just do the following, the extract is deleted, but not unregistered. Only a warning is printed.
    ggsci> delete extract foo
    <warning: to unregister, run the command "unregister...">
    So then one just has to follow the instructions in the warning:
    ggsci> dblogin ...
    ggsci> unregister extract foo logretention
    But what if you didn't know the name of the old extracts, or were not even aware if there were any existing registered extracts? You can run the following to find out if any exist:
    sqlplus> select count(*) from dba_capture;
    The actual extract name is not exactly available, but it can be inferred:
    sqlplus> select capture_name, capture_user from dba_capture;
    <blockquote>
    CAPTURE_NAME CAPTURE_USER
    ================ ==================
    OGG$_EORADF4026B1 GGS
    </blockquote>
    In the above case, my actual "capture" process was called "eora". All OGG processes will be prefixed by OGG in the "capture_name" field.
    Btw, you can disable this "logretention" feature by adding in a tranlog option in the param file,
    TRANLOGOPTIONS LOGRETENTION DISABLED
    Or just manually "unregister" the extract. (Not doing a "dblogin" before "add extract" should also work in theory... but it doesn't. The extract is still registered after startup. Not sure if that's a bug or a feature.)
    Cheers,
    -Michael

Maybe you are looking for

  • I can't open raw photos in Photoshop 5.1 coming from my nikon7100... is there a solution?

    When I try to open a raw file produced by my Nikon D70100, I get this message from my Photoshop CS5.1 "Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw".

  • Mixing Podcasts and Music

    I like to listen to music and podcasts randomly, ie all mixed together. Is there anyway this can be done? It used to work, several itunes versions ago, but the new version does not seem to support mixing and matching.

  • Ringtone changed since update. Can't get it back.

    I bought a ringtone, and it's still titled as the song.  However it's a standard ringtone since the update.  I have chosen and unchosen the tone to listen to it, but it's still not my purchased ringtone.  How do I get it back?

  • Remove unit in array

    Hello, In the attached VI, I am in trouble with Hz. How can I remove it? Thank Attachments: Fre.vi ‏6 KB

  • Can't open ipad in itunes on my computer, need help

    Hi everyone, whenever I try to select my ipad while in itunes on my macbook, i get a popup that says "we could not complete your itunes store request. An unknown error occurred (-9807)". Can anyone tell how to fix this.