Oracle® Database XStream Guide 11g Release 2 (11.2) Part Number E15874-01 |
|
|
View PDF |
The DBMS_APPLY_ADM
package, one of a set of Oracle Streams packages, provides subprograms to configure and manage apply processes, outbound servers, and inbound servers.
All of the subprograms in this package can manage Oracle Streams apply processes. In an XStream configuration, an apply process can also function as an XStream outbound server or inbound server. A subset of the subprograms in this package can manage outbound servers and inbound servers.
The following sections describe how these subprograms work with outbound servers and inbound servers:
Table 8-1 shows whether a subprogram in this package can manage an outbound server. This table also provides notes about how the subprogram works with an outbound server. Also, when a subprogram can manage an outbound server, the parameters in the subprogram work the same way for an outbound server as they would for an apply process, unless the "Notes" column in the table describes different behavior for a parameter.
Table 8-1 DBMS_APPLY_ADM Subprograms and Outbound Servers
Subprogram | Purpose | Can Manage an Outbound Server? | Notes |
---|---|---|---|
|
Adds a statement DML handler for a specified operation on a specified database object to a single Oracle Streams apply process or to all apply processes in the database |
No |
Outbound servers ignore all apply handlers. |
|
Alters an Oracle Streams outbound server |
Yes |
Outbound servers only process LCRs. Therefore, outbound servers ignore message handlers specified in the The |
|
Specifies whether to compare the old value of one or more columns in a row logical change record (row LCR) with the current value of the corresponding columns at the destination site during apply |
No |
This procedure cannot manage an outbound server. |
|
Creates an apply process |
No |
This procedure cannot create an outbound server. |
|
Creates an object dependency |
No |
This procedure cannot manage an outbound server. |
|
Deletes all the error transactions for the specified apply process |
No |
This procedure cannot manage an outbound server. |
|
Deletes the specified error transaction |
No |
This procedure cannot manage an outbound server. |
|
Drops an outbound server |
Yes |
When the |
|
Drops an object dependency |
No |
This procedure cannot manage an outbound server. |
|
Reexecutes the error transactions for the specified apply process. |
No |
Outbound servers do not enqueue error transactions into an error queue. |
|
Reexecutes the specified error transaction |
No |
Outbound servers do not enqueue error transactions into an error queue. |
|
Returns the message payload from the error queue for the specified message number and transaction identifier |
No |
This procedure cannot manage an outbound server. |
|
Removes a statement DML handler for a specified operation on a specified database object from a single apply process or from all apply processes in the database |
No |
This procedure cannot manage an outbound server. |
|
Sets or unsets a statement DML handler that tracks changes for a specified operation on a specified database object for a single apply process |
No |
Outbound servers ignore all apply handlers. |
|
Sets a user procedure as a procedure DML handler for a specified operation on a specified database object for a single apply process or for all apply processes in the database |
No |
Outbound servers ignore all apply handlers. |
|
Sets the queue where the apply process automatically enqueues a message that satisfies the specified rule |
No |
This procedure cannot manage an outbound server. |
|
Specifies whether a message that satisfies the specified rule is executed by an apply process |
No |
This procedure cannot manage an outbound server. |
|
Records the specified instantiation SCN for the specified source database and, optionally, for the schemas at the source database and the tables owned by these schemas |
Yes |
The See Also: "Apply Process Features That Are Applicable to Outbound Servers" for more information about outbound servers and instantiation SCNs |
|
Records the set of columns to be used as the substitute primary key for local apply purposes and removes existing substitute primary key columns for the specified object if they exist |
No |
This procedure cannot manage an outbound server. |
|
Sets an apply parameter to the specified value |
Yes |
Outbound servers ignore the settings for the following apply parameters:
The You can use the other apply parameters with outbound servers. |
|
Records the specified instantiation SCN for the specified schema in the specified source database and, optionally, for the tables owned by the schema at the source database |
Yes |
The See Also: "Apply Process Features That Are Applicable to Outbound Servers" for more information about outbound servers and instantiation SCNs |
|
Records the specified instantiation SCN for the specified table in the specified source database |
Yes |
The See Also: "Apply Process Features That Are Applicable to Outbound Servers" for more information about outbound servers and instantiation SCNs |
|
Adds, updates, or drops an update conflict handler for the specified object |
No |
This procedure cannot manage an outbound server. |
|
Sets or removes a value dependency |
No |
This procedure cannot manage an outbound server. |
|
Directs the outbound server to start applying messages |
Yes |
This procedure functions the same way for apply processes and outbound servers. |
|
Stops the outbound server from applying any messages and rolls back any unfinished transactions being applied |
Yes |
This procedure functions the same way for apply processes and outbound servers. |
Table 8-2 shows whether a subprogram in this package can manage an inbound server. This table also provides notes about how the subprogram works with an inbound server. Also, when a subprogram can manage an inbound server, the parameters in the subprogram work the same way for an inbound server as they would for an apply process, unless the "Notes" column in the table describes different behavior for a parameter.
Table 8-2 DBMS_APPLY_ADM Subprograms and Inbound Servers
Subprogram | Purpose | Can Manage an Inbound Server? | Notes |
---|---|---|---|
|
Adds a statement DML handler for a specified operation on a specified database object to a single inbound server or to all inbound servers in the database |
Yes |
Inbound servers can use statement DML handlers. |
|
Alters an inbound server |
Yes |
The |
|
Specifies whether to compare the old value of one or more columns in a row logical change record (row LCR) with the current value of the corresponding columns at the destination site during apply |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Creates an inbound server |
Yes |
The When creating an inbound server using the Inbound server can use apply handlers. However, inbound servers only process LCRs. Therefore, inbound servers ignore message handlers specified in the |
|
Creates an object dependency |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Deletes all the error transactions for the specified inbound server |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Deletes the specified error transaction |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Drops an inbound server |
Yes |
When the |
|
Drops an object dependency |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Reexecutes the error transactions for the specified inbound server |
Yes |
Inbound servers enqueue error transactions into an error queue the same way that apply processes enqueue error transactions into an error queue. |
|
Reexecutes the specified error transaction |
Yes |
Inbound servers enqueue error transactions into an error queue the same way that apply processes enqueue error transactions into an error queue. |
|
Returns the message payload from the error queue for the specified message number and transaction identifier |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Removes a statement DML handler for a specified operation on a specified database object from a single inbound server or from all inbound servers in the database |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Sets or unsets a statement DML handler that tracks changes for a specified operation on a specified database object for a single inbound server |
Yes |
Inbound servers can use change handlers. |
|
Sets a user procedure as a procedure DML handler for a specified operation on a specified database object for a single inbound server or for all inbound servers in the database |
Yes |
Inbound servers can use procedure DML handlers. |
|
Sets the queue where the inbound server automatically enqueues a message that satisfies the specified rule |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Specifies whether a message that satisfies the specified rule is executed by an inbound server |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Records the specified instantiation SCN for the specified source database and, optionally, for the schemas at the source database and the tables owned by these schemas |
No |
Inbound servers ignore instantiation SCNs. |
|
Records the set of columns to be used as the substitute primary key for local apply purposes and removes existing substitute primary key columns for the specified object if they exist |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Sets an apply parameter to the specified value |
Yes |
Inbound servers ignore the setting for the The default parallelism of an inbound server is 4. |
|
Records the specified instantiation SCN for the specified schema in the specified source database and, optionally, for the tables owned by the schema at the source database |
No |
Inbound servers ignore instantiation SCNs. |
|
Records the specified instantiation SCN for the specified table in the specified source database |
No |
Inbound servers ignore instantiation SCNs. |
|
Adds, updates, or drops an update conflict handler for the specified object |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Sets or removes a value dependency |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Directs the inbound server to start applying messages |
Yes |
This procedure functions the same way for apply processes and inbound servers. |
|
Stops the inbound server from applying any messages and rolls back any unfinished transactions being applied |
Yes |
This procedure functions the same way for apply processes and inbound servers. |