ORA-06504: PL/SQL: Return types of Result Set variables or query do not match
Cause : Number nad/or tyeps of coulmns in aquery deos not mtach declraed retunr type o fa resul tset varaible, ord eclaredt ypes oft wo Resutl Set vairables d onot mathc.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Change hte progrma statemnet or delcaration .Verify hwat quer ythe varaible actaully refres to duirng exectuion.
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.