steampipe plugin install oci

Table: oci_database_db_home - Query OCI Database DB Homes using SQL

A DB Home is a directory where Oracle Database software is installed. It can contain multiple databases and has specific directory structures and files. Within a DB System, you can have multiple DB Homes and each DB Home can run a different version of the Oracle Database software.

Table Usage Guide

The oci_database_db_home table provides insights into DB Homes within Oracle Cloud Infrastructure Database service. As a Database administrator or a Cloud engineer, explore DB Home-specific details through this table, including its lifecycle state, compartment ID, and associated DB system ID. Utilize it to uncover information about DB Homes, such as their software version, time created, and the last patch history entry.

Examples

Basic info

Explore the lifecycle state and creation time of your Oracle Cloud Infrastructure databases to understand their current status and longevity. This can help in managing and planning resources effectively.

select
id,
display_name,
lifecycle_state,
time_created
from
oci_database_db_home;
select
id,
display_name,
lifecycle_state,
time_created
from
oci_database_db_home;

List db homes that are not available

Discover the database homes that are not currently available. This can be useful in identifying potential issues or disruptions in your database services.

select
id,
display_name,
lifecycle_state,
time_created
from
oci_database_db_home
where
lifecycle_state <> 'AVAILABLE';
select
id,
display_name,
lifecycle_state,
time_created
from
oci_database_db_home
where
lifecycle_state <> 'AVAILABLE';

Schema for oci_database_db_home

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
database_software_image_idtextThe database software image OCID.
db_home_locationtextThe location of the oracle database home.
db_system_idtext=The OCID of the DB system.
db_versiontext=The oracle database version.
defined_tagsjsonbDefined tags for resource. Defined tags are set up in your tenancy by an administrator. Only users granted permission to work with the defined tags can apply them to resources.
display_nametext=The user-friendly name for the database home. It does not have to be unique.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The OCID of the database home.
kms_key_idtextThe OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
last_patch_history_entry_idtextThe OCID of the last patch history.
lifecycle_detailstextAdditional information about the current lifecycle state.
lifecycle_statetext=The current state of the database home.
one_off_patchesjsonbList of one-off patches for database homes.
regiontextThe OCI region in which the resource is located.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
tagsjsonbA map of tags for the resource.
tenant_idtext=, !=, ~~, ~~*, !~~, !~~*The OCID of the Tenant in which the resource is located.
tenant_nametextThe name of the Tenant in which the resource is located.
time_createdtimestamp with time zoneThe date and time the database home was created.
titletextTitle of the resource.
vm_cluster_idtext=The OCID of the VM cluster.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- oci

You can pass the configuration to the command with the --config argument:

steampipe_export_oci --config '<your_config>' oci_database_db_home