db_servers
Creates, updates, deletes, gets or lists a db_servers resource.
Overview​
| Name | db_servers |
| Type | Resource |
| Id | oci.database.db_servers |
Fields​
The following fields are returned by SELECT queries:
- get
- list
Information about the Exadata Db server.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Db server. |
autonomousVirtualMachineIds | array | The list of [OCIDs](/Content/General/Concepts/identifiers.htm) of the Autonomous Virtual Machines associated with the Db server. |
autonomousVmClusterIds | array | The list of [OCIDs](/Content/General/Concepts/identifiers.htm) of the Autonomous VM Clusters associated with the Db server. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
computeModel | string | The compute model of the Base Database, Exadata Infrastructure, VM Cluster and Autonomous AI Database. (ECPU, OCPU) (x-default-description: Null used when unspecified.) |
cpuCoreCount | integer | The number of CPU cores enabled on the Db server. |
dbNodeIds | array | The [OCID](/Content/General/Concepts/identifiers.htm) of the Db nodes associated with the Db server. |
dbNodeStorageSizeInGBs | integer | The allocated local node storage in GBs on the Db server. |
dbServerPatchingDetails | object | The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
displayName | string | The user-friendly name for the Db server. The name does not need to be unique. |
exadataInfrastructureId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. |
freeformTags | object | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
lifecycleDetails | string | Additional information about the current lifecycle state. |
lifecycleState | string | The current state of the Db server. (CREATING, AVAILABLE, UNAVAILABLE, DELETING, DELETED, MAINTENANCE_IN_PROGRESS) |
maxCpuCount | integer | The total number of CPU cores available. |
maxDbNodeStorageInGBs | integer | The total local node storage available in GBs. |
maxMemoryInGBs | integer | The total memory available in GBs. |
memorySizeInGBs | integer | The allocated memory in GBs on the Db server. |
shape | string | The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available. |
systemTags | object | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
timeCreated | string (date-time) | The date and time that the Db Server was created. |
vmClusterIds | array | The [OCID](/Content/General/Concepts/identifiers.htm) of the VM Clusters associated with the Db server. |
Details of the Db server.<br />
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Db server. |
autonomousVirtualMachineIds | array | The list of [OCIDs](/Content/General/Concepts/identifiers.htm) of the Autonomous Virtual Machines associated with the Db server. |
autonomousVmClusterIds | array | The list of [OCIDs](/Content/General/Concepts/identifiers.htm) of the Autonomous VM Clusters associated with the Db server. |
compartmentId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment. |
computeModel | string | The compute model of the Base Database, Exadata Infrastructure, VM Cluster and Autonomous AI Database. (ECPU, OCPU) (x-default-description: Null used when unspecified.) |
cpuCoreCount | integer | The number of CPU cores enabled on the Db server. |
dbNodeIds | array | The [OCID](/Content/General/Concepts/identifiers.htm) of the Db nodes associated with the Db server. |
dbNodeStorageSizeInGBs | integer | The allocated local node storage in GBs on the Db server. |
dbServerPatchingDetails | object | The scheduling details for the quarterly maintenance window. Patching and system updates take place during the maintenance window. |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
displayName | string | The user-friendly name for the Db server. The name does not need to be unique. |
exadataInfrastructureId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. |
freeformTags | object | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
lifecycleDetails | string | Additional information about the current lifecycle state. |
lifecycleState | string | The current state of the Db server. (CREATING, AVAILABLE, UNAVAILABLE, DELETING, DELETED, MAINTENANCE_IN_PROGRESS) |
maxCpuCount | integer | The total number of CPU cores available. |
maxDbNodeStorageInGBs | integer | The total local node storage available in GBs. |
maxMemoryInGBs | integer | The total memory available in GBs. |
memorySizeInGBs | integer | The allocated memory in GBs on the Db server. |
shape | string | The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available. |
systemTags | object | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). |
timeCreated | string (date-time) | The date and time that the Db Server was created. |
vmClusterIds | array | The [OCID](/Content/General/Concepts/identifiers.htm) of the VM Clusters associated with the Db server. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | exadataInfrastructureId, dbServerId, region | opc-request-id | Gets information about the Exadata Db server.<br /> |
list | select | compartmentId, exadataInfrastructureId, region | limit, page, sortOrder, opc-request-id, sortBy, lifecycleState, displayName | Lists the Exadata DB servers in the ExadataInfrastructureId and specified compartment.<br /> |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The compartment [OCID](/Content/General/Concepts/identifiers.htm). |
dbServerId | string | The DB server [OCID](/Content/General/Concepts/identifiers.htm). |
exadataInfrastructureId | string | The [OCID](/Content/General/Concepts/identifiers.htm) of the ExadataInfrastructure. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
displayName | string | A filter to return only resources that match the entire display name given. The match is not case sensitive. |
lifecycleState | string | A filter to return only resources that match the given lifecycle state exactly. |
limit | integer | The maximum number of items to return per page. |
opc-request-id | string | Unique identifier for the request. |
page | string | The pagination token to continue listing from. |
sortBy | string | Sort by TIMECREATED. Default order for TIMECREATED is descending. |
sortOrder | string | The sort order to use, either ascending (ASC) or descending (DESC). |
SELECT examples​
- get
- list
Gets information about the Exadata Db server.<br />
SELECT
id,
autonomousVirtualMachineIds,
autonomousVmClusterIds,
compartmentId,
computeModel,
cpuCoreCount,
dbNodeIds,
dbNodeStorageSizeInGBs,
dbServerPatchingDetails,
definedTags,
displayName,
exadataInfrastructureId,
freeformTags,
lifecycleDetails,
lifecycleState,
maxCpuCount,
maxDbNodeStorageInGBs,
maxMemoryInGBs,
memorySizeInGBs,
shape,
systemTags,
timeCreated,
vmClusterIds
FROM oci.database.db_servers
WHERE exadataInfrastructureId = '{{ exadataInfrastructureId }}' -- required
AND dbServerId = '{{ dbServerId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Lists the Exadata DB servers in the ExadataInfrastructureId and specified compartment.<br />
SELECT
id,
autonomousVirtualMachineIds,
autonomousVmClusterIds,
compartmentId,
computeModel,
cpuCoreCount,
dbNodeIds,
dbNodeStorageSizeInGBs,
dbServerPatchingDetails,
definedTags,
displayName,
exadataInfrastructureId,
freeformTags,
lifecycleDetails,
lifecycleState,
maxCpuCount,
maxDbNodeStorageInGBs,
maxMemoryInGBs,
memorySizeInGBs,
shape,
systemTags,
timeCreated,
vmClusterIds
FROM oci.database.db_servers
WHERE compartmentId = '{{ compartmentId }}' -- required
AND exadataInfrastructureId = '{{ exadataInfrastructureId }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortOrder = '{{ sortOrder }}'
AND opc-request-id = '{{ opc-request-id }}'
AND sortBy = '{{ sortBy }}'
AND lifecycleState = '{{ lifecycleState }}'
AND displayName = '{{ displayName }}'
;