Datasheet
Working with the ASM Instance
27
Using the ASMCMD Command-Line Utility
The ASMCMD tool is a command-line utility that allows you to manage ASM instances
and the disk structures and files within those instances. With ASMCMD, you can do the
following:
List contents of ASM disk groups
Perform searches (like directory listings)
Add or remove directories
Display space availability and utilization
ASMCMD allows you to traverse the ASM disks as you would a directory structure.
From the root of the ASM instance, you can move down the various disk structures to find
the disks you are interested in. Many of the commands in ASMCMD are Unix-like (in
other words,
ls, cd) and therefore the ASMCMD is fairly easy to learn how to use.
Starting ASMCMD
To start ASMCMD, simply set your ORACLE_SID to +ASM and then type asmcmd from the
command line, as shown here:
C:\>set ORACLE_SID=+ASM
C:\>asmcmd
Or from Unix:
/opt/oracle>export ORACLE_SID=+ASM
/opt/oracle>asmcmd
You will need to make sure that perl.exe is in the path before you run
ASMCMD. If you have installed more than one
ORACLE_HOME, it may take
some setup to get the pathing set correctly. Make sure the following is set
to the correct
ORACLE_HOME:
ORACLE_HOME
PATH
PERL5LIB
PERLBIN
When ASMCMD starts, you will see the ASMCMD prompt, as shown here:
ASMCMD>
95134c01.indd 27 1/28/09 9:43:44 AM










