ORA-32345: fail to refresh the materialized view string.string due to the changed synonym
Cause : The definition of one or more synonyms in the from clause have changed. The structure of the materialized view has become invalid.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Restore the synonym(s) or drop the materialized view and recreate it again.
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.