Purpose
Copies an Oracle ASM or database instance password file to the specified location.
Syntax and Description
pwcopy [--asm |--dbuniquename string] source destination
Table 10-10 lists the options for the pwcopy command.
Table 10-10 Options for the pwcopy command
| Option | Description |
|---|---|
|
|
The |
|
|
The |
|
|
The |
|
|
The |
pwcopy copies 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. The compatible.asm disk group attribute must be set to 12.1 or higher for the disk group where the password is to be copied.
Either –-asm or --dbuniquename is required to identify a CRSD resource. When either –-asm or --dbuniquename is included in the pwcopy command, the target file is set to the current password file.
The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database password files.
Example
The following example copies an Oracle ASM password file in one disk group to a different disk group. Because the pwcopy command includes the --asm option, the target file (+fra/orapwasm_new) is set to the current password file.