Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_STREAMS_ADM, 2 of 2
Adds propagation rules that propagate all the LCRs in a source queue to a destination queue. This procedure also configures propagation using the current user, if necessary, and establishes a default propagation schedule. This procedure enables propagation of all LCRs in the source queue, subject to filtering conditions, to the destination queue. Only one propagation job is allowed between the source queue and destination queue.
If propagation rules are added, then the propagation job propagates DML changes, or DDL changes, or both from the specified source queue to the specified destination queue. This procedure creates DML and DDL rules automatically based on include_dml
and include_ddl
parameter values, respectively. A system-generated rule name is the database name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the database name plus the sequence number is too long, then the database name is truncated. For the overloaded ADD_GLOBAL_PROPAGATION_RULES
procedure, the system-generated rule names for DML and DDL changes are returned.
A propagation job uses the rules created for filtering. If the propagation job does not have a rule set, then a rule set is created automatically, and the rules for propagating changes to the database are added to the rule set. Other rules in an existing rule set for the propagation job are not affected. You can add additional rules using the DBMS_RULE_ADM
package.
The following is an example of a global rule condition that may be created for propagating DML changes with a propagation job:
:dml.get_source_database_name() = 'DBS1.NET' AND :dml.is_null_tag() = 'Y'
For a propagation to work properly, the owner of the source queue must have the necessary privileges to propagate events.
See Also:
"CREATE_PROPAGATION Procedure" for more information about the required privileges |
DBMS_STREAMS_ADM.ADD_GLOBAL_PROPAGATION_RULES( streams_name IN VARCHAR2, source_queue_name IN VARCHAR2, destination_queue_name IN VARCHAR2, include_dml IN BOOLEAN DEFAULT true, include_ddl IN BOOLEAN DEFAULT false, include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, dml_rule_name OUT VARCHAR2, ddl_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains two |
Parameter | Description |
---|---|
|
The name of the propagation job. If the specified propagation job does not exist, then it is created automatically. If If |
|
The name of the source queue. The current database must contain the source queue. |
|
The name of the destination queue, including any database link, such as If the database link is omitted, then the global name of the current database is used, and the source queue and destination queue must be in the same database. Note: Connection qualifiers are not allowed. |
|
If |
|
If |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. The source database is where the changes originated. If If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify Oracle Corporation recommends that you specify a source database for propagation rules. |
|
If If |
|
If If |
Adds capture rules for an entire database or apply rules for all LCRs in a queue.
If capture rules are added, then captures DML changes, or DDL changes, or both in the current database and enqueues these changes into the specified queue. For capture rules, you should execute this procedure at the source database. This procedure automatically invokes the PREPARE_GLOBAL_INSTANTIATION
procedure in the DBMS_CAPTURE_ADM
package.
If apply rules are added, then the apply process receives and applies captured events that contain DML changes, or DDL changes, or both that originated at the source database matching the source_database
parameter. For apply rules, you should execute this procedure at the destination database.
An apply process created by this procedure can apply events only at the local database and can apply only captured events. To create an apply process that applies events at a remote database or an apply process that applies user-enqueued events, use the CREATE_APPLY
procedure in the DBMS_APPLY_ADM
package.
Changes applied by an apply process created by this procedure generate tags in the redo log at the destination database with a value of '00'
(double zero). You can use the ALTER_APPLY
procedure in the DBMS_APPLY_ADM
package to alter the tag value after the apply process is created, if necessary.
You have the option of creating an apply process using the DBMS_APPLY_ADM.CREATE_APPLY
procedure and specifying nondefault values for the apply_captured
, apply_database_link
, and apply_tag
parameters when you run that procedure. Then you can use this ADD_GLOBAL_RULES
procedure to add rules to the rule set used by the apply process.
This procedure creates DML and DDL rules automatically based on include_dml
and include_ddl
parameter values, respectively. A system-generated rule name is the database name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the database name plus the sequence number is too long, then the database name is truncated.
For the overloaded ADD_GLOBAL_RULES
procedure, the system-generated rule names for DML and DDL changes are returned.
A capture process or an apply process uses the rules created for filtering. If the generated process does not have a rule set, then a rule set is created automatically, and the rules are added to the rule set. Other rules in an existing rule set for the process are not affected. You can add additional rules using the DBMS_RULE_ADM
package.
The following is an example of a global rule condition that may be created for capturing DML changes with a capture process:
:dml.is_null_tag() = 'Y'
The following is an example of a global rule condition that may be created for applying DML changes with an apply process:
:dml.get_source_database_name() = 'DBS1.NET' AND :dml.is_null_tag() = 'Y'
If this procedure creates a capture process or an apply process, then the user who runs this procedure is the user who captures or applies changes. The specified user must have the necessary privileges to perform these actions.
See Also:
|
DBMS_STREAMS_ADM.ADD_GLOBAL_RULES( streams_type IN VARCHAR2, streams_name IN VARCHAR2 DEFAULT NULL, queue_name IN VARCHAR2 DEFAULT 'streams_queue', include_dml IN BOOLEAN DEFAULT true, include_ddl IN BOOLEAN DEFAULT false, include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, dml_rule_name OUT VARCHAR2, ddl_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains two |
Parameter | Description |
---|---|
|
The type of process, either |
|
The name of the capture or apply process. If the specified process does not exist, then it is created automatically. If |
|
The name of the local queue. For capture rules, the queue into which the changes will be enqueued. For apply rules, the queue from which changes will be dequeued. |
|
If |
|
If |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. If For capture rules, you can specify For apply rules, specify the source database of the changes that will be applied by the apply process. The source database is the database where the changes originated. If an apply process applies captured events, then the apply process can apply events from only one capture process at one source database. If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify |
|
If If |
|
If If |
Adds propagation rules that propagate the LCRs related to the specified schema in a source queue to a destination queue. This procedure also configures propagation using the current user, if necessary, and establishes a default propagation schedule. This procedure enables propagation of LCRs for the specified schema, subject to filtering conditions. Only one propagation job is allowed between the source queue and the destination queue.
If propagation rules are added, then the propagation job propagates DML changes, or DDL changes, or both that are related to the specified schema from the specified source queue to the specified destination queue. This procedure creates DML and DDL rules automatically based on include_dml
and include_ddl
parameter values, respectively. A system-generated rule name is the schema name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the schema name plus the sequence number is too long, then the schema name is truncated. For the overloaded ADD_SCHEMA_PROPAGATION_RULES
procedure, the system-generated rule names for DML and DDL changes are returned.
A propagation job uses the rules created for filtering. If the propagation job does not have a rule set, then a rule set is created automatically, and the rules for propagating changes to the schema are added to the rule set. Other rules in an existing rule set for the propagation job are not affected. Additional rules can be added using the DBMS_RULE_ADM
package.
The following is an example of a schema rule condition that may be created for propagating DML changes with a propagation job:
:dml.get_object_owner() = 'HR' AND :dml.is_null_tag() = 'Y' AND :dml.get_source_database_name() = 'DBS1.NET'
For a propagation to work properly, the owner of the source queue must have the necessary privileges to propagate events.
See Also:
"CREATE_PROPAGATION Procedure" for more information about the required privileges |
DBMS_STREAMS_ADM.ADD_SCHEMA_PROPAGATION_RULES( schema_name IN VARCHAR2, streams_name IN VARCHAR2, source_queue_name IN VARCHAR2, destination_queue_name IN VARCHAR2, include_dml IN BOOLEAN DEFAULT true, include_ddl IN BOOLEAN DEFAULT false, include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, dml_rule_name OUT VARCHAR2, ddl_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains two |
Parameter | Description |
---|---|
|
The name of the schema. For example, |
|
The name of the propagation job. If the specified propagation job does not exist, then it is created automatically. If If |
|
The name of the source queue. The current database must contain the source queue. |
|
The name of the destination queue, including database link, for example If the database link is omitted, then the global name of the current database is used, and the source queue and destination queue must be in the same database. Note: Connection qualifiers are not allowed. |
|
If |
|
If |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. The source database is where the change originated. If If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify Oracle Corporation recommends that you specify a source database for propagation rules. |
|
If If |
|
If If |
Adds capture or apply rules for a schema.
If capture rules are added, then the capture process captures DML changes, or DDL changes, or both in the specified schema and enqueues these changes into the specified queue. For capture rules, you should execute this procedure at the source database. This procedure automatically invokes the PREPARE_SCHEMA_INSTANTIATION
procedure in the DBMS_CAPTURE_ADM
package for the specified schema.
If apply rules are added, then the apply process receives and applies captured events that contain DML changes, or DDL changes, or both for the specified schema. For apply rules, you should execute this procedure at the destination database.
An apply process created by this procedure can apply events only at the local database and can apply only captured events. To create an apply process that applies events at a remote database or an apply process that applies user-enqueued events, use the CREATE_APPLY
procedure in the DBMS_APPLY_ADM
package.
Changes applied by an apply process created by this procedure generate tags in the redo log at the destination database with a value of '00'
(double zero). You can use the ALTER_APPLY
procedure in the DBMS_APPLY_ADM
package to alter the tag value after the apply process is created, if necessary.
You have the option of creating an apply process using the DBMS_APPLY_ADM.CREATE_APPLY
procedure and specifying nondefault values for the apply_captured
, apply_database_link
, and apply_tag
parameters when you run that procedure. Then you can use this ADD_SCHEMA_RULES
procedure to add rules to the rule set used by the apply process.
This procedure creates DML and DDL rules automatically based on include_dml
and include_ddl
parameter values, respectively. A system-generated rule name is the schema name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the schema name plus the sequence number is too long, then the schema name is truncated.
The following is an example of a schema rule condition that may be created for filtering DML statements:
:dml.get_object_owner() = 'HR' AND :dml.is_null_tag() = 'Y'
For the overloaded ADD_SCHEMA_RULES
procedure, the system-generated rule names for DML and DDL changes are returned.
A capture process or an apply process uses the rules created for filtering. If the process does not have a rule set, then a rule set is created automatically, and the rules for the schema are added to the rule set. Other rules in an existing rule set for the process are not affected. Additional rules can be added using the DBMS_RULE_ADM
package.
If this procedure creates a capture process or an apply process, then the user who runs this procedure is the user who captures or applies changes. The specified user must have the necessary privileges to perform these actions.
See Also:
|
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES( schema_name IN VARCHAR2, streams_type IN VARCHAR2, streams_name IN VARCHAR2 DEFAULT NULL, queue_name IN VARCHAR2 DEFAULT 'streams_queue', include_dml IN BOOLEAN DEFAULT true, include_ddl IN BOOLEAN DEFAULT false, include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, dml_rule_name OUT VARCHAR2, ddl_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains two |
Parameter | Description |
---|---|
|
The name of the schema. For example, You can specify a schema that does not yet exist, because Streams does not validate the existence of the schema. |
|
The type of process, either |
|
If the specified process does not exist, then it is created automatically. If |
|
The name of the local queue. For capture rules, the queue into which the changes will be enqueued. For apply rules, the queue from which changes will be dequeued. |
|
If |
|
If |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. If For capture rules, you can specify For apply rules, specify the source database of the changes that will be applied by the apply process. The source database is the database where the changes originated. If an apply process applies captured events, then the apply process can apply events from only one capture process at one source database. If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify |
|
If If |
|
If If |
Adds apply rules for a subset of the rows in a table.
The apply process receives and applies captured events that contain DML changes for the specified subset of rows in the table. You should execute this procedure at the destination database.
Running this procedure generates three rules for the specified apply process: one for INSERT
statements, one for UPDATE
statements, and one for DELETE
statements. For INSERT
and DELETE
statements, only row LCRs that satisfy the condition specified for the dml_condition
parameter are applied. For UPDATE
statements, the following variations are possible:
dml_condition
, then the LCR is applied without any changes.dml_condition
, then the row LCR is not applied.dml_condition
, but the new values do not, then the row LCR is converted into a delete.dml_condition
, but the old values do not, then the row LCR is converted to an insert.The following is an example of a rule condition that may be created for filtering LCRs containing an update operation when the dml_condition
is region_id = 2
and the table_name
is hr.regions
:
:dml.get_object_owner() = 'HR' AND :dml.get_object_name() = 'REGIONS' AND :dml.is_null_tag() = 'Y' AND :dml.get_command_type() = 'UPDATE' AND (:dml.get_value('NEW','"REGION_ID"') IS NOT NULL) AND (:dml.get_value('OLD','"REGION_ID"') IS NOT NULL) AND (:dml.get_value('OLD','"REGION_ID"').AccessNumber()=2) AND (:dml.get_value('NEW','"REGION_ID"').AccessNumber()=2)
An apply process uses the generated rules for filtering LCRs. If the apply process does not have a rule set, then one is created automatically, and the rules for the table are added to the rule set. Other rules in an existing rule set for the apply process are not affected. Additional rules can be added using the DBMS_RULE_ADM
package.
Rules for INSERT
, UPDATE
, and DELETE
statements are created automatically when you run this procedure, and these rules are given a system-generated rule name. The system-generated rule name is the table name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the table name plus the sequence number is too long, then the table name is truncated. The ADD_SUBSET_RULES
procedure is overloaded, and the system-generated rule names for INSERT
, UPDATE
, and DELETE
statements are returned.
An apply process created by this procedure can apply events only at the local database and can apply only captured events. To create an apply process that applies events at a remote database or an apply process that applies user-enqueued events, use the CREATE_APPLY
procedure in the DBMS_APPLY_ADM
package.
Changes applied by an apply process created by this procedure generate tags in the redo log at the destination database with a value of '00'
(double zero). You can use the ALTER_APPLY
procedure in the DBMS_APPLY_ADM
package to alter the tag value after the apply process is created, if necessary.
You have the option of creating an apply process using the DBMS_APPLY_ADM.CREATE_APPLY
procedure and specifying nondefault values for the apply_captured
, apply_database_link
, and apply_tag
parameters when you run that procedure. Then you can use this ADD_SUBSET_RULES
procedure to add rules to the rule set used by the apply process.
When you create a subset rule for a table, you should create an unconditional supplemental log group at the source database with all the columns in the table. Supplemental logging is required if an update must be converted to an insert. The apply process must have all the column values to be able to perform the insert correctly.
If this procedure creates an apply process, then the user who runs this procedure is the user who applies changes. The specified user must have the necessary privileges to apply events.
See Also:
|
DBMS_STREAMS_ADM.ADD_SUBSET_RULES( table_name IN VARCHAR2, dml_condition IN VARCHAR2, streams_type IN VARCHAR2 DEFAULT 'apply', streams_name IN VARCHAR2 DEFAULT NULL, queue_name IN VARCHAR2 DEFAULT 'streams_queue', include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, insert_rule_name OUT VARCHAR2, update_rule_name OUT VARCHAR2, delete_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains three |
Parameter | Description |
---|---|
|
The name of the table specified as You can specify a table that does not yet exist, because Streams does not validate the existence of the table. |
dml_condition |
The subset condition. You specify this condition similar to the way you specify conditions in a For example, to specify rows in the
Note: The quotation marks in the preceding example are all single quotation marks. |
|
The type of process. Currently, the only valid type is |
|
The name of the apply process. If the specified apply process does not exist, then it is created automatically. If |
|
The name of the local queue from which changes will be dequeued. |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. If Specify the source database for the changes that will be applied by the apply process. The source database is the database where the changes originated. If an apply process applies captured events, then the apply process can apply events from only one capture process at one source database. If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify |
|
Contains the system-generated |
|
Contains the system-generated |
|
Contains the system-generated |
Adds propagation rules that propagate the LCRs related to the specified table in a source queue to a destination queue. This procedure also configures propagation using the current user, if necessary, and establishes a default propagation schedule. This procedure enables propagation of LCRs for the specified table, subject to filtering conditions. Only one propagation job is allowed between the source queue and the destination queue.
If propagation rules are added, then the propagation job propagates DML changes, or DDL changes, or both related to the specified table from the specified source queue to the specified destination queue. This procedure creates DML and DDL rules automatically based on include_dml
and include_ddl
parameter values, respectively. A system-generated rule name is the table name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the table name plus the sequence number is too long, then the table name is truncated. For the overloaded ADD_TABLE_PROPAGATION_RULES
procedure, the system-generated rule names for For the overloaded ADD_SCHEMA_RULES
procedure, the system-generated rule names for DML and DDL changes are returned.
A propagation job uses the rules created for filtering. If the propagation job does not have a rule set, then a rule set is created automatically, and the rules for propagating changes to the table are added to the rule set. Other rules in an existing rule set for the propagation job are not affected. Additional rules can be added using the DBMS_RULE_ADM
package.
The following is an example of a table rule condition that may be created for propagating DML changes with a propagation job:
:dml.get_object_owner() = 'HR' AND :dml.get_object_name() = 'LOCATIONS' AND :dml.is_null_tag() = 'Y' AND :dml.get_source_database_name() = 'DBS1.NET'
For a propagation to work properly, the owner of the source queue must have the necessary privileges to propagate events.
See Also:
"CREATE_PROPAGATION Procedure" for more information about the required privileges |
DBMS_STREAMS_ADM.ADD_TABLE_PROPAGATION_RULES( table_name IN VARCHAR2, streams_name IN VARCHAR2, source_queue_name IN VARCHAR2, destination_queue_name IN VARCHAR2, include_dml IN BOOLEAN DEFAULT true, include_ddl IN BOOLEAN DEFAULT false, include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, dml_rule_name OUT VARCHAR2, ddl_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains two |
Parameter | Description |
---|---|
|
The name of the table specified as |
|
The name of the propagation job. If the specified propagation job does not exist, then it is created automatically. If If |
|
The name of the source queue. The current database must contain the source queue. |
|
The name of the destination queue, including database link, for example If the database link is omitted, then the global name of the current database is used, and the source queue and destination queue must be in the same database. Note: Connection qualifiers are not allowed. |
|
If |
|
If |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. The source database is where the change originated. If If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify Oracle Corporation recommends that you specify a source database for propagation rules. |
|
If If |
|
If If |
Adds capture or apply rules for a table.
If capture rules are added, then the capture process captures DML changes, or DDL changes, or both in the specified table and enqueues these changes into the specified queue. For capture rules, you should execute this procedure at the source database. This procedure automatically invokes the PREPARE_TABLE_INSTANTIATION
procedure in the DBMS_CAPTURE_ADM
package for the specified table.
If apply rules are added, then the apply process receives and applies captured events that contain DML changes, or DDL changes, or both for the specified table. For apply rules, you should execute this procedure at the destination database.
An apply process created by this procedure can apply events only at the local database and can apply only captured events. To create an apply process that applies events at a remote database or an apply process that applies user-enqueued events, use the CREATE_APPLY
procedure in the DBMS_APPLY_ADM
package.
Changes applied by an apply process created by this procedure generate tags in the redo log at the destination database with a value of '00'
(double zero). You can use the ALTER_APPLY
procedure in the DBMS_APPLY_ADM
package to alter the tag value after the apply process is created, if necessary.
You have the option of creating an apply process using the DBMS_APPLY_ADM.CREATE_APPLY
procedure and specifying nondefault values for the apply_captured
, apply_database_link
, and apply_tag
parameters when you run that procedure. Then you can use this ADD_TABLE_RULES
procedure to add rules to the rule set used by the apply process.
This procedure creates DML and DDL rules automatically based on include_dml
and include_ddl
parameter values, respectively. A system-generated rule name is the table name with a sequence number appended to it. The sequence number is used to avoid naming conflicts. If the table name plus the sequence number is too long, then the table name is truncated.
For example, the following is an example of a rule condition that may be created for filtering DML statements:
:dml.get_object_owner() = 'HR' and :dml.get_object_name() = 'EMPLOYEES' AND :dml.is_null_tag() = 'Y' AND :dml.get_source_database_name() = 'DBS1.NET'
For the overloaded ADD_TABLE_RULES
procedure, the system-generated rule names for DML and DDL changes are returned.
A capture process or an apply process uses the rules created for filtering. If the process does not have a rule set, then a rule set is created automatically, and the rules for the table are added to the rule set. Other rules in an existing rule set for the process are not affected. Additional rules can be added using the DBMS_RULE_ADM
package.
If this procedure creates a capture process or an apply process, then the user who runs this procedure is the user who captures or applies changes. The specified user must have the necessary privileges to perform these actions.
See Also:
|
DBMS_STREAMS_ADM.ADD_TABLE_RULES( table_name IN VARCHAR2, streams_type IN VARCHAR2, streams_name IN VARCHAR2 DEFAULT NULL, queue_name IN VARCHAR2 DEFAULT 'streams_queue', include_dml IN BOOLEAN DEFAULT true, include_ddl IN BOOLEAN DEFAULT false, include_tagged_lcr IN BOOLEAN DEFAULT false, source_database IN VARCHAR2 DEFAULT NULL, dml_rule_name OUT VARCHAR2, ddl_rule_name OUT VARCHAR2);
Note: This procedure is overloaded. One version of this procedure contains two |
Parameter | Description |
---|---|
|
The name of the table specified as You can specify a table that does not yet exist, because Streams does not validate the existence of the table. |
|
The type of process, either |
|
If the specified process does not exist, then it is created automatically. If |
|
The name of the local queue. For capture rules, the queue into which the changes will be enqueued. For apply rules, the queue from which changes will be dequeued. |
|
If |
|
If |
|
If If See Also: Oracle9i Streams for more information about tags |
|
The global name of the source database. If For capture rules, you can specify For apply rules, specify the source database of the changes that will be applied by the apply process. The source database is the database where the changes originated. If an apply process applies captured events, then the apply process can apply events from only one capture process at one source database. If you do not include the domain name, then it is appended to the database name automatically. For example, if you specify |
|
If If |
|
If If |
Removes all Streams data dictionary information at the local database for the specified object. You can use this procedure to remove Streams metadata that is not needed currently and will not be needed in the future.
The global name of the source database containing the object must be specified for the source_database
parameter. If the current database is not the source database for the object, then data dictionary information about the object is removed at the current database, not the source database.
For example, suppose changes to the hr.employees
table at the dbs1.net
source database are being applied to the hr.employees
table at the dbs2.net
destination database. Also, suppose hr.employees
at dbs2.net
is not a source at all. In this case, specifying dbs2.net
as the source_database
for this table results in an error. However, specifying dbs1.net
as the source_database
for this table while running the PURGE_SOURCE_CATALOG
procedure at the dbs2.net
database removes data dictionary information about the table at dbs2.net
.
Do not run this procedure at a database if either of the following conditions are true:
DBMS_STREAMS_ADM.PURGE_SOURCE_CATALOG( source_database IN VARCHAR2, source_object_name IN VARCHAR2, source_object_type IN VARCHAR2);
Removes the specified rule or all rules from the rule set associated with the specified capture process, apply process, or propagation job.
DBMS_STREAMS_ADM.REMOVE_RULE( rule_name IN VARCHAR2, streams_type IN VARCHAR2, streams_name IN VARCHAR2, drop_unused_rule IN BOOLEAN DEFAULT true);
Creates a queue table and a Streams queue for use with the capture, propagate, and apply functionality of Streams.
Set up includes the following actions:
CREATE_QUEUE_TABLE
procedure in the DBMS_AQADM
package to create the queue table with the specified storage clause.CREATE_QUEUE
procedure in the DBMS_AQADM
package to create the queue.ENQUEUE
and DEQUEUE
privileges on the queue to the specified queue user.
To configure the queue user as a secure queue user, this procedure creates an Advanced Queuing agent with the same name as the user name, if one does not already exist. If an agent with this name already exists and is associated with the queue user only, then it is used. SET_UP_QUEUE
then runs the ENABLE_DB_ACCESS
procedure in the DBMS_AQADM
package, specifying the agent and the user.
This procedure creates a SYS.AnyData
queue that is both a secure queue and a transactional queue.
See Also:
The |
DBMS_STREAMS_ADM.SET_UP_QUEUE( queue_table IN VARCHAR2 DEFAULT 'streams_queue_table', storage_clause IN VARCHAR2 DEFAULT NULL, queue_name IN VARCHAR2 DEFAULT 'streams_queue', queue_user IN VARCHAR2 DEFAULT NULL, comment IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The storage clause for queue table The storage parameter is included in the If a tablespace is not specified here, then the queue table and all its related objects are created in the default user tablespace of the user who runs this procedure. If a tablespace is specified here, then the queue table and all its related objects are created in the tablespace specified in the storage clause. If See Also: Oracle9i SQL Reference for more information about storage clauses |
|
The name of the queue that will function as the Streams queue, specified as If the queue owner is not specified, then it defaults to the queue table owner. The owner of the queue table must also be the owner of the queue. The queue owner automatically has privileges to perform all queue operations on the queue. |
|
The name of the user who requires If |
|
The comment for the queue |
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|