Name

DBMS_REPCAT.EXECUTE_DDL

Synopsis

CREATE_MASTER_REPOBJECT and DROP_MASTER_REPOBJECT do not support every type of object. For example, you cannot use these procedures to drop and create constraints. Enter the EXECUTE_DDL procedure. EXECUTE_DDL allows you to perform DDL at one or more master sites. The replication group may or may not be quiesced. You can monitor the progress of the DDL call by monitoring the REPCATLOG data dictionary view (DBA_REPCATLOG).

PROCEDURE DBMS_DEFER_SYS.EXECUTE_DDL
   (gname        IN VARCHAR2 := '',
    {master_list IN VARCHAR2 := NULL, | 
    master_table IN dbms_utility.dblink_array,}
    ddl_text     IN VARCHAR2,
    sname        IN VARCHAR2 := '');

Parameters

Parameter Name

Description

gname

Name of the replicated object group.

master_list

Comma-separated string of master site global names at which DDL is to be performed. If NULL (the default), DDL is applied at all master sites in the replication group. Use either parameter master_list or master_table.

master_table

PL/SQL table of master site global names at which DDL is to be performed. Use either parameter master_list or master_table.

ddl_text

DDL statement to apply.

sname (Oracle7 only)

Schema name (provided for pre-Oracle 7.3 compatibility).

Exceptions

Exception Name

Number

Description

commfailure

–23317

Unable to communicate with the master site.

ddlfailure

–23318

Unable to perform DDL.

nonmaster

–23312

At least one site in master_list or master_table is not a master site.

nonmasterdef

–23312

Calling site is not a master definition site.

Restrictions

  • This procedure ...

Get Oracle Distributed Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.