/AWS1/IF_ODB=>GETDBSERVER()¶
About GetDbServer¶
Returns information about the specified database server.
Method Signature¶
METHODS /AWS1/IF_ODB~GETDBSERVER
IMPORTING
!IV_CLOUDEXADATAINFRASTRUCT00 TYPE /AWS1/ODBRESOURCEIDORARN OPTIONAL
!IV_DBSERVERID TYPE /AWS1/ODBRESOURCEID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_odbgetdbserveroutput
RAISING
/AWS1/CX_ODBACCESSDENIEDEX
/AWS1/CX_ODBINTERNALSERVEREX
/AWS1/CX_ODBRESOURCENOTFOUNDEX
/AWS1/CX_ODBTHROTTLINGEX
/AWS1/CX_ODBVALIDATIONEX
/AWS1/CX_ODBCLIENTEXC
/AWS1/CX_ODBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_cloudexadatainfrastruct00 TYPE /AWS1/ODBRESOURCEIDORARN /AWS1/ODBRESOURCEIDORARN¶
The unique identifier of the Oracle Exadata infrastructure that contains the database server.
iv_dbserverid TYPE /AWS1/ODBRESOURCEID /AWS1/ODBRESOURCEID¶
The unique identifier of the database server to retrieve information about.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_odbgetdbserveroutput /AWS1/CL_ODBGETDBSERVEROUTPUT¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getdbserver(
iv_cloudexadatainfrastruct00 = |string|
iv_dbserverid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_dbserver = lo_result->get_dbserver( ).
IF lo_dbserver IS NOT INITIAL.
lv_resourceid = lo_dbserver->get_dbserverid( ).
lv_resourcestatus = lo_dbserver->get_status( ).
lv_string = lo_dbserver->get_statusreason( ).
lv_integer = lo_dbserver->get_cpucorecount( ).
lv_integer = lo_dbserver->get_dbnodestoragesizeingbs( ).
lo_dbserverpatchingdetails = lo_dbserver->get_dbserverpatchingdetails( ).
IF lo_dbserverpatchingdetails IS NOT INITIAL.
lv_integer = lo_dbserverpatchingdetails->get_estimatedpatchduration( ).
lv_dbserverpatchingstatus = lo_dbserverpatchingdetails->get_patchingstatus( ).
lv_string = lo_dbserverpatchingdetails->get_timepatchingended( ).
lv_string = lo_dbserverpatchingdetails->get_timepatchingstarted( ).
ENDIF.
lv_string = lo_dbserver->get_displayname( ).
lv_string = lo_dbserver->get_exadatainfrastructureid( ).
lv_string = lo_dbserver->get_ocid( ).
lv_string = lo_dbserver->get_ociresourceanchorname( ).
lv_integer = lo_dbserver->get_maxcpucount( ).
lv_integer = lo_dbserver->get_maxdbnodestorageingbs( ).
lv_integer = lo_dbserver->get_maxmemoryingbs( ).
lv_integer = lo_dbserver->get_memorysizeingbs( ).
lv_string = lo_dbserver->get_shape( ).
lv_timestamp = lo_dbserver->get_createdat( ).
LOOP AT lo_dbserver->get_vmclusterids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_computemodel = lo_dbserver->get_computemodel( ).
LOOP AT lo_dbserver->get_autonomousvmclusterids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_dbserver->get_autonomousvirtmachineids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.