Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_PROPAGATION_ADM, 2 of 2
Adds, alters, or removes a rule set for a propagation job.
See Also:
Oracle9i Streams and Chapter 64, "DBMS_RULE_ADM" for more information about rules and rule sets |
DBMS_PROPAGATION_ADM.ALTER_PROPAGATION( propagation_name IN VARCHAR2, rule_set_name IN VARCHAR2);
Creates a propagation job and specifies the source queue, destination queue, and any rule set for the propagation job. A propagation job propagates events in a local source queue to a destination queue. The destination queue may or may not be in the same database as the source queue. The user who runs this procedure owns the propagation job.
This procedure also starts propagation and establishes a default schedule for the propagation job. The default schedule has the following properties:
SYSDATE()
.NULL
, which means infinite.NULL
, which means that propagation restarts as soon as it finishes the current duration.After the propagation job is created, you can administer it using the following procedures in the DBMS_AQADM
package:
ALTER_PROPAGATION_SCHEDULE
procedure.DISABLE_PROPAGATION_SCHEDULE
procedure and specify the source queue for the queue_name
parameter and the database link for the destination
parameter.ENABLE_PROPAGATION_SCHEDULE
procedure and specify the source queue for the queue_name
parameter and the database link for the destination
parameter. Restarting propagation may be necessary if a propagation job is disabled automatically due to errors.These types of changes affect all propagation jobs on the database link for the source queue.
The user who owns the source queue is the user who propagates events. This user must have the necessary privileges to propagate events. These privileges include the following:
If the propagation job propagates events to a destination queue in a remote database, then the owner of the source queue must be able to use the propagation job's database link and the user to which the database link connects at the remote database must have enqueue privilege on the destination queue.
DBMS_PROPAGATION_ADM.CREATE_PROPAGATION( propagation_name IN VARCHAR2, source_queue IN VARCHAR2, destination_queue IN VARCHAR2, destination_dblink IN VARCHAR2 DEFAULT NULL, rule_set_name IN VARCHAR2 DEFAULT NULL);
Drops a propagation job and deletes all messages for the destination queue in the source queue. This procedure also removes the schedule for propagation from the source queue to the destination queue.
DBMS_PROPAGATION_ADM.DROP_PROPAGATION( propagation_name IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the propagation job being dropped. You must specify an existing propagation job name. |
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|