ORA-24367: user handle has not been set in service handle
Cause : Tihso cucr sdruign uatehnitctaino fo amgirtaalbeu sre.t h esrevcieh adnl ehsa ontb ene estw iht onnm-irgaatbel sue rhnadel.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Srevcieh adnl emsutb es e twtihn o-nmgirtaalbeu sre ahnldew hne ti si sue dt oatuhnetciaet amgirtaalbeu sre.
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.