Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_CAPTURE_ADM, 2 of 2
Reverses the effects of running the PREPARE_GLOBAL_INSTANTIATION
procedure.
Specifically, running this procedure removes data dictionary information related to the database instantiation.
DBMS_CAPTURE_ADM.ABORT_GLOBAL_INSTANTIATION();
Reverses the effects of running the PREPARE_SCHEMA_INSTANTIATION
procedure.
Specifically, running this procedure removes data dictionary information related to the schema instantiation.
DBMS_CAPTURE_ADM.ABORT_SCHEMA_INSTANTIATION( schema_name IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the schema for which to abort the effects of preparing instantiation. |
Reverses the effects of running the PREPARE_TABLE_INSTANTIATION
procedure.
Specifically, running this procedure removes data dictionary information related to the table instantiation.
DBMS_CAPTURE_ADM.ABORT_TABLE_INSTANTIATION( table_name IN VARCHAR2);
Alters a capture process.
DBMS_CAPTURE_ADM.ALTER_CAPTURE( capture_name IN VARCHAR2, rule_set_name IN VARCHAR2 DEFAULT NULL, remove_rule_set IN BOOLEAN DEFAULT false, start_scn IN NUMBER DEFAULT NULL);
Parameter | Description |
---|---|
|
The name of the capture process being altered. You must specify an existing capture process name. |
|
The name of the rule set that contains the capture rules for this capture process. If you want to use a rule set for the capture process, then you must specify an existing rule set in the form An error is returned if the specified rule set does not exist. You can create a rule set and add rules to it using the See Also: Oracle9i Streams for more information about the changes that can be captured by a capture process |
|
If If If the |
|
A valid past SCN for the database where the capture process is capturing changes. The capture process will capture changes starting at the SCN specified. The SCN value specified must be from a point-in-time after the first capture process was created for the database. The first capture process for the database may or may not be the capture process being altered. An error is returned if an invalid SCN is specified. Note: When you change the start SCN for a capture process, the capture process is stopped and restarted automatically. |
Creates a capture process.
The user who runs the CREATE_CAPTURE
procedure is the user who captures changes. This user must have the necessary privileges to capture changes. These privileges include the following:
Note: Creation of the first capture process in a database may take some time because the data dictionary is duplicated during this creation. |
See Also:
Oracle9i Streams and Chapter 64, "DBMS_RULE_ADM" for more information about rules and rule sets |
DBMS_CAPTURE_ADM.CREATE_CAPTURE( queue_name IN VARCHAR2, capture_name IN VARCHAR2, rule_set_name IN VARCHAR2 DEFAULT NULL, start_scn IN NUMBER DEFAULT NULL);
Parameter | Description |
---|---|
|
The name of the queue into which the capture process enqueues changes. You must specify an existing queue in the form Note: The |
|
The name of the capture process being created. A Note: The |
|
The name of the rule set that contains the capture rules for this capture process. If you want to use a rule set for the capture process, then you must specify an existing rule set in the form An error is returned if the specified rule set does not exist. You can create a rule set and add rules to it using the If you specify See Also: Oracle9i Streams for more information about the changes that can be captured by a capture process |
|
A valid past SCN for the database where the capture process is capturing changes. The capture process will capture changes starting at the SCN specified. The SCN value specified must be from a point in time after the first capture process was created for the database. If the capture process being created is the first capture process ever created for the current database, then you must specify |
Drops a capture process.
DBMS_CAPTURE_ADM.DROP_CAPTURE( capture_name IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the capture process being dropped. Specify an existing capture process name. |
Performs the synchronization necessary for instantiating all the tables in the database at another database. Run this procedure at the source database.
This procedure records the lowest SCN of each object in the database for instantiation. SCNs subsequent to the lowest SCN for an object can be used for instantiating the object. Running this procedure prepares all current and future objects in the database for instantiation.
DBMS_CAPTURE_ADM.PREPARE_GLOBAL_INSTANTIATION;
Performs the synchronization necessary for instantiating all tables in the schema at another database. Run this procedure at the source database.
This procedure records the lowest SCN of each object in the schema for instantiation. SCNs subsequent to the lowest SCN for an object can be used for instantiating the object. Running this procedure prepares all current and future objects in the schema for instantiation.
DBMS_CAPTURE_ADM.PREPARE_SCHEMA_INSTANTIATION( schema_name IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the schema. For example, |
Performs the synchronization necessary for instantiating the table at another database. Run this procedure at the source database.
This procedure records the lowest SCN of the table for instantiation. SCNs subsequent to the lowest SCN for an object can be used for instantiating the object.
DBMS_CAPTURE_ADM.PREPARE_TABLE_INSTANTIATION( table_name IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the table specified as |
Sets a capture process parameter to the specified value.
When you alter a parameter value, a short amount of time may pass before the new value for the parameter takes effect.
DBMS_CAPTURE_ADM.SET_PARAMETER( capture_name IN VARCHAR2, parameter IN VARCHAR2, value IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the capture process. The capture process uses LogMiner to capture changes from the redo logs. |
|
The name of the parameter you are setting. See "Capture Process Parameters" for a list of these parameters. |
|
The value to which the parameter is set |
The following table lists the parameters for the capture process.
Starts the capture process, which mines redo logs and enqueues the mined redo information into the associated queue.
The start status is persistently recorded. Hence, if the status is ENABLED
, then the capture process is started upon database instance startup.
The capture process is a background Oracle process and is prefixed by CP
.
The enqueue and dequeue state of DBMS_AQADM.START_QUEUE
and DBMS_AQADM.STOP_QUEUE
have no effect on the start status of a capture process.
You can create the capture process using the following procedures:
DBMS_CAPTURE_ADM.CREATE_CAPTURE
DBMS_STREAMS_ADM.ADD_GLOBAL_RULES
DBMS_STREAMS_ADM.ADD_SCHEMA_RULES
DBMS_STREAMS_ADM.ADD_TABLE_RULES
DBMS_CAPTURE_ADM.START_CAPTURE( capture_name IN VARCHAR2);
Parameter | Description |
---|---|
|
The name of the capture process. The capture process uses LogMiner to capture changes in the redo information. A |
Stops the capture process from mining redo logs.
The stop status is persistently recorded. Hence, if the status is DISABLED
, then the capture process is not started upon database instance startup.
The enqueue and dequeue state of DBMS_AQADM.START_QUEUE
and DBMS_AQADM.STOP_QUEUE
have no effect on the stop status of a capture process.
DBMS_CAPTURE_ADM.STOP_CAPTURE( capture_name IN VARCHAR2, force IN BOOLEAN DEFAULT false);
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|