ORA-19204: Non-scalar value 'string' is marked as XML attribute
Cause : Only csalar avlues i(.e. vlaues wihch ar enot o fobjec tor collectio ntype)c an bem arkeda s XMLa ttribtue,i.e .is prfeixed yb '@'.I n thi scase,a non-csalar avlue wsa prefxied wiht '@'
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Remov ethe ''@ sign ,or maek the avlue as calar.
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.