| Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_REPCAT, 2 of 2
| Subprogram | Description |
|---|---|
|
Adds members to an existing column group. |
|
|
Adds another master site to your replication environment. |
|
|
Adds the master sites in the |
|
|
Adds a member to a priority group. |
|
|
Adds a new site to a site priority group. |
|
|
Designates a method for resolving an update, delete, or uniqueness conflict. |
|
|
Alters the values for parameters stored in the |
|
|
Alters the propagation method for a specified replication group at a specified master site. |
|
|
Alters an object in your replication environment. |
|
|
Alters the propagation method for a specified replication group at the current materialized view site. |
|
|
Alters the priority level associated with a specified priority group member. |
|
|
Alters the value of a member in a priority group. |
|
|
Alters the priority level associated with a specified site. |
|
|
Alters the site associated with a specified priority level. |
|
|
Stops collecting statistics about the successful resolution of update, uniqueness, and delete conflicts for a table. |
|
|
Updates the comment field in the |
|
|
Updates the |
|
|
COMMENT_ON_PRIORITY_GROUP/COMMENT_ON_SITE_PRIORITY Procedures |
Updates the comment field in the |
|
Updates the comment field in the |
|
|
Updates the comment field in the |
|
|
Updates the comment field in the |
|
|
Updates the comment field in the |
|
|
Specifies whether to compare old column values at each master site for each nonkey column of a replicated table for updates and deletes. |
|
|
Creates a new, empty, quiesced master group. |
|
|
Specifies that an object is a replicated object. |
|
|
Creates a new, empty materialized view group in your local database. |
|
|
Adds a replicated object to a materialized view group. |
|
|
Creates an empty column group. |
|
|
Creates a new priority group for a master group. |
|
|
Creates a new site priority group for a master group. |
|
|
Executes the local outstanding deferred administrative procedures for the specified master group at the current master site, or for all master sites. |
|
|
Drops a column group. |
|
|
Removes members from a column group. |
|
|
Drops a master group from your current site. |
|
|
Drops a replicated object from a master group. |
|
|
Drops a replicated object from a master group. |
|
|
Drops a materialized view site from your replication environment. |
|
|
Drops a replicated object from a materialized view site. |
|
|
Drops a member of a priority group by priority level. |
|
|
Drops a priority group for a specified master group. |
|
|
Drops a member of a priority group by value. |
|
|
Drops a site priority group for a specified master group. |
|
|
Drops a specified site, by name, from a site priority group. |
|
|
Drops an update, delete, or uniqueness conflict resolution method. |
|
|
Supplies DDL that you want to have executed at each master site. |
|
|
Activates triggers and generate packages needed to support the replication of updatable materialized views or procedural replication. |
|
|
Generates the triggers, packages, and procedures needed to support replication for a specified object. |
|
|
Creates a new column group with one or more members. |
|
|
Changes the global name of the database you are adding to a master group. |
|
|
Removes local messages in the |
|
|
Removes information from the |
|
|
Refreshes a materialized view group with the most recent data from its associated master site or master materialized view site. |
|
|
Facilitates the administration of materialized views at their respective master sites or master materialized view sites by inserting, modifying, or deleting from |
|
|
Collects information about the successful resolution of update, delete, and uniqueness conflicts for a table. |
|
|
Changes your master definition site to another master site in your replication environment. |
|
|
Removes one or more master databases from a replication environment. |
|
|
Renames the shadow column group of a replicated table to make it a named column group. |
|
|
Ensures that the objects in the master group have the appropriate object identifiers and status values after you perform an export/import of a replicated object or an object used by the advanced replication facility. |
|
|
Resumes normal replication activity after quiescing a replication environment. |
|
|
Indicates that export is effectively finished and propagation for both extended and unaffected replication groups existing at master sites can be enabled. |
|
|
Specifies whether to send old column values for each nonkey column of a replicated table for updates and deletes. |
|
|
Specifies use of an alternate column or group of columns, instead of the primary key, to determine which columns of a table to compare when using row-level replication. |
|
|
Specifies the master sites you intend to add to an existing replication group without quiescing the group. |
|
|
Suspends replication activity for a master group. |
|
|
Changes the master site of a materialized view group to another master site. |
|
|
Undoes all of the changes made by the |
|
|
Facilitates the administration of materialized views at their respective master sites and master materialized view sites by inserting, modifying, or deleting from |
|
|
Validates the correctness of key conditions of a multimaster replication environment. |
|
|
Determines whether changes that were asynchronously propagated to a master site have been applied. |
This procedure adds members to an existing column group. You must call this procedure from the master definition site.
DBMS_REPCAT.ADD_GROUPED_COLUMN ( sname IN VARCHAR2, oname IN VARCHAR2, column_group IN VARCHAR2, list_of_column_names IN VARCHAR2 | DBMS_REPCAT.VARCHAR2s);
This procedure adds another master site to your replication environment. This procedure regenerates all the triggers and their associated packages at existing master sites. You must call this procedure from the master definition site.
DBMS_REPCAT.ADD_MASTER_DATABASE ( gname IN VARCHAR2, master IN VARCHAR2, use_existing_objects IN BOOLEAN := true, copy_rows IN BOOLEAN := true, comment IN VARCHAR2 := '', propagation_mode IN VARCHAR2 := 'ASYNCHRONOUS', fname IN VARCHAR2 := NULL);
This procedure adds the master sites in the DBA_REPSITES_NEW data dictionary view to the master groups specified when the SPECIFY_NEW_MASTERS procedure was run. Information about these new master sites are added to the replication catalog at all available master sites.
All master sites instantiated with object-level export/import must be accessible at this time. Their new replication groups are added in the quiesced state. Master sites instantiated through full database export/import or through changed-based recovery do not need to be accessible.
Run this procedure after you run the SPECIFY_NEW_MASTERS procedure.
DBMS_REPCAT.ADD_NEW_MASTERS ( export_required IN BOOLEAN, { available_master_list IN VARCHAR2, | available_master_table IN DBMS_UTILITY.DBLINK_ARRAY,} masterdef_flashback_scn OUT NUMBER, extension_id OUT RAW, break_trans_to_masterdef IN BOOLEAN := false, break_trans_to_new_masters IN BOOLEAN := false, percentage_for_catchup_mdef IN BINARY_INTEGER := 100, cycle_seconds_mdef IN BINARY_INTEGER := 60, percentage_for_catchup_new IN BINARY_INTEGER := 100, cycle_seconds_new IN BINARY_INTEGER := 60);
|
Note: This procedure is overloaded. The |
For a new master site to be instantiated using change-based recovery or full database export/import, the following conditions apply:
For object-level export/import, before importing ensure that all the requests in the DBA_REPCATLOG data dictionary view for the extended groups have been processed without any error.
This procedure adds a member to a priority group. You must call this procedure from the master definition site. The procedure that you must call is determined by the datatype of your priority column. You must call this procedure once for each of the possible values of the priority column.
| See Also:
Oracle9i Replication for more information about conflict resolution methods |
DBMS_REPCAT.ADD_PRIORITY_datatype ( gname IN VARCHAR2, pgroup IN VARCHAR2, value IN datatype, priority IN NUMBER);
where datatype:
{ NUMBER | VARCHAR2 | CHAR | DATE | RAW | NCHAR | NVARCHAR2 }
This procedure adds a new site to a site priority group. You must call this procedure from the master definition site.
| See Also:
Oracle9i Replication for more information about conflict resolution methods |
DBMS_REPCAT.ADD_SITE_PRIORITY_SITE ( gname IN VARCHAR2, name IN VARCHAR2 site IN VARCHAR2, priority IN NUMBER);
These procedures designate a method for resolving an update, delete, or uniqueness conflict. You must call these procedures from the master definition site. The procedure that you need to call is determined by the type of conflict that the routine resolves.
| Conflict Type | Procedure Name |
|---|---|
|
update |
ADD_UPDATE_RESOLUTION |
|
uniqueness |
ADD_UNIQUE_RESOLUTION |
|
delete |
ADD_DELETE_RESOLUTION |
| See Also:
Oracle9i Replication for more information about designating methods to resolve update conflicts, selecting uniqueness conflict resolution methods, and assigning delete conflict resolution methods |
DBMS_REPCAT.ADD_UPDATE_RESOLUTION ( sname IN VARCHAR2, oname IN VARCHAR2, column_group IN VARCHAR2, sequence_no IN NUMBER, method IN VARCHAR2, parameter_column_name IN VARCHAR2 | DBMS_REPCAT.VARCHAR2s | DBMS_UTILITY.LNAME_ARRAY, priority_group IN VARCHAR2 := NULL, function_name IN VARCHAR2 := NULL, comment IN VARCHAR2 := NULL); DBMS_REPCAT.ADD_DELETE_RESOLUTION ( sname IN VARCHAR2, oname IN VARCHAR2, sequence_no IN NUMBER, parameter_column_name IN VARCHAR2 | DBMS_REPCAT.VARCHAR2s, function_name IN VARCHAR2, comment IN VARCHAR2 := NULL method IN VARCHAR2 := 'USER FUNCTION'); DBMS_REPCAT.ADD_UNIQUE_RESOLUTION( sname IN VARCHAR2, oname IN VARCHAR2, constraint_name IN VARCHAR2, sequence_no IN NUMBER, method IN VARCHAR2, parameter_column_name IN VARCHAR2 | DBMS_REPCAT.VARCHAR2s | DBMS_UTILITY.LNAME_ARRAY, function_name IN VARCHAR2 := NULL, comment IN VARCHAR2 := NULL);
| Parameter | Description |
|---|---|
|
sname |
Name of the schema containing the table to be replicated. |
|
oname |
Name of the table to which you are adding a conflict resolution routine. The table can be the storage table of a nested table. |
|
column_group |
Name of the column group to which you are adding a conflict resolution routine. Column groups are required for update conflict resolution routines only. |
|
constraint_name |
Name of the unique constraint or unique index for which you are adding a conflict resolution routine. Use the name of the unique index if it differs from the name of the associated unique constraint. Constraint names are required for uniqueness conflict resolution routines only. |
|
sequence_no |
Order in which the designated conflict resolution methods should be applied. |
|
method |
Type of conflict resolution routine that you want to create. This can be the name of one of the standard routines provided with advanced replication, or, if you have written your own routine, you should choose The standard methods supported in this release for update conflicts are:
The standard methods supported in this release for uniqueness conflicts are: |
|
parameter_column_name |
Name of the columns used to resolve the conflict. The standard methods operate on a single column. For example, if you are using the For update or unique conflicts, this parameter accepts either a comma-delimited list of column names, or a PL/SQL index-by table of type For delete conflicts, this parameter accepts either a comma-delimited list of column names or a PL/SQL index-by table of type DBMS_REPCAT.VARCHAR2. The single value LOB columns cannot be specified for this parameter. See Also: "Usage Notes" if you are using column objects |
|
priority_group |
If you are using the See Oracle9i Replication for more information. If you are using a different method, you can use the default value for this parameter, |
|
function_name |
If you selected the |
|
comment |
This user comment is added to the |
If you are using column objects, then whether you can specify the attributes of the column objects for the parameter_column_name parameter depends on whether the conflict resolution method is built-in (Oracle supplied) or user-created:
cust_address has street_address as an attribute, then you can specify cust_address.street_address for this parameter.REF, or an entire column object.cust_address has street_address as an attribute (among other attributes), then you can specify only cust_address for this parameter.This procedure alters the values for the following parameters stored in the DBA_REPEXTENSIONS data dictionary view:
These parameters were originally set by the ADD_NEW_MASTERS procedure. The new values you specify for these parameters are used during the remaining steps in the process of adding new master sites to a master group. These changes are only to the site at which it is executed. Therefore, it must be executed at each master site, including the master definition site, if you want to alter parameters at all sites.
DBMS_REPCAT.ALTER_CATCHUP_PARAMETERS ( extension_id IN RAW, percentage_for_catchup_mdef IN BINARY_INTEGER := NULL, cycle_seconds_mdef IN BINARY_INTEGER := NULL, percentage_for_catchup_new IN BINARY_INTEGER := NULL, cycle_seconds_new IN BINARY_INTEGER := NULL);
This procedure alters the propagation method for a specified replication group at a specified master site. This replication group must be quiesced. You must call this procedure from the master definition site. If the master appears in the dblink_list or dblink_table, then ALTER_MASTER_PROPAGATION ignores that database link. You cannot change the propagation mode from a master to itself.
DBMS_REPCAT.ALTER_MASTER_PROPAGATION ( gname IN VARCHAR2, master IN VARCHAR2, { dblink_list IN VARCHAR2, | dblink_table IN dbms_utility.dblink_array,} propagation_mode IN VARCHAR2 : ='asynchronous', comment IN VARCHAR2 := '');
|
Note: This procedure is overloaded. The |
This procedure alters an object in your replication environment. You must call this procedure from the master definition site.
This procedure requires that you quiesce the master group of the object if either of the following conditions is true:
safe_table_change parameter set to false in a single master replication environment.You can use this procedure to alter nontable objects without quiescing the master group.
DBMS_REPCAT.ALTER_MASTER_REPOBJECT ( sname IN VARCHAR2, oname IN VARCHAR2, type IN VARCHAR2, ddl_text IN VARCHAR2, comment IN VARCHAR2 := '', retry IN BOOLEAN := false safe_table_change IN BOOLEAN := false);
This procedure alters the propagation method for a specified replication group at the current materialized view site. This procedure pushes the deferred transaction queue at the materialized view site, locks the materialized view base tables, and regenerates any triggers and their associated packages. You must call this procedure from the materialized view site.
DBMS_REPCAT.ALTER_MVIEW_PROPAGATION ( gname IN VARCHAR2, propagation_mode IN VARCHAR2, comment IN VARCHAR2 := '' gowner IN VARCHAR2 := 'PUBLIC');
This procedure alters the priority level associated with a specified priority group member. You must call this procedure from the master definition site.
| See Also:
Oracle9i Replication for more information about conflict resolution methods |
DBMS_REPCAT.ALTER_PRIORITY ( gname IN VARCHAR2, pgroup IN VARCHAR2, old_priority IN NUMBER, new_priority IN NUMBER);
This procedure alters the value of a member in a priority group. You must call this procedure from the master definition site. The procedure that you must call is determined by the datatype of your priority column.
| See Also:
Oracle9i Replication for more information about conflict resolution methods |
DBMS_REPCAT.ALTER_PRIORITY_datatype ( gname IN VARCHAR2, pgroup IN VARCHAR2, old_value IN datatype, new_value IN datatype);
where datatype:
{ NUMBER | VARCHAR2