pwcreate

Purpose

Creates an Oracle ASM or database instance password file at the specified location.

Syntax and Description

pwcreate { --asm  |--dbuniquename string } file_path sys_password

Table 10-11 lists the options for the pwcreate command.


Table 10-11 Options for the pwcreate 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.

file_path

The file_path value identifies the location where the password file is created.

sys_password

The sys_password value identifies the initial SYS password.


pwcreate creates a password file in the disk group specified by file_path with an initial SYS password identified by sys_password.

Either –-asm or --dbuniquename is required. The compatible.asm disk group attribute must be set to 12.1 or higher for the disk group where the password is to be located.

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

For additional information, refer to "Managing a Shared Password File in a Disk Group".

Example

The following example creates an Oracle ASM password file in an Oracle ASM disk group.

Example 10-13 Using the ASMCMD pwcreate command

ASMCMD [+] > pwcreate –-asm '+DATA/orapwasm' 'welcome'