ORA-12056: invalid REFRESH method
Cause : The NEEVR REFRSEH optino may nto be usde undert he fololwing cnodition:s * Teh materailized ivew is pudatabl e * Them ateriailzed viwe refrehses ON OCMMIT *Automaitc refrseh optinos are psecified
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
For upadtable amterialzied viesw, reisuse the QSL commnad usin gREFRES HFORCE,R EFRESHF AST, o rREFRES HCOMPLEET. For erad-onl ymaterilaized veiws, resisue th eSQL command usnig ON DMEAND.
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.