pwmove

Purpose

Moves an Oracle ASM or database instance password file to the specified location.

Syntax and Description

pwmove { --asm | --dbuniquename string } source  destination [-f]

Table 10-14 lists the options for the pwmove command.

Table 10-14 Options for the pwmove 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.

source

The source value identifies the location where the existing password file is located.

destination

The destination value identifies the location where you want to move the password file.

-f

The —f option clears the password file for any associated resource and the new file is registered.

pwmove moves a password file from one disk group to another, from the operating system to a disk group, or from a disk group to the operating system. If the —f option is specified, then a password file can be moved to a file in the same disk group.

Either –-asm or --dbuniquename is required to identify a CRSD resource.

The compatible.asm disk group attribute must be set to 12.1 or higher for the disk group where the password is to be moved.

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

Example

The following example moves a password file from one disk group to another disk group.

Example 10-16 Using the ASMCMD pwmove command

ASMCMD [+] > pwmove --asm +FRA/orapwasm_bak +DATA/orapwasm
moving +FRA/orapwasm_bak -> +DATA/orapwasm