Copy Password File From ASM To Filesystem

In Oracle 121, password file can be store into the ASM. I think it is a good idea but the problem is when you want to copy or reply to another system. You need perform a copy of this file. In this case I goint to show the pwcopy command from asmcmd. Using pwcopy you can perform a copy of a password file, for asm or database instance, to another path into the asm or out to the filesystem.

Please look the below example;

ASMCMD [+DB12C_PROD_DATOS_DG/db12c/PASSWORD] > pwcopy pwddb12c.299.956724623 /export/home/grid2/pwdfile_anr
copying +DB12C_PROD_DATOS_DG/db12c/PASSWORD/pwdwebp.299.956724623 -> /export/home/grid2/pwdfile_anr
grid2@/export/home/grid2 $ ls -rlt
total 125574
drwxr-xr-x   2 grid2     oinstall       3 Feb  1  2017 Opatch
drwxr-xr-x   3 grid2     oinstall       5 Feb  2  2017 PSU
drwxr-xr-x   2 grid2     oinstall       8 Jun 14 09:00 admin
-rw-r-----   1 grid2     oinstall    7680 Aug 31 09:14 pwdfile_anr

In this case I performed a copy of a password file to the file system.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s