pwget

Purpose

Returns the ___location of the password file for the Oracle ASM or database instance.

Syntax and Description

pwget { --asm | --dbuniquename string }

Table 10-13 lists the options for the pwget command.

Table 10-13 Options for the pwget command

Option Description

--asm

The --asm option associates the password file with the Oracle ASM instance that ASMCMD is logged into.

--dbuniquename string

The --dbuniquename string option identifies the database unique name associated with the password file.

pwget returns the ___location of the password file for the Oracle ASM instance identified by –-asm or the database instance identified by --dbuniquename.

The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database password files.

Example

The following example returns the ___location of the Oracle ASM password file.

Example 10-15 Using the ASMCMD pwget command

ASMCMD [+] > pwget --asm
+DATA/orapwasm