Your browser does not support JavaScript. This help page requires JavaScript to render correctly.
Previous
Previous
 
Next
Next

Executing DDL Within a Master Group

Oracle Enterprise Manager lets you propagate one or more SQL DDL statements to some or all of the master sites in a master group. This option lets you execute unique DDL that is not specifically supported within Oracle's replication management API. For example:

Caution: Do not execute DDL that could damage global database integrity in a multimaster environment. Also, to alter the definition of a replication object in a master group, you should always use Oracle Enterprise Manager (or an equivalent replication management API call). Use of other Enterprise Manager tools or a SQL DDL command in SQL*Plus (for example, ALTER TABLE) to directly alter an object in a replicated environment does not necessarily propagate DDL changes to the object at other sites in the system.

Consider the following issues before and after executing the DDL:

Note: Local customization of individual replicas at materialized view or master sites is outside the scope of Oracle Replication. As a replication administrator, you must ensure that local customizations do not interfere with any global customizations done with Oracle Enterprise Manager.

To execute DDL at selected master sites in a master group:

  1. In Enterprise Manager, connect to the Database Instance Home page as the replication administrator.

  2. Click Data Movement.

  3. Under the Advanced Replication section, click Manage.

    The Administration Overview page appears.

  4. Under the Multimaster Replication section, click the number link next to callbackMaster Groups to open the Master Groups page.

  5. Select the target master group that contains the object for which you want to execute the DDL and click the number in the Replicated Object column.

    The Replicated Objects page appears.

  6. Select the object for which you want to execute the DDL and click Edit.

    The General subpage of the Edit Replicated Object page appears.

  7. Click Advanced to display the Enter DDL Text field.

  8. Enter the DDL to be executed in the Enter DDL Text field.

    Note: Do not include the terminating semi-colon (;) at the end of the DDL statement.

  9. Click Apply to execute the specified DDL at the selected master group.

API Equivalent: DBMS_REPCAT.EXECUTE_DDL

Related Topics

Distributed Schema Management