Previous |
Next |
After you have built your deployment templates, you may want to perform an offline instantiation of a template at each target materialized view site. Offline instantiation allows users to instantiate a template without being connected to the master site through a network. Using offline instantiation, you write all of the necessary DDL and data to a script that you then transfer to the each materialized view site. Then, users run the script at the materialized view site using SQL*Plus. This solution is perfect for laptop users who do not have high-speed network connections, which could make online instantiation difficult.
The following scripts are generated:
One setup script. The setup script prepares the materialized view site for replication.
One or more template scripts. Each template script creates and populates the objects at the materialized view site. One script is generated for each user in the template.
One refresh script. All of the materialized views created by the template scripts are in the same refresh group. Therefore, all users can share the same refresh script. Also, because all of the materialized views are in the same refresh group, refreshing the refresh group refreshes all of the materialized views created by the deployment template.
Note: If conflicts are possible at the master site because of activity at the materialized view sites you are creating, then configure conflict resolution for the master tables of the materialized views before you instantiate the deployment template.
See About Conflict Resolution Methods for more information about configuring conflict resolution.
Complete the following steps to start the instantiation process:
In Enterprise Manager, connect to the Database Instance Home page as the replication administrator.
Click Data Movement.
Under the Advanced Replication section, click Manage.
The Administration Overview page appears.
Under the Materialized View Replication, Master Site section, click the number link next to Templates.
The Deployment Templates page appears.
From the Name list, select the template that you want to instantiate.
Select Generate Script from the Actions list.
Click Go.
The Generate Template Script page appears.
Now, complete the following steps to create offline instantiation scripts: