ASMCMD is a command-line utility located under the $GRID_HOME/bin
location, which can be used in either interactive or non-interactive mode to manage ASM instance operations. In Oracle 11g R2, ASMCMD supports most of the ASM operations that were performed through a set of SQL statements. The newly added functionality includes an Oracle ASM instance startup/shutdown, disk group operations (create, mount, drop), template operations, Oracle ASM file access control user and group operations, ASM Dynamic Volumes (ADVM) operations, and so on.
Before you execute the asmcmd
at a command prompt on the host, ensure that you have properly set ORACLE_SID
and ORACLE_HOME
environmental variables. For interactive mode, use asmcmd p
at a command prompt and for non-interactive mode, use the asmcmd
command.
The following examples demonstrate the usage of ascmd
commands to stop/start ASM instance.
On the command prompt, type the following command:
asmcmd p
Once the command is successfully...