ORA-07459: cannot restore the RESOURCE_MANAGER_PLAN parameter
Cause : An attempt was made to internally restore the RESOURCE_MANAGER_PLAN parameter to the value before it was internally set. This failed because the current plan was set by the user and therefore did not need to be restored.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
No action needed.
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.