How to removed the 300GB old archive logs???

Dear Gurus
Site-A
Our Environment:
Live Production 2-Node RAC Oracle10g r2 10.2.0.4
Data and Archive is stored in Oracle ASM
Operating System: Sun Solaris10 64bit
We have two databases.
==>db-1(Site-A db-1 is Oracle streaming with Site-B db-1,so archive logs should not be deleted which is required for oracle streaming)
==>db-2
Existing Backup and Recovery Strategy:
Daily logical backup of application schema using DATA PUMP.
We have not taken any RMAN Backup still.
Please find the status of Shared Storage.
-bash-3.00$ asmcmd
ASMCMD> lsdg
State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name
MOUNTED EXTERN N N 512 4096 1048576 614256 577801 0 577801 0 DATA/
MOUNTED EXTERN N N 512 4096 1048576 298948 38635 0 38635 0 FLASH/
We want to removed the old archive logs?
Please suggest the best way of removed the old archive logs for db-2 and db-1?
Can you Please suggest that how many time and how many space it's required for completed the backup?
Regards
Hitesh Gondalia
Edited by: hitgon on Oct 1, 2011 9:50 PM
Edited by: hitgon on Oct 1, 2011 10:09 PM
Edited by: hitgon on Oct 1, 2011 10:13 PM

You should consider using RMAN for backup/recovery. Logical exports (Data Pump) are useful for some purposes, but are not the preferred way to go for your backup and recovery needs. RMAN will give you better performance and so much more options.
Long-term, a great way to delete archivelog backups is via RMAN “backup archivelog …. delete input” and/or “delete archivelog … “commands.
Please delete archivelogs only after they are already backed up. RMAN will also take into consideration if the backups are needed for Streams and/or Standby.
About the backup space – a full RMAN backup is typically smaller than the size of your DB. You need to run a test to see the exact size. The frequency and type of backup should be based on your SLE for this DB.
Iordan Iotzov
http://iiotzov.wordpress.com/

Similar Messages

  • How to delete the data in archived log files

    hi
    how can i delete the enteries in archived log files. and what is the disadvantage of deleting archived log enteries.

    There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.

  • 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 remove the old email address that was hacked from my iCloud account when iCloud won't let me?

    How to remove the old email address that was hacked from my iCloud account when iCloud won't let me?
    Pretty much the the email that I used (but didn't verify) to create my iCloud account was hacked and now I can't remove it from my iCloud account due to the iCloud password also being changed by the same person and the fact I had "Find my iPhone" app on my phone also??? I had to change my iTunes email as well but that was far easier so yeah :S.
    Please help. I live in NZ, out in the country, so reception is rare and so is getting into the nearest town that has an Apple Store.
    Thanks

    If you truly change your existing Apple ID's email address to a new email address, follow these instructions: iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    If you created a whole new Apple Account because you couldn't access the old one after being hacked, you will need to contact the Apple Account Security Team. Apple ID: Contacting Apple for help with Apple ID account security

  • How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?

    While using firefox I am using, private browsing and not remembering any passwords.
    When I login to Gmail, the login page shows option to type in my gmail id and then password, and at the bottom, it gives the option of checkbox to remember the password next time. NOW, the problem is that, THIS CHECK box is always TICKED (Checked). I don't want it to be checked at all.
    So How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?
    Thank you so much.

    Hi Imran_Afzal, if you know that setting the cookie has no effect after you close your private browsing session, is it really worth finding a hack to clear the checkbox?
    I believe in order to do that you would need to use an extension or userscript. However, I haven't searched for one.
    ''Note: When searching for a userscript on userscripts.org, be very cautious as many hacked scripts have been posted lately. Check reviews and check the code to make sure it only runs on your Google site before installing.''

  • How to remove the old icloud apple id and password to activate my ipad

    how to remove the old icloud apple id and password to activate my ipad

    If it is still using IOS 6:
    You can force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • Changing the location of archive log from flash recovery area PLZ HELP!!!

    Hi All,
    My archive log is being stored in flash memory area which got full and the production server went down.
    alert log file details.....
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 43432960 bytes disk space from 2147483648 limit
    *** 2010-04-25 14:22:49.777 62692 kcrr.c
    ARCH: Error 19809 Creating archive log file to
    '/oracle/product/10.2.0/flash_rec
    overy_area/EDWREP/archivelog/2010_04_25/o1_mf_1_232_%u_.arc'
    *** 2010-04-25 14:22:49.777 60970 kcrr.c
    kcrrfail: dest:10 err:19809 force:0 blast:1I removed the files and started the database,
    Can someone kindly tell me as to how to avoid this problem in future by keeping archive log destination in flash recovery area.
    I want to change the location of archive log files, can someone please guide me as to hiow to do that
    I changed the size of flash recovery area for the time being, but i am afraid it will be full again!!
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                99.44                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.
    SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE = 4G ;
    System altered.
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                49.72                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.regards,
    Edited by: user10243788 on Apr 25, 2010 6:12 AM

    user10243788 wrote:
    Hi All,
    My archive log is being stored in flash memory area which got full and the production server went down.
    alert log file details.....
    ORA-19809: limit exceeded for recovery files
    ORA-19804: cannot reclaim 43432960 bytes disk space from 2147483648 limit
    *** 2010-04-25 14:22:49.777 62692 kcrr.c
    ARCH: Error 19809 Creating archive log file to
    '/oracle/product/10.2.0/flash_rec
    overy_area/EDWREP/archivelog/2010_04_25/o1_mf_1_232_%u_.arc'
    *** 2010-04-25 14:22:49.777 60970 kcrr.c
    kcrrfail: dest:10 err:19809 force:0 blast:1I removed the files and started the database,
    Can someone kindly tell me as to how to avoid this problem in future by keeping archive log destination in flash recovery area.
    I want to change the location of archive log files, can someone please guide me as to hiow to do that
    I changed the size of flash recovery area for the time being, but i am afraid it will be full again!!
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                99.44                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.
    SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE = 4G ;
    System altered.
    SQL> select * from v$flash_recovery_area_usage;
    FILE_TYPE    PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    CONTROLFILE                   0                         0               0
    ONLINELOG                     0                         0               0
    ARCHIVELOG                49.72                         0              57
    BACKUPPIECE                   0                         0               0
    IMAGECOPY                     0                         0               0
    FLASHBACKLOG                  0                         0               0
    6 rows selected.regards,
    Edited by: user10243788 on Apr 25, 2010 6:12 AMPointing the archive log dest (and/or the FRA) to a new location, or enlarging them, will do no good if you are not performing regular housekeeping on the archivelogs. You will just keep knocking down the same problem over and over.
    If you simply delete the archivelogs at the OS level, the database will never know about it and it will continue to think the destination is full, based on records kept in the control file.
    For regular housekeeping, you need to be doing something similar to this in rman:
    run {
      backup archivelog all not backed up 1 times tag='bkup_vlnxora1_arch';
      delete noprompt archivelog all backed up 1 times to device type disk;
    run {
    delete noprompt obsolete;
    crosscheck archivelog all;
    delete noprompt expired archivelog all;

  • Extract is abended and looking 8 days old archive log.

    I was doing some maintenance and I stop all the extracts and replicats. Couple of my extracts are stopped and looking for 8 days old archive logs. Please tell me how can I recover from that situation. I dont have that archive any more we only keep 5days arch.
    GGSCI (ggastdb01.infra.mms) 5> info e_it860t
    EXTRACT E_IT860T Initialized 2011-02-08 16:04 Status STOPPED
    Checkpoint Lag 00:10:05 (updated 04:34:30 ago)
    Log Read Checkpoint Oracle Redo Logs
    2011-02-24 09:53:04 Seqno 15721, RBA 103192
    Report file Error:
    2011-02-24 14:34:04 ERROR OGG-00446 Could not find archived log for sequence 15494 thread 1 under alternative or default destinations. SQL <SELECT name FROM v$archived_log WHERE sequence# = :ora_seq_no AND thread# = :ora_thread AND resetlogs_id = :ora_resetlog_id AND archived = 'YES' AND deleted = 'NO>. Last alternative log tried /u10/oradata/PPMTST10/arch/1_15494_721133148.arc, error retrieving redo file name for sequence 15494, archived = 1, use_alternate = 0Not able to establish initial position for sequence 15494, rba 68728848.
    2011-02-24 14:34:04 ERROR OGG-01668 PROCESS ABENDING.

    If you don't have the log file(s) in question, then you need to:
    re-sync the databases/schema/tables, or
    advance the CSN to a point in time where you do have log files and deal with missing data separately
    Is an archived transaction log missing?
    ● Extract reads the archived logs when an online log is not available. If you started
    Extract after it was stopped for a long time, the records it needs to process might
    already be archived away.
    ● Restore the archive log that is specified in the error message in the report file, and also
    restore all subsequent logs.
    NOTE Extract should not be stopped for a long time. If you must stop Extract, make
    certain that archives are available all the way back to the time that you stopped
    Extract. If Extract remains stopped for an exceptionally long time, it might be more
    practical to resynchronize the table(s) rather than wait for Extract to go through the
    archives and catch up.

  • How to recover a database with archive log

    how to recover database with archivle log

    Hi,
    With in information no one can tell the answer.
    Kindly post your qusetion in details information, you want to recover the database in archive log mode, what type of error you get, bcoz depending up on the errors you recover your database,
    please mention all about your database
    cheers
    Senthil Kumar

  • How to remove the agent from console?

    Hi,
    I have agent(10.2.0.3) ,i need to remove the agent from gui ,where no targets configured under that agent.
    I have stopped the agent(emctl stop agent),while i removing it from gui it prompts message
    "To delete this target, you must shut down the management agent first".
    Let me know,how to remove the agent successfully.
    Thanks,
    Regards,
    Vinoth

    you need to stop the host agent. go to the (Host) grid agents home .. mines located here /oracle/grid/agent10g/bin . then type
    ./emctl stop agent
    then log back into GRID and try and remove

  • How to remove the Object from memory.

    Hello.
    Flash file that i made with Flex Builder uses memory too
    much.
    Look at the next example source code.
    var testCan:Canvas = new Canvas();
    this.addChild(testCan);
    this.removeChild(testCan);
    testCan = null;
    but just memory usage still goes up, is not freed instantly.
    so if i load the large flash files on my web browser,
    after 5 munites or something, the web browser is down.
    How to remove the object from memory immediately without
    delay?

    It's all about the Garbage Collector ..
    There is a nice write up here :
    http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html

  • How to know the delay in redo log apply on Active Dataguard 11g

    Hello All,
    How to know the delay in redo log apply on Active Dataguard 11g...
    Do we need to wait till log switch occurs?
    Or is it recommended to schedule a log switch every 15 min, no matter data is updated/inserted or not in primary?
    Please suggest...
    Oracle : oracle 11g Release 2
    OS : RHEL 5.4
    Thanks
    Edited by: user1687821 on Feb 23, 2012 12:02 AM

    Hello CKPT,
    Thank you for the valuable information...
    We have not configured databroker.
    Output of the query
    SELECT * FROM (
    SELECT sequence#, archived, applied,
    TO_CHAR(completion_time, 'RRRR/MM/DD HH24:MI') AS completed
    FROM sys.v$archived_log
    ORDER BY sequence# DESC)
    WHERE ROWNUM <= 10
    Primary...
    SEQUENCE#     ARCHIVED     APPLIED     COMPLETED
    29680          YES          YES     2012/02/23 01:11
    29680          YES          NO     2012/02/23 01:11
    29679          YES          NO     2012/02/22 23:11
    29679          YES          YES     2012/02/22 23:11
    29678          YES          YES     2012/02/22 23:11
    29678          YES          NO     2012/02/22 23:11
    29677          YES          YES     2012/02/22 22:32
    29677          YES          NO     2012/02/22 22:32
    29676          YES          YES     2012/02/22 22:02
    29676          YES          NO     2012/02/22 22:02
    Standby...
    SEQUENCE# ARC APP COMPLETED
    29680 YES YES 2012/02/23 01:11
    29679 YES YES 2012/02/22 23:11
    29678 YES YES 2012/02/22 23:11
    29677 YES YES 2012/02/22 22:32
    29676 YES YES 2012/02/22 22:02
    29675 YES YES 2012/02/22 21:24
    29674 YES YES 2012/02/22 19:24
    29673 YES YES 2012/02/22 18:59
    29672 YES YES 2012/02/22 17:42
    29671 YES YES 2012/02/22 17:41
    Primary shows yes as well as no...
    Next,
    From primary:-
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    THREAD#     MAX(SEQUENCE#)
    1     29680
    From standby:-
    SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 29680
    What is the redo transport service you are using? is it LGWR or ARCH ?
    Output of query select * from v$parameter where name like 'log_archive_dest_2' shows below value...
    SERVICE=b_stdb LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=b_stdb
    So is it lgwr already configured...? if yes then how do i see the delay in both servers..
    Yes, the network is good as they both resides in same LAN within same rack
    Thanks...

  • After setting the db to archive log mode what to do?

    Hi All,
    We have a database which is being used as production database since one week and running in NoArchive Log mode. Now i wanted to change that to Archive Log mode because i want to take hot backup using RMAN daily/weekly. My doubt is..after changing the db to Archive Log mode, can i take backup using RMAN (i got a RMAN script to take a hot backup of db)? which will contain all the backup with control files and spfiles? or do i have to do anything before taking hotbackup.
    Thanks,
    Praveen.

    Yes you are fine. BTW, how many archive destinations did you configure.
    Usually it is more than 1 on two different Disks.
    TEST CASE:
    NOARCHIVELOG Database
    Change it ARCHIVELOG
    Take a hot backup and try to restore/recover it.
    STATUS=SUCCES
    Can someone explain this to me please:-
    Ensure DB in noarchivelog mode
    SQL> archive log list
    Database log mode No Archive Mode
    SQL> startup mount;
    SQL> alter database archivelog;
    SQL> alter database open;
    -- DID Not take a COLD BACKUP
    -- Right after switching the mode I am taking hot backup
    RMAN> backup incremental level=0 database ;
    RMAN> backup archivelog all delete all input;
    Nuke the datafiles
    RMAN> SET DBID=1299283748;
    RMAN> restore controlfile from autobackup;
    run
    set until logseq=79 ;
    restore database;
    recover database;
    sql 'alter database open resetlogs';
    Database is opened restored / recovered?
    I totally agree we should take a cold backup right after switching the mode. Can someone explain the above though.
    Message was edited by:
    gopalora

  • Satellite Pro A120: How to remove the CD/DVD drive

    I have 2 main problems and can't seems to fully open case.
    Does anyone know how to remove the dvd-rom?
    But my mainproblem is the power swith ribbon (blue) has come loose from the motherboard. But as i can't fully open the case im using tweezers to try to recconect it.
    Doesn't seem to want to go in.
    Is there a clip on the motherboard connector or is it just push in? A photo or diagram would be useful.
    Any help would be appreciated.
    thanks

    One question; why do you do this?
    I mean why your want to open the notebook?
    Fact is that the Pro A120 Satellite is not a old notebook and I presume the warranty is valid.
    If you remove the notebook covers you will lose the warranty!!!
    The CD/DVD removing is very easy.
    Usually it is secured with one screw which can be found at the bottom of the unit. You have to remove it firstly and then it should be able to take off the ODD.

  • Satellite Pro 4260: How to remove the DVD drive?

    I have a Satellite Pro 4260 and it appears that the DVD drive is broken and I want to replace it. I cannot figure out how to remove the old one.
    Does anyone know how? Is there a manual available showing how?
    Thanks

    Hi
    This notebook is not know to me but a checked some sites in the net and it seems that the top cover must be removed.
    Then lift up the CD-ROM/DVD-ROM drive to disconnect PJ700 on the CD-ROM/DVD board from PJ15 on the system board.
    Remove two screws securing the CD-ROM/DVD-ROM connector board.
    Separate the CD-ROM/DVD-ROM connector board and CD-ROM/DVD-ROM connector brace from the CD-ROM/DVD-ROM drive
    Well, I think its not easy for someone with no experience.
    Therefore if you dont know how to do it and you have no much experience you should ask someone how knows what to do ;)

Maybe you are looking for

  • Error while Deploying - ORABPEL-04131

    While depoying a BPEL process, we got below error: Exception message is: ORABPEL-04131 Cannot insert/update process descriptor. The process domain was unable to insert/update the descriptor for process "SUP012_EllipseWorkOrders_Inbound_Service", revi

  • Places not working correctly

    I can't seem to get Places to work correctly. Here is what I do and what happens: 1)  I shoot picts with a point and shoot and a handheld GPS. Dates and times are in synch. Time zone double-checked. 2)  Import photos into Aperture. 3)  Plug Garmin 60

  • SAP Netweaver 7.02 ABAP Trial Version (64 bit) - Installation Error

    Hi Experts, I'm running into a runtime error during phase 9 of the ABAP trial installation (Create Database Instance).  The error message from the logs reads: An error occurred while processing option <i>SAP NetWeaver 7.0 including Enhancement Packag

  • SC print error

    Hello All, We are running on classic scnario. I am using transaction "Monitor Shopping Cart". here after giving SC number I am clicking on print icon and getting following error prompt: Specify either address number or addresshandle If it is a IDOC r

  • LCD Blotchy Light coming in from top

    Ok this is my third iPhone. The first two had major problems after updates (unfixable). I noticed my new iPhone had little blotches at the top of the screen. It looks like little rays of light are coming in the top. Almost like the backlight is at di