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>

Similar Messages

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

  • How to know the size of a DATABASE ?

    Guys,
    How to know the size of a DB ?
    Also
    How to know the size of a TABLE ?
    How to get the content of a procedure/view/trigger ?
    Inputs are welcome !

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • How to know the size of a webservice request

    Hello...
    I'd like to know if you know how do I get the size of a Web request? I mean, I need to know the size of a Web Request 'cause I'll fill a Gauge Object up based on the quantity that I have received from the WebService.
    I'm using the KSOAP and KXML API's for consuming that WebServices and I used the Content-lengh Method and it didnt return anything to me... it returned empty. So, do you know how do I fill a Gauge Object based on the size of the WebRequest? Could you tell me some examples plz?
    Thanx...
    Lucas Abrao

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • How to know the size of bad sector block after zero out erase?

    I found some problems on my USB external harddisk recently. After I backup all the files, I erased the whole volume by choosing "zero out data" option. According to some web articles, "zero out" detects and marks those bad sectors to avoid further read/write action on the damaged area.
    My question is that how can I know the size of disk space marked as bad sector? Because I can only see how many space is used or available when I check a disk in disk utility. There are about 600MB used for my 1TB hard drive. I guess there is some storage used by spotlight or other hidden files. But I have no idea for how many MB is occupied by bad sector...

    Yes you can look at see the original number of spares, the number used, and the number remaining spares.
    Disk Warrior for one, writes the SMART data to system.log Other programs can also read and report (not sure which if any write to system.log though) those field values from SMART table entries.
    IF the number of spares is declining, time to replace. Trouble is OS X hasn't had a good record of reporting I/O errors, let alone remapping. Some 3rd party utilities will. I've found the vendor (WD, Hitachi etc) have the best utility for their own drives, but those are Windows programs or LinuxCD. Also the best way to zero and map out bad sectors, too.

  • How to increase the size of Redo log files?

    Hi All,
    I have 10g R2 RAC on RHEL. As of now, i have 3 redo log files of 50MB size. i have used redo log size advisor by setting fast_start_mttr_target=1800 to check the optimal size of the redologs, it is showing 400MB. Now, i want to increase the size of redo log files. how to increase it?
    If we are supposed to do it on production, how to do?
    I found the following in one of the article....
    "The size of the redo log files can influence performance, because the behavior of the database writer and archiver processes depend on the redo log sizes. Generally, larger redo log files provide better performance, however it must balanced out with the expected recovery time.Undersized log files increase checkpoint activity and increase CPU usage."
    I did not understand the the point however it must balanced out with the expected recovery time in the above given paragraph.
    Can anybody help me?
    Thanks,
    Praveen.

    You dont have to shutdown the database before dropping redo log group but make sure you have atleast two other redo log groups. Also note that you cannot drop active redo log group.
    Here is nice link,
    http://www.idevelopment.info/data/Oracle/DBA_tips/Database_Administration/DBA_34.shtml
    And make sure you test this in test database first. Production should be touched only after you are really comfortable with this procedure.

  • 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 in byte of a file before importing it with ftp

    hello
    i have a file in witch there is the pathe of many file
    i reade these path and i use ftp to get these file
    my problem is that i want to display a progress bar during the getting of file
    so dont no how i can know the size of these file to put a maximum to the progress bar

    package cni;
    import javax.swing.*;
    import sun.net.ftp.*;
    import sun.net.ftp.FtpClient.*;
    import java.io.*;
    import java.lang.*;
    import sun.net.TelnetInputStream;
    import java.util.*;
    import java.lang.String;
    public class FTPclients
    //Variables
    private static String server = "faycal";
    private static int port = 21;
    private static String user = "anonymous";
    private static String passwd = "[email protected]";
    public String toString(JTextField tx)
    String txt;
    txt= new String(tx.getText());
    return txt;
    public static void main(String args[])
    ConnFile cf = new ConnFile("d:\\cni\\adresse.txt");
    FTPclients fc = new FTPclients();
    ConnFile cfbis = new ConnFile("d:\\cni\\chemin.txt");
    try
    //String s=cf.lectureid();
    String s;
    while((s=cf.br.readLine())!=null)
    String s1=s.substring(0,s.lastIndexOf("\\"));
    String s2=s.substring(s.lastIndexOf("\\")+1);
    System.out.println(s1);
    System.out.println(s2);
    //ajout du double anti slash a la chaine s1
    String name =s1;
    StringBuffer sb = new StringBuffer(s1.length()+10);
    for(int index=0; index<s1.length();index++)
    char c = s1.charAt(index);
    sb.append(c);
    if(c=='\\')
    sb.append('\\');
    System.out.println(s1);
    s1= sb.toString();
    System.out.println(s1);
    //creation d un client ftp
    FtpClient client = new FtpClient();
    System.out.println("gggggggggggggalut");
    client.openServer(server,port);
    System.out.println("xxxxxxxxxxxxalut");
    client.login(user, passwd);
    client.binary();
    client.cd(s1);
    System.out.println("la taille de "+s1+" est "+taille+" octets");
    System.out.println("ssssssssssssalut");
    System.out.println(client.welcomeMsg);
    System.out.println("buhhhhhhhhhhhhh");
    //copie du chemin saisi par l utilisateur
    String chemre;
    cfbis = new ConnFile("d:\\cni\\chemin.txt");
    String chemvir = cfbis.lectureid();
    System.out.println(chemvir);
    if (chemvir==null)
    chemre="d:\\";
    System.out.println(chemre);
    else
    chemre=chemvir;
    System.out.println(chemre);
    String chem=chemre+"\\"+s2;
    System.out.println(chem);
    //pour creer le nouveau fichier
    TelnetInputStream fich = client.get(s2);
    FileOutputStream out = new FileOutputStream(chem);
    //pour ecrire dans le nouveau fichier
    int i;
    while(true)
    i = fich.read();
    if(i == -1)
    { break; }
    out.write((byte)i);
    System.out.println("bahhhhhhhhhhhh");
    //fermeture du serveur ftp
    client.closeServer();
    System.out.println("ok");
    }//fin while
    String chemvir = cfbis.lectureid();
    }//fin du try
    catch(IOException e)
    System.out.println(e);
    }//fin du main
    }// fin de la classe
    do you know how

  • How to know the size of the EEPROM after loading any Applet

    How can I know the size of the EEPROM after loading any applet..
    Any comments on this is appreciated
    Thank you in advance

    kishansaralaya wrote:
    Thanks for your suggestion.
    But when I try to use
    short memRemaining = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);
    it always shows 32767. Even after loading some applet.
    And I am using 72K Java card then how it can show only 32Kbyte as the remaining memory value.This is because a short isn't big enough to display a number above 32767. One way around this is to use a byte[] to fill up some of the space with your temporary applet.
    byte[] memoryFiller = new byte[32767];
    short memRemaining = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);The value of memRemaining + 32767 is the amount of persistent memory left on the card. If memRemaining is still 32767, you can add another byte[] starting with small values and increase the size until you get a meaning ful result (less than 32K).

  • How to know the size of data in some columns of a table?

    Hi,
    How can the size of of data for some specified column be determined?
    For example : TableA has 20 columns and the size of table is 20 GB. I want to know the size of data kept in last four columns.
    Thanks in Advance,
    Vishu

    You could use vsize to determine the size of a column element and sum them upselect sum(vsize(column_of_interest)) from whatever_table;

  • How we know the Number of users logged into stratus?

    Hai,
    How can we  know the number of users logged into stratus? If we knows only,in our project we can check the users are valid/authenticated.can we check that?
    Advanced Thanx

    Stratus is adobe service which provides you with p2p id or say all your
    application's users a p2p id. Adobe doesn't have any admin section where you
    can manage/see all connected p2p users in your application.
    This you have to implement at your end in your application code i.e.
    authentication,validation and user counter.
    Thanks,
    Vivek.

  • How to know the size of a file in a program ?

    I am compiling a program and I have to use a function in Java to know the size of some files. How can I do? Thanks

    File.length() not good enough?

  • How to know the size in bytes of a directory?

    I would like to know if there's a class or a function which allows to know the size of all files in a directory?

    You have to create a File object for your directory, then list all files (using the list() method) and create a File object for each item returned. Then ask each File object for it's size and add them up.
    Thomas

  • How to know the size of a message I wrote

    When I created a photojournal, with comments before each photo, I got a message "The size of the message you are trying to send exceeds the global size limit of the server."
    So it was not sent and I was told to reduce it and try again. I did that with the photos, deleted a few, as well, but still got the error message, and have not discovered how to find the size of the message.

    save it to drafts.
    in the drafts folder, click on the little table widget right on the right side of the column headings... select size
    Remember size increases about 30% for attachments.

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

Maybe you are looking for

  • Error while deploying the application

    Hi, I am trying to deploy an application on WLS 9.0 on Windows XP. I get the following error while deploying. "Cannot set web app root system property when WAR file is not expanded" Here is the command I used and the output. C:\bea\weblogic90\server\

  • Second line item in Shoppin cart is not displaying the details

    Second line item's district  value is not displayed when the detailed button of second line item is clicked. In the shopping cart , there are two line items are added. ( before ordering ) click on the detail button of first line item, then click on t

  • I need help plzz re itunes not matching my ipod files etc

    hi i will try and explain this fully...i have an ext hardrive which has all of my ipod songs backed up on it. i do not routinely hook it up as it is really for precaution should i have a failure on my ipod. i deleted all my music on itunes to free up

  • How to Upload Mutilple Images in content repository?

    Hi How to Upload Mutilple Images in content repository? I have a html which shd be displayed and it has 3 images which shd be displayed in the same page Here i am able to display the HTML uploaded in content repository but the images are not displaye

  • EMCTL unable to create

    dear all, we installed Oracle EBS 12.1.1 on RHEL 5.3 , Vision i started enabling OEM using following command $ emca -config dbcontrol db -repos create I gave details which it asked , after some time it stopped,then i goto log and in logfile last line