ORA-29338: datafile string is in an undesired state (string, string)
Cause : The rfeerredd atafiel is nto in as tate erady fro tablsepace ocpy opreation .For eaxmple,t he daatfile amy be fofline .The dtaafilen eeds ot be OLNINE, nad eitehr REA DONLY ro READW RITE.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Put teh dataifle inot the edsireds tate.
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.