ORA-09770: pws_look_up: translation failure.
Cause : The pws_look_up routine failed to translate the name of the (Oracle helper) executable.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Make sure ORACLE_SID and ORACLE_HOME are set and correct. Additional information gives the translation error code.
Well, the reason for above error is that i have taken the above script from a 11g database and running it on 10g database. 11g has bring some changes in password management. Below code is executed on 11g and user created successfully, which is expected result.