ORA-19271: XP0051 - invalid atomic type definition
Cause : The QName used as an AtomicType in a SequenceType was not defined in the in-scope type definitions as an atomic type.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Use the correct atomic type name.
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.