Syntax for Starting ASMCMD

The syntax for starting ASMCMD in interactive mode is:

asmcmd [-V]
asmcmd [--nocp] [-v {errors|warnings|normal|info|debug}]
           [--privilege connection_type ] [-p]

Table 10-2 summarizes the ASMCMD options.


Table 10-2 ASMCMD interactive options

Option Description

-V

Displays the version of ASMCMD and then exits.

--nocp

Disables connection pooling. For information about connection pooling, refer to Oracle Database Administrator's Guide.

-v display_level

Displays additional information with some commands to help users diagnose problems and writes to a message file when logging is required. normal is the default if the display level is not specified.

--privilege connection_type

Specifies the privilege to connect as when accessing an Oracle ASM or database instance. Can be either SYSASM or SYSDBA. The default is SYSASM and is used when administering the Oracle ASM instance.

-p

Displays the current directory in the prompt.


ASMCMD can be started with multiple options. For example:

asmcmd -p -v info

For the majority of the examples in this chapter, ASMCMD was started with the -p option.