3 Replies Latest reply: Sep 26, 2012 9:05 AM by Ani RSS

    du output in TB

    Ani
      HI,
      In ASM is there anyway where I can get the du o/p in TB. because i can see that du -h is not working . i am unix admin. so please help me if you can.
      ASMCMD> du
      Used_MB Mirror_used_MB
      1523 1523
        • 1. Re: du output in TB
          Veeresh.S
          I think in asmcmd using du you cant get values in TB. but from sqlplus you can.


          ASMCMD> du data
          Used_MB Mirror_used_MB
          1124510 1124510

          export ORACLE_SID=+ASM
          export ORACLE_HOME=$ORA_CRS_HOME
          sqlplus / as sysdba

          SQL> select name,total_mb-free_mb from v$asm_diskgroup;

          NAME TOTAL_MB-FREE_MB
          ------------------------------ ----------------
          DATA 1124575


          SQL> select name,(total_mb-free_mb)/1024/1024 from v$asm_diskgroup;-- gives in TB

          NAME (TOTAL_MB-FREE_MB)/1024/1024
          ------------------------------ ----------------------------
          DATA 1.07247829
          • 2. Re: du output in TB
            CKPT
            Ani wrote:
            HI,
            In ASM is there anyway where I can get the du o/p in TB. because i can see that du -h is not working . i am unix admin. so please help me if you can.
            ASMCMD> du
            Used_MB Mirror_used_MB
            1523 1523
            default value is in MB you have to convert it manually.
            Refer this note as well http://docs.oracle.com/cd/E11882_01/server.112/e18951/asm_util003.htm#BABIDEII
            • 3. Re: du output in TB
              Ani
              Thanks ALL.
              Regards,
              Ani