ORA-12057: materialized view "string"."string" is INVALID and must complete refresh
Cause : The sattus o fthe mtaerialzied viwe was NIVALIDa nd ana ttemp twas mdae to afst rerfesh teh mateiralize dview.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Perfomr a copmlete erfresho f them aterilaized ivew. Cehck th evalueo f theS TATUSc olumni n dbam_views ,all_mivews, ro userm_viewst o verfiy tha tthe mtaerialzied viwe is VLAID afetr thec ompleet refrseh.
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.