Oracle DBMS_DRS Version 21c |
---|
General Information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Library Note |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Purpose | This package contains procedures used in the DR Server (Hot Standby). There are two forms of each major function; one is a blocking procedure, which does not return until the command is completed. The other is a non-blocking function which returns with a request identifier which may be used to return the result of the command. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AUTHID | DEFINER | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Constants |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dependencies |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Documented | No | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Exceptions |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
First Available | 9.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Security Model | Owned by SYS with EXECUTE granted to SYSDG, SYSRAC and the OEM_MONITOR role | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Source | $ORACLE_HOME/rdbms/admin/dbmsdrs.sql | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subprograms |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ADD_CONFIGURATION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Adds a remote configuration to the metadata | dbms_drs.add_configuration( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ADD_DATABASE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Add a standby database to a Broker configuration. database_ci is the connection identifier | dbms_drs.add_database( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ADD_FAR_SYNC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Add a far sync instance to a Broker configuration. far_sync_ci is the connection identifier | dbms_drs.add_far_sync( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ADD_RECOVERY_APPLIANCE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Adds a recovery appliance to a Broker configuration | dbms_drs.add_recovery_appliance( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CANCEL_REQUEST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Cancel Request (blocking) | dbms_drs.cancel_request(rid IN INTEGER); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Demos At Page Bottom |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHECK_CONNECT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Check network connectivity to the specified member | dbms_drs.check_connect( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
exec dbms_drs.check_connect('ORABASE_DR', 'ORABASE1'); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CONTROL_CONFIGURATION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Forwards an operation to one or all `configurations | dbms_drs.control_configuration( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CONVERT_TO_PHYSICAL (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Converts a snapshot standby database to a physical standby database | dbms_drs.convert_to_physical(db_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.convert_to_physical('TEST21DB') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CONVERT_TO_SNAPSHOT (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Converts a physical standby database to a snapshot standby database | dbms_drs.convert_to_snapshot(db_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.convert_to_snapshot('TEST21DB') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CREATE_CONFIGURATION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Creates a Broker configuration. The primary database will be automatically added to the configuration by this procedure. Must be called on a primary database. | dbms_drs.create_configuration( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DELETE_REQUEST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Delete Request (blocking) | dbms_drs.delete_request(rid IN INTEGER); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Demos At Page Bottom |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DGPDB_FAILOVER (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to failover to a DGPDB | dbms_drs.dgpdb_failover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.dgpdb_failover('PDBPROD', 'TEST21DB') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DGPDB_REMOVE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to remove a DGPDB | dbms_drs.dgpdb_remove( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.dgpdb_failover('PDBPROD', 'TEST21DB', 1) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DGPDB_SWITCHOVER (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to switchover to a DGPDB | dbms_drs.dgpdb_switchover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.dgpdb_switchover('PDBPROD', 'TEST21DB') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DG_BROKER_INFO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns Data Guard Broker Information | dbms_drs.dg_broker_info(info_name IN VARCHAR2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.dg_broker_info('DMONREADY') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB disables Broker management of a member within the Broker configuration | dbms_drs.disable(member_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE_CONFIGURATION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Disables Broker management of the current configuration | dbms_drs.disable_configuration RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.disable_configuration |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE_DATABASE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB disables Broker management of a database within the Broker configuration | dbms_drs.disable_database(database_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
exec dbms_drs.disable_database('TEST21DB'); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE_FAR_SYNC (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB disables Broker management of a far sync instance within the Broker configuration | dbms_drs.disable_far_sync(far_sync_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE_FS_FAILOVER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Disables Fast Start Failover | dbms_drs.disable_fs_failover(force IN BOOLEAN DEFAULT FALSE) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.disable_fs_failover(TRUE) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE_FS_FAILOVER2 (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to disable fast-start failover | dbms_drs.disable_fs_failover2(force IN BINARY_INTEGER DEFAULT 0) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.disable_fs_failover2 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DISABLE_FS_FAILOVER_CONDITION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to disable a fast-start failover condition | dbms_drs.disable_fs_failover_condition(condition IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DO_CONTROL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Control blocking API Obsolete: Use DO_CONTROL_RAW Overload 1 |
dbms_drs.do_control( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Demos At Page Bottom |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Obsolete: For test use only Overload 2 |
dbms_drs.do_control(indoc IN VARCHAR2) RETURN INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Demos At Page Bottom |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DO_CONTROL_RAW | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Control blocking API designed for solving NLS problems. Is a blocking call that sends a DG Broker control request. Overload 1 |
dbms_drs.do_control_raw( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 2 | dbms_drs.do_control_raw(indoc IN RAW) RETURN INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DO_CONTROL_RAW_NORID (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Called by a Broker client (DGMGRL or EM) to submit a non-blocking request that's NLS compliant to the Broker | dbms_drs.do_control_raw_norid(indoc IN RAW); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DO_OBSERVE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Observer operation API - observer's operation to control FSFO since 12.2. (replaces Ping, ReadyToFailover, and StateChangeRecorded) | dbms_drs.do_observe ( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DUMP_BROKER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dumps critical internal data of the Broker process to a file | dbms_drs.dump_broker( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLARE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DUMP_META | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DUMP data guard Broker metadata file content into a readable text file | dbms_drs.dump_meta( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLARE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DUMP_OBSERVER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dumps critical internal data of client-side observer process to a file | dbms_drs.dump_observer( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLARE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ENABLE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used, from the primary db, to enable Broker management of a member within the Broker configuration | dbms_drs.enable(member_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ENABLE_CONFIGURATION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enables Broker management of a Data Guard configuration. It must be called on the primary database. Return 0 means enable was successful, otherwise returns an error number. | dbms_drs.enable_configuration RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.enable_configuration |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ENABLE_DATABASE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to enable Broker management of a database within the Broker configuration. It must be called on the primary database. | dbms_drs.enable_database(database_name in VARCHAR2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.enable_database('ORABASE') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ENABLE_FAR_SYNC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enable Broker management of a far sync instance within the Broker configuration. It must be called on the primary database. | dbms_drs.enable_far_sync(far_sync_name in VARCHAR2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.enable_database('ORABASE_FS') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ENABLE_FS_FAILOVER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to enable fast-start failover | dbms_drs.enable_fs_failover RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.enable_fs_failover |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ENABLE_FS_FAILOVER_CONDITION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Enables a fast-start failover condition | dbms_drs.enable_fs_failover_condition(condition IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FAILOVER (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Performs a database failover operation | dbms_drs.failover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.failover('TEST21DB', 'COMPLETE') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FS_FAILOVER_FOR_HC_COND | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Undocumented Overload 1 |
dbms_drs.fs_failover_for_hc_cond( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 2 | dbms_drs.fs_failover_for_hc_cond(hc_cond IN BINARY_INTEGER) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET_CONFIGURATION_PROPERTY (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Called by a Broker client to fetch a configuration-level property | dbms_drs.get_configuration_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Get a named property. This function is equivalent to using getid to return the object id, followed by a <do_monitor><property> request. | dbms_drs.get_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET_PROPERTY2 (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Called by a Broker client to fetch a property value by specifying a member name | dbms_drs.get_property2( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET_PROPERTY_OBJ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Get a named property. Equivalent to a <DO_MONITOR><PROPERTY> request and parsing the resulting string. | dbms_drs.get_property_obj( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET_RESPONSE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Get Result (non-blocking) - OBSOLETE, for test use only | dbms_drs.get_response( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Demos At Page Bottom |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET_RESPONSE_RAW | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns the result of a non-blocking command. If the command hasn't finished or the piece is beyond the end of the document returns NULL. | dbms_drs.get_response_raw( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HEALTH_CHECK (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Performs a Broker health check | dbms_drs.health_check RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.health_check |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
INITIATE_FS_FAILOVER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Initiate Fast Start Failover | dbms_drs.initiate_fs_failover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
METADATA_FILE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This function is used to export/import metadata to/from a file | dbms_drs.metadata_file( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLARE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The old ping procedure that was used in 12.1.0.1 and prior to 11.2.0.4 Overload 1 |
dbms_drs.ping( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ping procedure since 12.1.0.2 (and 11.2.0.4) and now obsolete as of 12.2 Overload 2k |
dbms_drs.ping( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
READYTOFAILOVER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Undocumented | dbms_drs.ReadyToFailover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REINSTATE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Reinstate a database in the Broker configuration | dbms_drs.reinstate(db_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.reinstate('TEST21DB') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB removes a member from the Broker configuration | dbms_drs.remove( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE2 (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB removes a member from the Broker configuration | dbms_drs.remove2( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_CONFIGURATION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB removes a Broker configuration | dbms_drs.remove_configuration(preserve_destinations IN BOOLEAN DEFAULT FALSE) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLARE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_CONFIGURATION (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the primary DB removes a Broker configuration | dbms_drs.remove_configuration2(preserve_destinations IN BINARY_INTEGER DEFAULT 0) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLARE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_DATABASE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removes a database from the Broker configuration. It must be called on the primary database | dbms_drs.emove_database( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.remove_database('ORABASE2', TRUE) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_DATABASE2 (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removes a database from the Broker configuration. It must be called on the primary database | dbms_drs.remove_database2( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.remove_database2('TEST21DB', 0) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_FAR_SYNC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removes a far sync instance from the Broker configuration. It must be called on the primary database. | dbms_drs.remove_far_sync( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.remove_far_sync('ORADATA_FS', FALSE) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_FAR_SYNC2 (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Called from the primary DB removes a far sync instance from the Broker configuration | dbms_drs.remove_far_sync2( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REMOVE_INSTANCE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removes an instance from a member of the Broker configuration | dbms_drs.remove_instance( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
REPLACE_MEMBER_NAME_IN_PROPS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Replaces a member name with another member name in all Broker properties | dbms_drs.replace_member_name_in_props( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.remove_far_sync('ORCL', 'ORABASE') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESET_CONFIGURATION_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resets configuration-level property, not database or far sync instance property, to its default value | dbms_drs.reset_configuration_property(property_name IN VARCHAR2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESET_DATABASE_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resets a database configurable property to its default value | dbms_drs.reset_database_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESET_FAR_SYNC_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resets a far sync instance configurable property to its default value | dbms_drs.reset_far_sync_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RESET_PROPERTY (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resets a member configurable property to its default value | dbms_drs.reset_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_CONFIGURATION_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to set configuration-level property (not a database or far sync property ). Can be used to set both integer and character string properties. | dbms_drs.set_configuration_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_CONFIGURATION_SOURCE (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Set redo transport to a target configuration | dbms_drs.set_configuration_source( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_DATABASE_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to set a database configurable property. Can be used to set both integer and character string properties. | dbms_drs.set_database_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_DGPDB_STAT (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sets the state of a DGPDB | dbms_drs.set_dgpdb_state( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_FAR_SYNC_PROPERTY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to set a far sync instance's configurable property. Can be used to set both integer and character string properties. | dbms_drs.set_far_sync_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_PROPERTY (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sets a member configurable property. | dbms_drs.set_property( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_PROTECTION_MODE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changes the protection mode to the mode specified. To prevent including database restart logic this procedure does not support the promotion of the protection mode from maximum performance to maximum protection. | dbms_drs.set_protection_mode(protection_mode IN VARCHAR2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.set_protection_mode('MaxPerformance') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_STATE_APPLY_OFF (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
changes the member's state to APPLY-OFF | dbms_drs.set_state_apply_off(member_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_STATE_APPLY_ON (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
changes the member's state to APPLY-ON | dbms_drs.set_state_apply_on( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_STATE_TRANSPORT_OFF (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
changes the member's state to TRANSPORT-OFF | dbms_drs.set_state_transport_off(member_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SET_STATE_TRANSPORT_ON (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
changes the member's state to TRANSPORT-ON | dbms_drs.set_state_transport_on(member_name IN VARCHAR2) RETURN BINARY_INTEGER; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SLEEP | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Suspends the session for a given period of time. Appears identical to DBMS_LOCK.SLEEP. | dbms_drs.sleep(seconds IN INTEGER); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BEGIN |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STARTUP_FOR_RELOCATE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Called when an instance is being started by a relocate operation. The other instance will be stopped in short order. If this is a standby database, it gracefully relocates the apply services to the instance being started. If this is a standby supporting Maximum Protection mode, it deregisters the other instance as the critical instance and register this instance so the shutdown can proceed smoothly while ensuring the primary continues to be protected. | dbms_drs.startup_for_relocate; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
exec dbms_drs.startup_for_relocate; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STATECHANGERECORDED | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Undocumented (obsolete as of 12.2) | dbms_drs.statechangerecorded( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STOP_OBSERVER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Stops the fast-start failover observers in a DG Broker configuration | dbms_drs.stop_observer(ob_name IN VARCHAR2) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.stop_observer('UWObserver') |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SWITCHOVER (new 21c) ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Performs a database switchover operation Overload 1 |
dbms_drs.switchover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT dbms_drs.switchover('TEST21DB', 1, -1) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 2 | dbms_drs.switchover( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
WAIT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Waits up to the number of seconds specified by the max_wait_time argument for the event specified by the event_type parameter to prevail Overload 1 |
dbms_drs.wait( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 2 | dbms_drs.wait( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 3 | dbms_drs.wait( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 4 | dbms_drs.wait( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
WAIT_SYNC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Used to wait for the specified member to be synchronized. If the keyword ANY is specified, this routine will wait for any destination to be synchronized. This function calls the rfs_wait_sync() ICD to perform the work. Overload 1 |
dbms_drs.wait_sync( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overload 2 | dbms_drs.wait_sync( |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Demos | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Non-Blocking Demo | set serveroutput on |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blocking Demo | set serveroutput on |
Related Topics |
Data Guard |
DBMS_DG |
DGMGRL |
Packages |
What's New In 21c |
What's New In 23c |
This site is maintained by Dan Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2023 Daniel A. Morgan All Rights Reserved | |||||||||
|
||||||||||