DELETE COPY EXCLUDING ARCHIVELOG

Hello Experts ,
I am in a need of your help for the below my query:
ORACLE 10G
DB_RECOVERY_FILE_DEST = C:\oraclexe\oradata\TESTDB\flash_recovery_area
LOG_ARCHIVE_DEST_1='LOCATION=C:\oraclexe\oradata\TESTDB\arch\arch1'
LOG_ARCHIVE_DEST_2='LOCATION=C:\oraclexe\oradata\TESTDB\arch\arch2'
I have taken set of backup copy and i now want to delete them.. so i wish to use the systax "DELETE COPY". But it also includes my archive logs in the LOG_ARCHIVE_DEST_n location. How can i use the 'DELETE COPY .... ' command to exclude the archive logs ...
================
OUTPUT:
RMAN> DELETE COPY;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
List of Datafile Copies
Key File S Completion Time Ckp SCN Ckp Time Name
41 1 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSTEM_8MPMQD0H_.DBF
35 1 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSTEM_8MPKPC6T_.DBF
29 1 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSTEM_8MPKM3YH_.DBF
43 2 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_UNDO_8MPMR2GZ_.DBF
37 2 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_UNDO_8MPKQ9KR_.DBF
31 2 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_UNDO_8MPKMT8M_.DBF
42 3 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSAUX_8MPMQV7W_.DBF
36 3 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSAUX_8MPKPTCT_.DBF
30 3 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSAUX_8MPKMM3M_.DBF
44 4 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_HRTBS_8MPMR9LK_.DBF
38 4 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_HRTBS_8MPKQJQP_.DBF
32 4 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_HRTBS_8MPKN1L3_.DBF
45 5 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_TEST_8MPMRDRO_.DBF
39 5 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_TEST_8MPKQMX0_.DBF
33 5 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_TEST_8MPKN4PH_.DBF
List of Control File Copies
Key S Completion Time Ckp SCN Ckp Time Name
46 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPMRHXC_.CTL
40 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_TAG20130309T195722_8MPKQQ1N_
TL
34 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPKN7VH_.CTL
List of Archived Log Copies
Key Thrd Seq S Low Time Name
191 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH2\ARC00040_0809123036.001
190 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH1\ARC00040_0809123036.001
Do you really want to delete the above objects (enter YES or NO)? no
RMAN>
=======================
Thanks and Regards,
Christo
Edited by: Christpj on Mar 9, 2013 8:19 AM

Hello Mseberg,
Great !
Thanks for the reply .Now i got some idea. But still my controlfile copy remains in the flash recovery area..So i have to go again to delete this controlfile copies...
So any other options available to delete all backup copies (datafiles,controlfiles,backup copy of archivedlog files if any ) by a single command except that archivelog file in the LOG_ARCHIVE_DEST_n
And also i am confused that why my archive log file also listed here (LIST COPY) eventhough i didnt copied it using RMAN and i didnt placed it in flash_recovery area..
===========================
Output:
After the delete datafilecopy
RMAN> list copy;
List of Control File Copies
Key S Completion Time Ckp SCN Ckp Time Name
46 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPMRHXC_.CTL
40 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_TAG20130309T195722_8MPKQQ1N_.C
TL
34 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPKN7VH_.CTL
List of Archived Log Copies
Key Thrd Seq S Low Time Name
191 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH2\ARC00040_0809123036.001
190 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH1\ARC00040_0809123036.001
RMAN>
======================
-Christo

