ORA-24144: rules engine internal error, arguments: [string], [string]
Cause : An internal error occurred in the rules engine. This indicates that the rules engine has encountered an exception condition.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Please report this error as a bug. The first argument is the error and the second argument is the package.
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.