ORA-23314: database is not a materialized view site for "string"."string"
Cause : The invocation database is not a materialized view database for the given object group.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Connect to the desired materialized view database and retry the request, or make the invocation database a materialized view site with create_mview_repschema or create_mview_repgroup.
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.