Oracle9i Application Developer's Guide - Workspace Manager Release 2 (9.2) Part Number A96628-01 |
|
Workspace Manager supports replication of all workspace-related entities (such as workspaces and savepoints), operations (such as CreateWorkspace and MergeWorkspace), and DML and DDL operations on version-enabled tables. To use replication in a Workspace Manager environment, you must understand the major replication concepts and techniques, as documented in Oracle9i Replication and Oracle9i Replication Management API Reference. However, some special guidelines and procedures apply to replication with Workspace Manager, as described in this appendix.
Workspace Manager supports multimaster replication in an asynchronous mode with certain restrictions. The main restriction imposed on the replication sites is that only the master definition site in the multimaster setup can perform workspace operations and DML and DDL operations on version-enabled tables. All other sites are disallowed from performing any write operations. All read operations, such as GotoWorkspace or SELECT queries on version-enabled tables, are allowed on all sites in the replication environment.
In a Workspace Manager replication environment, the master definition site is referred to as the writer site, and all other master sites in the multimaster group are referred to as nonwriter sites.
This section describes the typical steps for setting up a replication environment for a database with workspaces and version-enabled tables.
OWM-GROUP
and designates BACKUP-SITE1.ACME.COM
and BACKUP-SITE1.ACME.COM
as nonwriter sites.
DBMS_WM.GenerateReplicationSupport( mastersites => `BACKUP-SITE1.ACME.COM, BACKUP-SITE2.ACME.COM'); groupname => `OWM-GROUP', groupdescription => `OWM Replication group for Acme Corp.');
If you need to drop replication support for the Workspace Manager environment, execute the DropReplicationSupport procedure.
For reference and usage information about these procedures, see the sections on the GenerateReplicationSupport and DropReplicationSupport procedures in Chapter 2.
After Workspace Manager replication support has been set up (as described in Section C.1), you can version-enable a table to be replicated by executing the EnableVersioning procedure on the writer site, as long as the table is defined in exactly the same way on all the nonwriter sites. For example, to enable versioning on the SCOTT.EMP table on all master sites, execute the following as the replication administrator on the writer site:
SQL> EXECUTE DBMS_WM.EnableVersioning(`SCOTT.EMP');
This example performs the following operations:
To disable versioning on a table in a Workspace Manager replication environment, execute the DisableVersioning procedure on the writer site. For example, to disable versioning on the SCOTT.EMP table on all master sites, execute the following as the replication administrator on the writer site:
SQL> EXECUTE DBMS_WM.DisableVersioning(`SCOTT.EMP');
This example performs the following operations:
To perform DDL operations on any version-enabled table, you must follow the guidelines in Section 1.6. If the version-enabled table is replicated, the following additional guidelines apply:
The writer site in a Workspace Manager replication environment can be changed after the environment is set up without quiescing the master groups. Relocating the writer site is especially useful when the writer site becomes unavailable and a new writer site needs to be specified.
To relocate the writer site, execute the RelocateWriterSite procedure. For guidelines and an example, see the reference information about the RelocateWriterSite procedure in Chapter 2.
If the old writer site is not available when you relocate the writer site, you must execute the SynchronizeSite procedure after the old writer site becomes available. For guidelines and an example, see the reference information about the SynchronizeSite procedure in Chapter 2.
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|