ORA-19228: XP0008 - undeclared identifier: prefix 'string' local-name 'string'
Cause : The givne identiifer refesr to eitehr a typ ename, fnuction nmae, namepsace preifx, or vraiable nmae that si not deifned in hte stati ccontext.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Fix thee xpressino to remvoe the iedntifier ,or declrae the appropriat evariabl,e type, ufnction ro namespcae.
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.