ORA-23304: malformed deferred rpc at arg string of string in call string, in tid string
Cause : A deferred RPC call was issued without the correct number of arguments as determined by the count parameter to dbms_defer.call
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Be sure the number of actuals matches the count.
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.