oci360 1e.24. Compute Instances per Image (OCI360_IMAGES)


# ID DISPLAY_NAME TOTAL
1 ocid1.image.oc1.iad.000000000000000000000000000000000000000000000000000000000508 Oracle-Linux-7.8-2020.04.17-0 1

#: click on a column heading to sort on it

 Name                                                                                Null?    Type
 ----------------------------------------------------------------------------------- -------- --------------------------------------------------------
 ID                                                                                           VARCHAR2(128)
 LAUNCH_MODE                                                                                  VARCHAR2(16)
 SIZE_IN_MBS                                                                                  NUMBER
 DISPLAY_NAME                                                                                 VARCHAR2(128)
 TIME_CREATED                                                                                 VARCHAR2(32)
 BASE_IMAGE_ID                                                                                VARCHAR2(4)
 AGENT_FEATURES                                                                               VARCHAR2(4)
 COMPARTMENT_ID                                                                               VARCHAR2(4)
 LAUNCH_OPTIONS$FIRMWARE                                                                      VARCHAR2(8)
 LAUNCH_OPTIONS$NETWORK_TYPE                                                                  VARCHAR2(16)
 LAUNCH_OPTIONS$BOOT_VOLUME_TYPE                                                              VARCHAR2(16)
 LAUNCH_OPTIONS$REMOTE_DATA_VOLUME_TYPE                                                       VARCHAR2(16)
 LAUNCH_OPTIONS$IS_CONSISTENT_VOLUME_NAMING_ENABLED                                           VARCHAR2(8)
 LAUNCH_OPTIONS$IS_PV_ENCRYPTION_IN_TRANSIT_ENABLED                                           VARCHAR2(4)
 LIFECYCLE_STATE                                                                              VARCHAR2(16)
 OPERATING_SYSTEM                                                                             VARCHAR2(32)
 CREATE_IMAGE_ALLOWED                                                                         VARCHAR2(4)
 OPERATING_SYSTEM_VERSION                                                                     VARCHAR2(32)


WITH t1 as (select /*+ materialize */ * from OCI360_INSTANCES),
     t2 as (select /*+ materialize */ * from OCI360_IMAGES)
SELECT t2.id,
       t2.display_name,
       count(*) total
FROM   t1, t2
WHERE  t1.image_id=t2.id
GROUP BY t2.id, t2.display_name
ORDER BY 3 DESC;


1 rows selected.

oci360 (c) 2020, All rights reserved. oci360 v20.06 (2020-06-25) based on moat369 v2002 (2020-02-27). Timestamp: 2020-06-30T15:51:14