Similar Messages

  • How to delete the foreign archivelogs in a Logical Standby database

    How do I remove the foreign archive logs that are being sent to my logical standby database. I have files in the FRA of ASM going back weeks ago. I thought RMAN would delete them.
    I am doing hot backups of the databases to FRA for both databases. Using ASM, FRA, in a Data Guard environment.
    I am not backing up anything to tape yet.
    The ASM FRA foreign_archivelog directory on the logical standby FRA keeps growing and nothing is get deleted when
    I run the following command every day.
    delete expired backup;
    delete noprompt force obsolete;
    Primary database RMAN settings (Not all of them)
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 9 DAYS;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE DB_UNIQUE_NAME 'WMRTPRD' CONNECT IDENTIFIER 'WMRTPRD_CWY';
    CONFIGURE DB_UNIQUE_NAME 'WMRTPRD2' CONNECT IDENTIFIER 'WMRTPRD2_CWY';
    CONFIGURE DB_UNIQUE_NAME 'WMRTPRD3' CONNECT IDENTIFIER 'WMRTPRD3_DG';
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    Logical standby database RMAN setting (not all of them)
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 9 DAYS;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    How do I cleanup/delete the old ASM foreign_archivelog files?

    OK, the default is TRUE which is what it is now
    from DBA_LOGSTDBY_PARAMETERS
    LOG_AUTO_DELETE     TRUE          SYSTEM     YES
    I am not talking about deleting the Archive logs files for the Logical database that it is creating, but the Standby archive log files being sent to the Logical Database after they have been applied.
    They are in the alert log as follows under RFS LogMiner: Registered logfile
    RFS[1]: Selected log 4 for thread 1 sequence 159 dbid -86802306 branch 763744382
    Thu Jan 12 15:44:57 2012
    *RFS LogMiner: Registered logfile [+FRA/wmrtprd2/foreign_archivelog/wmrtprd/2012_01_12/thread_1_seq_158.322.772386297] to LogM*
    iner session id [1]
    Thu Jan 12 15:44:58 2012
    LOGMINER: Alternate logfile found. Transition to mining archived logfile for session 1 thread 1 sequence 158, +FRA/wmrtprd2/
    foreign_archivelog/wmrtprd/2012_01_12/thread_1_seq_158.322.772386297
    LOGMINER: End mining logfile for session 1 thread 1 sequence 158, +FRA/wmrtprd2/foreign_archivelog/wmrtprd/2012_01_12/threa
    d_1_seq_158.322.772386297
    LOGMINER: Begin mining logfile for session 1 thread 1 sequence 159, +DG1/wmrtprd2/onlinelog/group_4.284.771760923                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to delete copyed wrongly in the data base

    Hi Gurus,
    I  copy the cube 0IC_C03 to Z0IC_C03.
    After that i went to RSZC--> copy from 0IC_C03 to Z0IC_C03 all the queries, but when i am copying i dint remove the _1 beside each query. when i repeat system telling queries already in the data base. can you tell how to delete and copy freshly.
    Points Assure.
    Thanks
    Amarendra

    Hi,
    you can use rszdelete where you can choose the queries and query objects which you want to delete.
    After this you can start the copy again.
    regards
    Cornelia

  • My Iomega External Hard drive won't let me delete/copy files...

    I haven't used my external hard drive since buying my Macbook Pro.
    I have just tried to delete some files from it and then copy some Uni work from my Documents onto my hard drive.. but it won't work.
    Is there anything I need to download?

    Install software such as the NTFS-3G drivers.
    (61239)

  • Adding/delete/copy a row in table in web dynpro

    Hi Expers,
    We  have  arequirement where on screen of view there is a "ADD" button,"DELETE" button and a ":COPY" button. once the user click on "ADD" button , a new row must add in the existing table,once the user select a  row from table and click on "DELETE" button , that row must delete .once the user click "COPY" button a new row must added with the data of the selected row.
    Can you plz help me how to do this.
    Thanks
    Mahesh

    Hi Mahesh,
    -> To add a new row to the table, you need to create and bind  a new element to the node.
    DATA: lo_nd_test TYPE REF TO if_wd_context_node,
            lo_el_test TYPE REF TO if_wd_context_element,
    ls_test TYPE wd_this->element_test.
      lo_nd_test= wd_context->get_child_node( name = wd_this->wdctx_test ).
      lo_el_test= lo_nd_test->create_element( ).
      lo_nd_test->bind_element( new_item = lo_el_test set_initial_elements = abap_false ).
      lo_nd_test->set_lead_selection( lo_el_test ).   " to select the new row added
    -> To delete the exisiting row, get the selected row element and call remove_element method.
    lo_el_test= lo_nd_test->get_lead_selection( ).
    lo_nd_test->remove_element( lo_el_test ).
    -> To copy the existing row, get the values of the selected row using get_static_attributes( ) method and set the values to the new row added.
      lo_nd_test= wd_context->get_child_node( name = wd_this->wdctx_test ).
      lo_el_test= lo_nd_test->get_lead_selection( ).
      check lo_el_test is not initial.
      lo_el_test->get_Static_attributes( importing static_attributes = ls_test ).
      clear  lo_el_test.
      lo_el_test= lo_nd_test->create_element( ).
      lo_nd_test->bind_element( new_item = lo_el_test set_initial_elements = abap_false ).
      lo_el_test->set_Static_attributes(EXPORTING static_attributes = ls_test ).
    Regards,
    Manogna

  • Unable to delete  primary database archivelogs using RMAN

    Hi,
    rman unable to delete the archivelogs of primary database even it is in sync ( with standby database).
    giving an error :-
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1693.11359.784134169 thread=2 sequence=1693
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1694.5554.784135415 thread=2 sequence=1694
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1695.11643.784164901 thread=2 sequence=1695
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=+FLASH/simsval/archivelog/2012_05_24/thread_2_seq_1696.12654.784164913 thread=2 sequence=1696
    archive gap showing at primary.
    SQL> select to_char (sysdate,'DD-MON-YYYY HH24:MI') as "Now", a.thread#, max(a.sequence#) as "Latest" ,max(b.sequence#) as "Last", max(a.sequence#)-max(b.sequence#) as "To Apply",to_char ( max (b.next_time), 'YYYY-MON-DD HH24:MI') as "LastDate",round ((sysdate - max (b.next_time) ) * 24 * 60, 0) as "Mins Behind" FROM V$ARCHIVED_LOG a , V$ARCHIVED_LOG b where a.applied = 'NO'and b.applied = 'YES' and a.thread# = b.thread# group by a.thread#, a.applied, b.thread#, b.applied order by a.thread#;
    Now THREAD# Latest Last To Apply LastDate Mins Behind
    01-JUN-2012 00:57 1 2321 2195 126 2012-APR-25 22:34 51983
    01-JUN-2012 00:57 2 1729 1576 153 2012-APR-26 15:11 50985
    no archive gap showing at standby .
    SQL> select to_char (sysdate,'DD-MON-YYYY HH24:MI') as "Now", a.thread#, max(a.sequence#) as "Latest" ,max(b.sequence#) as "Last", max(a.sequence#)-max(b.sequence#) as "To Apply",to_char ( max (b.next_time), 'YYYY-MON-DD HH24:MI') as "LastDate",round ((sysdate - max (b.next_time) ) * 24 * 60, 0) as "Mins Behind" FROM V$ARCHIVED_LOG a , V$ARCHIVED_LOG b where a.applied = 'NO'and b.applied = 'YES' and a.thread# = b.thread# group by a.thread#, a.applied, b.thread#, b.applied order by a.thread#;
    Now THREAD# Latest Last To Apply LastDate Mins Behind
    01-JUN-2012 04:59 1 2321 2321 0 2012-MAY-31 22:32 386
    01-JUN-2012 04:59 2 1729 1729 0 2012-MAY-31 22:32 386
    any one please help me to resolve this.
    thanks ,
    Badam.
    Edited by: 937988 on May 31, 2012 9:56 PM

    Can you past here log_archive_ parameter on primary database?
    Did you create data guard configuration with dgmgrl ?
    Mahir M. Quluzade
    www.mahir-quluzade.com

  • Deleting the old archivelogs

    Hi all,
    i have configured RMAN for recovery window of 3 days.
    this configuration works fine with the backups of database. But does not work on the backup of archivelogs.
    when i issues
    list backup of archivelog all summary;
    it shows all the archivelogs (around 20 days back)
    can i configure RMAN to delete the old backup of archivelogs?
    if no, how can i configure it in the script so that when the backup is taken , it should delete the old backups as well as the archivelogs..
    thanks

    my retention policy is configured for recovery window of 4 days....
    backup of databases are deleted automatically by
    DELETE NOPROMPT OBSOELTE;
    but archivelogs are not delted.when i run this command
    RMAN> list backup of archivelog all summary;
    output is
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    940 B A A DISK 20-AUG-07 1 1 NO TAG20070820T172250
    1030 B A A DISK 20-AUG-07 1 1 NO TAG20070820T172345
    1053 B A A DISK 20-AUG-07 1 1 NO TAG20070820T172736
    1133 B A A DISK 20-AUG-07 1 1 NO BACKUP_DWHORA_0000_082007060346
    1137 B A A DISK 20-AUG-07 1 1 NO BACKUP_DWHORA_1930_082007073004
    1454 B A A DISK 21-AUG-07 1 1 NO BACKUP_DWHORA_0000_082107064721
    1458 B A A DISK 21-AUG-07 1 1 NO BACKUP_DWHORA_1930_082107073000
    1460 B A A DISK 22-AUG-07 1 1 NO TAG20070822T153853
    1461 B A A DISK 22-AUG-07 1 1 NO TAG20070822T153853
    1463 B A A DISK 22-AUG-07 1 1 NO TAG20070822T154926
    1877 B A A DISK 22-AUG-07 1 1 NO BACKUP_DWHORA_1930_082207073003
    1885 B A A DISK 23-AUG-07 1 1 NO TAG20070823T121355
    1887 B A A DISK 23-AUG-07 1 1 NO TAG20070823T122353
    2086 B A A DISK 23-AUG-07 1 1 NO TAG20070823T131423
    2129 B A A DISK 23-AUG-07 1 1 NO TAG20070823T132217
    2597 B A A DISK 23-AUG-07 1 1 NO TAG20070823T192436
    2598 B A A DISK 23-AUG-07 1 1 NO TAG20070823T192436
    2599 B A A DISK 23-AUG-07 1 1 NO TAG20070823T192436
    2600 B A A DISK 23-AUG-07 1 1 NO TAG20070823T192436
    2828 B A A DISK 23-AUG-07 1 1 NO TAG20070823T195012
    2943 B A A DISK 24-AUG-07 1 1 NO TAG20070824T195554
    4842 B A A DISK 27-AUG-07 1 1 NO BACKUP_DWHORA_1930_082707010236
    4846 B A A DISK 27-AUG-07 1 1 NO BACKUP_DWHORA_0001_082707073003
    4850 B A A DISK 28-AUG-07 1 1 NO BACKUP_DWHORA_0001_082807073003
    5161 B A A DISK 29-AUG-07 1 1 NO BACKUP_DB_FULL
    5185 B A A DISK 29-AUG-07 1 1 NO BACKUP_DB_FULL
    5415 B A A DISK 30-AUG-07 1 1 NO BACKUP_DB_FULL
    5445 B A A DISK 30-AUG-07 1 1 NO BACKUP_DB_FULL
    5620 B A A DISK 31-AUG-07 1 1 NO BACKUP_DB_FULL
    5682 B A A DISK 31-AUG-07 1 1 NO BACKUP_DB_FULL
    my question is why the archivelog backups for dates below 20 september are there?

  • Logon script for looping - searching - deleting - copy

    I was trying to do multiple functions within a logon script.  If nobody wants to write the script, can you please point me to the right resource to find how to code it.  I am completely new to this and need help.
    The logic is to have a list of files on the server which were recently updated(this list changes all the time), using these files you would loop and search for these same files on the end user's machine upon logging in.  When it finds that same file
    on the end user's machine you would delete the file from the end user's machine, then copy the new updated file from the server onto the end user's machine in the same location the previous one was deleted from.  If file not found on end user's machine
    then just copy new one without deleting anything in highest level directory.  When done, you would loop again until you went thru every file that was updated on the server.  The source directory will always be the same and the copy to directory on
    end user's machine will always be the same, but end user's machines have subdirectories and the files that will be getting updated are in both.  Any help in any fashion would be appreciated.
    We are in the process of migrating from XP to Windows 7.  While in XP, we only had to do a copy function in the logon script and it would copy over the old file and replace it.  But Windows 7 doesn't delete the old file, it appends the new one
    to the old one, making it hard for the software looking for these files to work properly when it sees two files instead of one current one.  Hopefully this makes sense, I can elaborate more if anyone wants to help and needs more details.  Thanks.

    I would definitely not recommend copying files to end user machines from a logon script.
    But you are right that this isn't a script-on-demand forum.
    You can post a script request here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    I would point out that, as with this forum, there is no service-level agreement that guarantees that someone will have the time do this work for you. You will need to provide a very detailed specification; your post here is very vague.
    However: It sounds to me like you don't have a scripting question but some kind of application architecture question.
    -- Bill Stewart [Bill_Stewart]

  • Deleting copied information

    I have a copier/fax machine  (HP Laser Jet  M1522nf) Is there a way to set the copier to delete the information that has been stored in the hard drive after each sheet of information that has been printed. 

    There is not a hard drive in the M1522nf.  There may be some information in the Fax log of numbers called and dates, if that information would be sensitive.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Deleting copied file

    I recently purchased a MacBook Pro. I am new to Macs. I copied a file from All Images to the desktop. To copy it I dragged it to the desktop. The copied file on the desktop has the exact same file name as the file in All Images. When I move the file on the desktop to Trash it also moves the original file in All Images to Trash. How do I delete the copied file without affecting the original file. To me it seems like the two files are one and the same because the copied file doesn't have a different file name. And the copied file is not an alias either.
    Thanks for any help on this.

    All Images is not an actual folder. It's a saved search. (Same goes for all other preset items in the "Search For" section of the sidebar). It lists all images on your computer. since it's not an actual folder you can't put anything in it. when you dragged the picture file from All Images to the desktop it was moved from its original location (wherever that was) to the desktop. You need to know its original location. then you can move it back there from the desktop.

  • Rman syntext for deleting archivelogs

    I am looking for rman syntax to delete all archivelogs but leave last 30 minutes on the disk. I tried following but it did not work
    delete archivelog until time ‘sysdate – 30/(24* 60)’
    any help would be appreciated.
    Thanks,
    mkjoco

    There was no error but RMAN was keep deleting extra logs that were created after the requested time. But good news is that it is working now with following command:
    "delete copy of archivelog all completed before 'sysdate - 30/(24*60)';"
    I found this on the net. It seems to me that RMAN was looking for first SCN time, in the log with "UNTIL TIME " but with "COPY OF" its look for file creation time.
    Don't take my words this is my guess .... If someone can verify this would be nice
    Thanks

  • Starting a RMAN backup strategy

    Hi,
    I took an incremental level 0 backup using RMAN while the database was in mount mode.
    Are the archive logs from before the update still necessary in order to perform a recovery?
    If not, how do I delete them using RMAN so that my next backup using 'backup database plus archivelog...' won't backup them?
    Thanks.

    Hi,
    Are the archive logs from before the update still necessary in order to perform a recovery?Only if you need to roll forward to a point in time from a previous backup.
    Can you post the output of:
    show retention policy;If you know the exact start time of the level 0 backup you could delete the old archivelogs with.
    delete copy of archivelog all completed before "to_date('define_time_here','YYYY-MM-DD:HH24:MI:SS')";Regards,
    Tycho

  • How to copy out ASM storege for archivelog to normal file system

    Hi Expert,
    I have two node running Oracle 11gr2 11.2.3 on SUN SOLARIS 64 bit. I need to copy out the archivelog store on ASM Flash recovery area to normal file system. How can i perform this task. How to ensure that after copy this archivelog can use for recovery.
    Regard
    William

    Hi William,
    Use this guide:
    Step 4. Archived Online logs (archivelogs) and BackupSet stored in FRA
    http://levipereira.wordpress.com/2011/09/16/how-migrate-asm-to-non-asm-unixlinux/
    As you want copy, you must replace it:
    this:
    BACKUP AS COPY ARCHIVELOG ALL DELETE INPUT;
    to:
    BACKUP AS COPY ARCHIVELOG ALL;If you can still using FRA on ASM you can copy without change parameter "db_recovery_file_dest"
    e.g
    BACKUP AS COPY ARCHIVELOG ALL  FORMAT  '/u01/app/oracle/%U';
    How to ensure that after copy this archivelog can use for recovery.Try it:
    VALIDATE ARCHIVELOG ALL;
    Regards,
    Levi Pereira
    Edited by: Levi Pereira on Jan 4, 2012 5:44 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ARCHIVELOG DELETION POLICY 10g?

    I know in 11g, we have this command.
    RMAN>CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 3 TIMES TO DEVICE TYPE sbt;
    is there a similar command in 10g as well for this feature?

    Hi Karl,
    You can enforce a similar strategy inside the backup script for 10g.
    # Delete archived log entries before the run
    delete noprompt copy of archivelog all backed up 3 times to SBT_TAPE;
    backup
    filesperset 20
    format='al_%d_%s_%p_%t'
    archivelog all ;
    # Delete archived log entries after the run
    delete noprompt copy of archivelog all backed up 3 times to SBT_TAPE;If for some reason the backup fails halfway through the run, the before delete will purge all archivelogs already 3 times on tape.
    Regards,
    Tycho

  • Deleting Archivelogs

    Hey, I am running a 11.2.0.3 RAC in archivelog mode.
    I plan to modify my backup strategy.
    Instead of a rman backup I just want to run a datapump export for three users of the database.
    My plan:
    One LEVEL 0 backup on disk, on ftp server and on local disk.
    In a case of a failure I would use the fullbackup to restore the skeleton of the database. On top I would import the users from the datapump export.
    I need the archivelogs, due to the fact that I have standby database in place.
    Question:
    If I DO NOT backup the archivelogs, will the archivelogs get deleted automatically or will the FRA run out of diskspace ?
    Until now I just this command:
    delete force noprompt archivelog all backed up 1 times to device type disk completed before 'sysdate -2';
    I can´t use this any further right ?
    Can I do this instead ?
    delete archivelog until time ‘SYSDATE-2′;    ????
    Chris

    Hey, I see the prob. With an old level 0 backup I cant´t restore until the end with the remaining archivelogs.
    So, I changed my backup idea:
    The plan is to backup the database once a week and keep the archivelogs for 8 days.
    Instead of a daily incremental level 1 backup I would just export the users with datapump and also back up archivelogs.
    All backups are transfered to a backup server.
    Here my schedule:
    Sun:
    run {BACKUP incremental level 1 for recover of copy with tag 'Fullbackup' database plus archivelog;
    recover copy of database with tag 'Fullbackup';}
    Mon-Sat:
    backup archivelog all not backed up 1 times;
    delete force noprompt archivelog all backed up 1 times to device type disk completed before 'sysdate -8';
    Does this make sense ?
    Chris

Maybe you are looking for

  • Shutdown ipad mini without using touchscreen or Home button

    Hi, My touchscreen got broken and while repairing that their was some issue(touch not working), HOME button is also not working. Now in order to fix my touchscreen I have to shutdown it. How do I shutdown iPad mini  ?  [Touchscreen , Home button both

  • Reordering items in a report

    The scenario: I have a table that holds values and their respective position "in line". For example, Apples = 1, Bananas = 2, Oranges = 3, Grapes = 4. When I display a report, I want the values to show up in order...so, Apples, Bananas, Oranges, Grap

  • Is there any option to maintain no of labours in routing operation wise?

    Hi Experts, I want to know the no of labours used to perform one operation. So is there any way so that I can know how many labours have been performed in one operation in routing?

  • How to contact Adobe support by a Portuguese costumer? Thanks.

    How to contact Adobe support by a Portuguese costumer? Thanks.

  • Flight Instance table

    I am developing a Web-based GUI for a flight reservation system. The following select statement is used to find the selected flights on a given date: select distinct flight_no, origin, dept_time, destination, arri_time, flight_date from flight_instan