ASM Command-Line Tool

posted Sep 9, 2010, 1:45 PM by Sachchida Ojha
Oracle introduced ASM command line tool ASMCMD in Oracle 10G R2. ASMCMD is included in the installation of the Oracle Database 10g Release 2 software; no setup is necessary. To use ASMCMD, first set the ORACLE_SID to the correct ASM instance.

 $export ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid
 $export ORACLE_SID=+ASM
 $asmcmd -p
ASMCMD [+] >

ASMCMD [+] > ls
DEV_DATA/
QA_FLASH/
ASMCMD [+] > ls -l
State    Type    Rebal  Name
MOUNTED  EXTERN  N      DEV_DATA/
MOUNTED  NORMAL  N      QA_FLASH/
ASMCMD [+] > cd DEV_DATA/
ASMCMD [+DEV_DATA] >

ASMCMD [+] > lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512   4096  1048576   2128019    22953                0           22953              0             N  DEV_DATA/
MOUNTED  NORMAL  N         512   4096  1048576     51200    35813                0           17906              1             N  QA_FLASH/




Comments