Below are the steps for creating password file for database in ASM diskgroup .

This method is valid only for oracle 12c onwards.

SYNTAX –

ASMCMD> pwcreate –dbuniquename {db_unique_name} {file_path}  {sys_password}

Example:

Here we will create a password file with dbuniquename PRDPRE.

Check whether new pwdfile is created or not:

We can check the database config using srvctl also:

Another alternative way to create password file inside asm diskgroup is: