ENABLE

The ENABLE function can be used to to enable broker management of the specified member..

ENABLE Function

DBMS_DG.ENABLE (
     member_name          IN VARCHAR2,
     severity             OUT BINARY_INTEGER)
RETURN BINARY_INTEGER;

Parameters

Parameter Description
member_name

The DB_UNIQUE_NAME initialization parameter value of the member to be enabled.

severity The severity associated with the status returned by this function. Severity will be one of the following Oracle error numbers:
  • ORA-0: normal, successful completion
  • ORA-16501: The Oracle Data Guard broker operation failed.
  • ORA-16502: The Oracle Data Guard broker operation succeeded with warnings.

Usage Notes

  • This function returns a binary integer.

Return Values

Error Description
ORA-00000: normal, successful completion

The member was successfully disabled.

ORA-16540: invalid argument The name specified for the member was not a valid DB_UNIQUE_NAME value.
Other

The Data Guard broker was unable to enable the member and the return value will indicate the reason for this failure.