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_createdfrom oci_database_software_image;
select display_name, id, image_type, lifecycle_state, time_createdfrom 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_createdfrom oci_database_software_imagewhere lifecycle_state = 'DELETED';
select display_name, id, image_type, lifecycle_state, time_createdfrom oci_database_software_imagewhere 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_createdfrom oci_database_software_imagewhere time_created <= (current_date - interval '90' day)order by time_created;
select display_name, id, image_type, lifecycle_state, time_createdfrom oci_database_software_imagewhere time_created <= date('now', '-90 day')order by time_created;
Schema for oci_database_software_image
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
compartment_id | text | = | The OCID of the compartment in Tenant in which the resource is located. |
database_software_image_included_patches | jsonb | List of one-off patches for database homes. | |
database_software_image_one_off_patches | jsonb | List of one-off patches for database homes. | |
database_version | text | The database version with which the database software image is to be built. | |
defined_tags | jsonb | Defined 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_name | text | = | The user-friendly name for the database software image. The name does not have to be unique. |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
id | text | = | The OCID of the database software image. |
image_shape_family | text | = | The shape that the image is meant for. |
image_type | text | = | The type of software image. It can be grid or database. |
included_patches_summary | text | The patches included in the image and the version of the image. | |
is_upgrade_supported | boolean | = | True if this database software image is supported for upgrade. |
lifecycle_details | text | Detailed message for the lifecycle state. | |
lifecycle_state | text | = | The current state of the database software image. |
ls_inventory | text | The output from lsinventory which will get passed as a string. | |
patch_set | text | The PSU or PBP or release updates. | |
region | text | The OCI region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
tags | jsonb | A map of tags for the resource. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
tenant_name | text | The name of the Tenant in which the resource is located. | |
time_created | timestamp with time zone | The date and time the database software image was created. | |
title | text | Title 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