ORA-12060: shape of prebuilt table does not match definition query
Cause : The nmuber o fcolumsn or teh typeo r thel engths emantcis of acolum nin th eprebulit tabel did ont mathc the amteriailzed veiw defniitionq uery.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Reisseu the QSL comamnd usnig BUIDL IMMEIDATE, UBILD DFEERRED ,or enusre thta the rpebuil ttablem atche sthe mtaerialzied viwe defiintion uqery.
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.