steampipe plugin install oci

Table: oci_database_software_image - Query OCI Database Software Images using SQL

Oracle Cloud Infrastructure (OCI) Database Software Images are custom images that contain the database software for creating a database on a Database system. They are used to launch Database systems with a specified version of the database software, a database configuration, and a preinstalled set of database options and patches. This resource provides a way to manage and customize the database software that runs on your Database systems.

Table Usage Guide

The oci_database_software_image table provides insights into Database Software Images within Oracle Cloud Infrastructure (OCI). As a database administrator, you can explore software image-specific details through this table, including versions, configurations, and preinstalled database options and patches. Utilize it to manage and customize the database software that runs on your Database systems, ensuring the systems are launched with the correct configurations and database versions.

Examples

Basic info

Explore which database software images are currently active and when they were created, to gain insights into the life cycle and type of database images in your Oracle Cloud Infrastructure. This can help in managing your resources effectively and keeping track of your database images.

select
display_name,
id,
image_type,
lifecycle_state,
time_created
from
oci_database_software_image;
select
display_name,
id,
image_type,
lifecycle_state,
time_created
from
oci_database_software_image;

List deleted database software images

Explore which database software images have been deleted to manage your resources effectively. This helps in maintaining a clean and efficient database by keeping track of unused or obsolete software images.

select
display_name,
id,
image_type,
lifecycle_state,
time_created
from
oci_database_software_image
where
lifecycle_state = 'DELETED';
select
display_name,
id,
image_type,
lifecycle_state,
time_created
from
oci_database_software_image
where
lifecycle_state = 'DELETED';

List database software images older than 90 days

Explore the database software images that have been created more than 90 days ago. This can help in identifying outdated images, potentially facilitating their update or removal.

select
display_name,
id,
image_type,
lifecycle_state,
time_created
from
oci_database_software_image
where
time_created <= (current_date - interval '90' day)
order by
time_created;
select
display_name,
id,
image_type,
lifecycle_state,
time_created
from
oci_database_software_image
where
time_created <= date('now', '-90 day')
order by
time_created;

Schema for oci_database_software_image

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
database_software_image_included_patchesjsonbList of one-off patches for database homes.
database_software_image_one_off_patchesjsonbList of one-off patches for database homes.
database_versiontextThe database version with which the database software image is to be built.
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 software image. The name 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 software image.
image_shape_familytext=The shape that the image is meant for.
image_typetext=The type of software image. It can be grid or database.
included_patches_summarytextThe patches included in the image and the version of the image.
is_upgrade_supportedboolean=True if this database software image is supported for upgrade.
lifecycle_detailstextDetailed message for the lifecycle state.
lifecycle_statetext=The current state of the database software image.
ls_inventorytextThe output from lsinventory which will get passed as a string.
patch_settextThe PSU or PBP or release updates.
regiontextThe OCI region in which the resource is located.
tagsjsonbA map of tags for the resource.
tenant_idtextThe 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 software image was created.
titletextTitle of the resource.

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_software_image