ORA-01178: file string created before last CREATE CONTROLFILE, cannot recreate
Cause : Attempted to use ALTER DATABASE CREATE DATAFILE to recreate a datafile that existed at the last CREATE CONTROLFILE command. The information needed to recreate the file was lost with the control file that existed when the file was added to the database.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Find a backup of the file, and recover it. Do incomplete recovery to time before file was originally created.
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.