clscrs_whatif_register_resource

The clscrs_whatif_register_resource API determines the actions that Oracle Clusterware would take if you add or modify a specific resource.

Parameters

Input:

  • name: Name of the resource.
  • attrs: The attributes of the specified resource.
  • flags: CLSCRS_FLAG_NONE
  • CLSCRS_FLAG_WHATIF_VERBOSE
  • CLSCRS_FLAG_FORCE
  • CLSCRS_FLAG_REG_UPDATE (to modify the resource)

See Also:

CLRSCRS_FLAG enum for more details

qlist: Specifies the client query on Oracle Clusterware entity status. NULL indicates no query specified.

Output:

  • status: List containing the returned entity information.
  • alist: Action list containing the actions that Oracle Clusterware will perform.

Returns

  • CLSCRS_STAT_SUCCESS: Indicates that Oracle Clusterware completed the request successfully or that no entities matched a filter.
  • CLSCRS_STAT_AUTHORIZATION_FAILURE: Displays when authorization fails.
  • CLSCRS_STAT_CONNECTION: Displays if there is a communication error.
  • CLSCRS_STAT_WRONG_ACTIVE_VERSION: Displays if you use the API before you have upgraded the cluster to Oracle Clusterware 12c.
  • CLSCRS_STAT_INTERNAL_ERROR: Displays if an unexpected, non-user error occurs.
  • CLSCRS_STAT_INVALID_ARGS: Displays if you provide incorrect arguments.

CLSCRS_STAT

clscrs_whatif_register_resource(const oratext *name, clscrs_splist *attrs,
                                 uword flags, clscrs_querylist *qlist,
                                 clscrs_crsentitylist *status,
                                 clscrs_actionlist *alist);