Wednesday, May 13, 2026

Enterprise AI-OIC Integration Architecture


Enterprise AI-Oracle Integration Cloud(OIC)- Integration Architecture

The diagram below shows all layers — from the AI model's HTTP call down to the database cursor — and how OIC acts as the intelligent middleware fabric.

// Enterprise AI-OIC Integration Architecture
AI LAYEROIC LAYERDATA LAYERORACLE DIGITALASSISTANT (ODA)Chatbot / NLUIntent → Skill → APILLM / ML MODELGPT / Gemini / OCIFunction CallingCUSTOM AI APPAutomation AgentPython / Node SDKOBSERVABILITYOCI APM / GrafanaMetrics · Traces · LogsOIC API GATEWAY · OAuth 2.0 · Rate Limiting · SSL/TLSPOST /ic/api/integration/v1/flows/rest/ai-agent/invokeOIC ORCHESTRATION ENGINE1. Validate Input2. Lookup / Enrich3. Transform4. Route / Invoke5. Error Handle6. RespondORACLE ERP / HCMSOAP / FBDIFinancials · Supply ChainHR · ProjectsSALESFORCE CRMREST / Bulk APILeads · Opps · CasesORACLE ATP / DBJDBC / RESTLookup · AuditOIC_AI_AUDIT_LOG3RD PARTY APIREST / WebhookPayment · LogisticsLOGSOCILoggingAI triggerData flowTelemetry
🏛 Architect's Note: OIC lives in Layer 2 (the "Integration Mesh"). It's the only layer with credentials to both the AI internet and the enterprise intranet. Every AI action is mediated, logged, and policy-enforced here — never by the AI model itself.

Six Steps to Register OIC as an AI Agent

Step 01

Prepare the Integration

Create an App-Driven Orchestration in OIC. Set a REST trigger on /ai-agent/invoke. Design for idempotency.

Step 02

Expose as Secured API

Activate the integration as a REST endpoint. Apply OAuth 2.0 Client Credentials. Publish to API Gateway.

Step 03

Register in AI Platform

Add a Custom API Skill in ODA (or a Tool Definition in your LLM framework) pointing to the OIC endpoint URL.

Step 04

Map Intents → Params

Bind NLU intents to OIC parameters. Enable async response for long-running orchestrations (>5 seconds).

Step 05

Test & Debug

Use OIC Monitoring → Track Instances. Send structured JSON test payloads. Validate full round-trip latency.

Step 06

CI/CD & Automate

Deploy with shell scripts or Terraform. Manage integration packages via OIC REST Management API.

Step 2 In Full: Securing & Calling the API

After activation, the OIC integration surfaces as a REST endpoint secured by Oracle IDCS (Identity Cloud Service). Below is the complete request flow:

① Get an OAuth 2.0 Access Token

bash · cURL
# Step 1 — Obtain OAuth token from Oracle IDCS
curl -X POST "https://idcs-<TENANT>.identity.oraclecloud.com/oauth2/v1/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=<CLIENT_ID>" \
  -d "client_secret=<CLIENT_SECRET>" \
  -d "scope=https://<OIC_HOST>:443urn:opc:resource:consumer::all"

# Response
{
  "access_token": "eyJra...",
  "token_type": "Bearer",
  "expires_in": 3600
}

② Invoke the OIC AI-Agent Endpoint

bash · cURL
curl -X POST \
  "https://<OIC_HOST>/ic/api/integration/v1/flows/rest/AI-AGENT-INVOKE/1.0/invoke" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "X-Request-ID: $(uuidgen)" \  # idempotency key
  -d '{
    "customerId"  : "98765",
    "requestType" : "fetchOrder",
    "orderId"     : "ORD-2024-00123",
    "callbackUrl" : "https://my-ai-app.example.com/webhook/oic-callback"
  }'

# Synchronous response (fast integrations)
HTTP/1.1 200 OK
{
  "status"       : "SUCCESS",
  "orderId"      : "ORD-2024-00123",
  "orderStatus"  : "SHIPPED",
  "trackingCode" : "FX-9923401",
  "estimatedDelivery": "2024-03-18"
}

# Asynchronous response (long-running orchestrations)
HTTP/1.1 202 Accepted
{ "instanceId": "f8a2-44c9-b3e1", "message": "Processing. Callback will fire." }

③ Python SDK — Production-Grade Invocation

python
import requests, uuid, time, logging
from typing import Optional

# Configure structured logging
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s')
logger = logging.getLogger("oic_agent")

class OICAgentClient:
    """Thread-safe OIC AI-Agent REST client with retry and token refresh."""

    def __init__(self, oic_host, client_id, client_secret, idcs_url):
        self.oic_host       = oic_host
        self.client_id      = client_id
        self.client_secret   = client_secret
        self.idcs_url       = idcs_url
        self._token         = None
        self._token_expiry   = 0

    def _get_token(self) -> str:
        if time.time() < self._token_expiry - 60:
            return self._token

        resp = requests.post(self.idcs_url, data={
            "grant_type"   : "client_credentials",
            "client_id"    : self.client_id,
            "client_secret": self.client_secret,
        }, timeout=10)
        resp.raise_for_status()
        data = resp.json()
        self._token        = data["access_token"]
        self._token_expiry  = time.time() + data["expires_in"]
        return self._token

    def invoke(self, request_type: str, payload: dict,
                max_retries: int = 3) -> Optional[dict]:
        url = (
            f"https://{self.oic_host}"
            "/ic/api/integration/v1/flows/rest/AI-AGENT-INVOKE/1.0/invoke"
        )
        for attempt in range(max_retries):
            try:
                headers = {
                    "Authorization": f"Bearer {self._get_token()}",
                    "Content-Type" : "application/json",
                    "X-Request-ID" : str(uuid.uuid4()),
                }
                body = {"requestType": request_type, **payload}
                resp = requests.post(url, json=body, headers=headers, timeout=30)

                if resp.status_code == 429:        # rate limited
                    time.sleep(2 ** attempt)
                    continue

                resp.raise_for_status()
                logger.info("OIC invoke success requestType=%s", request_type)
                return resp.json()

            except requests.RequestException as e:
                logger.warning("Attempt %d failed: %s", attempt + 1, e)
                if attempt == max_retries - 1:
                    raise
        return None

# Usage
client = OICAgentClient(
    oic_host="oic.example.oraclecloud.com",
    client_id="ai-agent-client",
    client_secret="<SECRET>",
    idcs_url="https://idcs-xxx.identity.oraclecloud.com/oauth2/v1/token",
)
result = client.invoke("fetchOrder", {"customerId": "98765", "orderId": "ORD-001"})
print(result)

Step 3: Registering in ODA — Intent Mapping

Oracle Digital Assistant (ODA) uses a YAML/JSON skill definition to link NLU intents to backend REST services. Here's the complete intent-to-OIC binding:

json · ODA Skill Definition
{
  "name": "OIC_AI_Agent_Skill",
  "version": "1.2.0",
  "intents": [
    {
      "name": "GetCustomerOrder",
      "utterances": [
        "Where is my order?",
        "Track my shipment",
        "What is the status of order {orderId}?"
      ],
      "entities": [
        { "name": "orderId",    "type": "PATTERN", "pattern": "ORD-\\d+" },
        { "name": "customerId", "type": "REGEX",   "pattern": "\\d{5,10}" }
      ]
    },
    {
      "name": "ApprovePurchaseOrder",
      "utterances": ["Approve PO {poNumber}", "Sanction purchase order"],
      "entities": [
        { "name": "poNumber", "type": "PATTERN", "pattern": "PO-\\d+" }
      ]
    }
  ],
  "services": [
    {
      "name": "OICAgentService",
      "type": "RestService",
      "endpoint": "https://<OIC_HOST>/ic/api/integration/v1/flows/rest/AI-AGENT-INVOKE/1.0/invoke",
      "method": "POST",
      "auth": { "type": "oauth2_client_credentials",
                "tokenUrl": "https://idcs-xxx.identity.oraclecloud.com/oauth2/v1/token",
                "scope": "urn:opc:resource:consumer::all" },
      "async": { "enabled": true, "timeout": 30000, "pollingInterval": 3000 }
    }
  ],
  "intentMappings": [
    { "intent": "GetCustomerOrder",
      "service": "OICAgentService",
      "requestTemplate": {
        "requestType": "fetchOrder",
        "orderId"    : "${entities.orderId}",
        "customerId" : "${entities.customerId}"
      }
    },
    { "intent": "ApprovePurchaseOrder",
      "service": "OICAgentService",
      "requestTemplate": {
        "requestType": "approvePO",
        "poNumber"   : "${entities.poNumber}"
      }
    }
  ]
}

Building the Audit Trail Database

Every AI-driven action through OIC must be auditable. The schema below is designed for Oracle Autonomous Transaction Processing (ATP) and captures the full lifecycle of each agent invocation — from the intent parsed in ODA to the final system response.

DDL — Core Audit Schema

sql · Oracle DDL
-- ═══════════════════════════════════════════════════════════
--  OIC AI AGENT AUDIT SCHEMA  ·  Oracle ATP
--  Purpose : Full traceability of every AI→OIC→System action
-- ═══════════════════════════════════════════════════════════

CREATE TABLE oic_ai_audit_log (
    audit_id          RAW(16)       DEFAULT SYS_GUID()   NOT NULL,
    instance_id       VARCHAR2(100)  NOT NULL,   -- OIC flow instance
    request_id        VARCHAR2(100),              -- X-Request-ID header
    agent_type        VARCHAR2(50)   NOT NULL,   -- ODA | LLM | CUSTOM
    intent_name       VARCHAR2(200),
    request_type      VARCHAR2(100)  NOT NULL,
    customer_id       VARCHAR2(50),
    request_payload   CLOB,                       -- full JSON input
    response_payload  CLOB,                       -- full JSON output
    target_system     VARCHAR2(100),              -- ERP | CRM | ATP
    http_status       NUMBER(3),
    error_code        VARCHAR2(50),
    error_message     VARCHAR2(4000),
    duration_ms       NUMBER(10),               -- end-to-end latency
    is_async          CHAR(1)       DEFAULT 'N' CHECK (is_async IN ('Y','N')),
    created_by        VARCHAR2(100)  DEFAULT SYS_CONTEXT('USERENV','OS_USER'),
    created_at        TIMESTAMP      DEFAULT SYSTIMESTAMP NOT NULL,
    updated_at        TIMESTAMP,
    CONSTRAINT pk_oic_audit PRIMARY KEY (audit_id)
);

-- Performance indexes
CREATE INDEX idx_audit_instance  ON oic_ai_audit_log(instance_id);
CREATE INDEX idx_audit_customer  ON oic_ai_audit_log(customer_id, created_at DESC);
CREATE INDEX idx_audit_timestamp ON oic_ai_audit_log(created_at DESC);
CREATE INDEX idx_audit_reqtype   ON oic_ai_audit_log(request_type, http_status);

-- JSON validation on payload columns
ALTER TABLE oic_ai_audit_log ADD CONSTRAINT chk_req_json
  CHECK (request_payload IS JSON);
ALTER TABLE oic_ai_audit_log ADD CONSTRAINT chk_res_json
  CHECK (response_payload IS JSON);

-- Automatic partition on created_at (monthly) for large volumes
-- (use Interval Partitioning in ATP)

DML — Analytical Queries

sql · Oracle Analytics
-- ① Agent health dashboard: success rate, avg latency, volume — last 24h
SELECT
    request_type,
    agent_type,
    COUNT(*)                                              AS total_calls,
    SUM(CASE WHEN http_status = 200 THEN 1 ELSE 0 END)  AS success_count,
    ROUND(
        SUM(CASE WHEN http_status = 200 THEN 1 ELSE 0 END) * 100.0
        / NULLIF(COUNT(*), 0), 2
    )                                                      AS success_pct,
    ROUND(AVG(duration_ms))                               AS avg_latency_ms,
    PERCENTILE_CONT(0.95)
        WITHIN GROUP (ORDER BY duration_ms)               AS p95_latency_ms
FROM   oic_ai_audit_log
WHERE  created_at >= SYSTIMESTAMP - INTERVAL '1' DAY
GROUP BY request_type, agent_type
ORDER BY total_calls DESC;

-- ② Error spike detection: error rate > 5% in any 10-minute window
WITH windowed AS (
    SELECT
        TRUNC(created_at, 'MI') - MOD(EXTRACT(MINUTE FROM created_at), 10)
            / 1440                  AS window_start,
        http_status,
        request_type
    FROM oic_ai_audit_log
    WHERE created_at >= SYSTIMESTAMP - INTERVAL '2' HOUR
)
SELECT
    window_start,
    request_type,
    COUNT(*)                                                       AS total,
    SUM(CASE WHEN http_status >= 400 THEN 1 ELSE 0 END)         AS errors,
    ROUND(SUM(CASE WHEN http_status >= 400 THEN 1 ELSE 0 END)
        * 100.0 / COUNT(*), 2)                                   AS error_pct
FROM   windowed
GROUP BY window_start, request_type
HAVING ROUND(SUM(CASE WHEN http_status >= 400 THEN 1 ELSE 0 END)
    * 100.0 / COUNT(*), 2) > 5
ORDER BY window_start DESC;

-- ③ Top customers by AI-agent interaction volume (last 30 days)
SELECT
    customer_id,
    COUNT(*)                                           AS interactions,
    COUNT(DISTINCT request_type)                        AS unique_intents,
    MAX(created_at)                                    AS last_seen,
    ROUND(AVG(duration_ms))                            AS avg_latency_ms,
    LISTAGG(DISTINCT request_type, ', ')
        WITHIN GROUP (ORDER BY request_type)            AS intents_used
FROM   oic_ai_audit_log
WHERE  created_at >= ADD_MONTHS(SYSDATE, -1)
  AND  customer_id IS NOT NULL
GROUP BY customer_id
ORDER BY interactions DESC
FETCH FIRST 20 ROWS ONLY;

-- ④ Extract nested JSON fields from AI payloads (Oracle JSON Path)
SELECT
    audit_id,
    created_at,
    JSON_VALUE(request_payload,  '$.orderId')     AS order_id,
    JSON_VALUE(request_payload,  '$.customerId')  AS customer_id,
    JSON_VALUE(response_payload, '$.orderStatus') AS order_status,
    JSON_VALUE(response_payload, '$.trackingCode')AS tracking_code,
    duration_ms
FROM   oic_ai_audit_log
WHERE  request_type = 'fetchOrder'
  AND  created_at >= SYSDATE - 7
ORDER BY created_at DESC;

Step 5: Automating Deployment

OIC ships a full REST Management API — every action you can do in the UI you can script. The pipeline below is battle-tested for enterprise deployments:

// CI/CD Pipeline — OIC Integration Deployment
GIT PUSHSourcemain branchPACKAGEBuild ZIPexport scriptIMPORTOIC REST API/flows/importACTIVATEOIC REST API/flows/activateSMOKE TESTPostman / curlassert 200 OKNOTIFYSlack / Emaildeploy complete← Rollback on smoke-test failure

Shell Script — Full Deploy Pipeline

bash · Deploy Script
#!/bin/bash
# ════════════════════════════════════════════════════════════
#  deploy-oic-integration.sh
#  Deploys + activates an OIC integration via REST Management API
# ════════════════════════════════════════════════════════════
set -euo pipefail

# ── Config ──────────────────────────────────────────────
OIC_HOST="https://oic.example.oraclecloud.com"
USERNAME="oic_deploy_svc"
PASSWORD="${OIC_DEPLOY_PWD}"          # inject from CI secret
ZIP_FILE="dist/AI-AGENT-INVOKE_v1.2.zip"
INTEGRATION_ID="AI-AGENT-INVOKE|01.02.0000"
SMOKE_URL="${OIC_HOST}/ic/api/integration/v1/flows/rest/AI-AGENT-INVOKE/1.0/invoke"

log() { echo "[$(date +%T)] $*"; }

# ── 1. Import integration package ───────────────────────
log "Importing ${ZIP_FILE}..."
curl -s -u "${USERNAME}:${PASSWORD}" -X POST \
  "${OIC_HOST}/ic/api/integration/v1/flows/import" \
  -F "file=@${ZIP_FILE}" \
  -F "override=true" | jq '.status'

# ── 2. Activate ──────────────────────────────────────────
log "Activating integration..."
curl -s -u "${USERNAME}:${PASSWORD}" -X POST \
  "${OIC_HOST}/ic/api/integration/v1/flows/activate" \
  -H "Content-Type: application/json" \
  -d '{"id":"'"${INTEGRATION_ID}"'","status":"ACTIVATED"}'

# ── 3. Smoke test ────────────────────────────────────────
log "Running smoke test..."
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
  -u "${USERNAME}:${PASSWORD}" -X POST "${SMOKE_URL}" \
  -H "Content-Type: application/json" \
  -d '{"requestType":"healthCheck"}')

if [[ "${HTTP_CODE}" != "200" ]]; then
  log "SMOKE TEST FAILED (HTTP ${HTTP_CODE}) — rolling back!"
  curl -s -u "${USERNAME}:${PASSWORD}" -X POST \
    "${OIC_HOST}/ic/api/integration/v1/flows/deactivate" \
    -H "Content-Type: application/json" \
    -d '{"id":"'"${INTEGRATION_ID}"'","status":"CONFIGURED"}'
  exit 1
fi

log "✅ Deploy complete. Integration is LIVE."

Security Hardening Checklist

ControlImplementationWhy It Matters
OAuth 2.0 CCClient-Credentials flow via Oracle IDCS; tokens expire in 3600sNo long-lived credentials in AI agent code. Revocable instantly.
mTLSMutual TLS between OIC and backend ERP/CRMPrevents MITM on internal network; required for PCI/HIPAA.
Input SanitisationOIC Mapper + regex validation before any DB/ERP callStops prompt-injection payloads from reaching enterprise systems.
Rate LimitingOIC API Gateway: 200 req/min per client_idPrevents runaway AI loops from flooding backend systems.
Payload Size CapMax 256 KB per request; reject oversized payloads with 413Mitigates DoS via large-body attacks on the orchestration engine.
VersioningSemantic version in URL: /AI-AGENT-INVOKE/1.0/Allows breaking changes without disrupting existing AI agent consumers.
Idempotency KeysX-Request-ID header; OIC deduplicates within 10 min windowAI agents often retry; prevents duplicate POs / duplicate payments.
Audit LoggingFull request + response written to oic_ai_audit_logNon-repudiation: every AI action traceable to agent + timestamp.
⚠ Architect's Warning: Never store the client_secret in your AI agent's code or version control. Use OCI Vault (or equivalent) and inject at runtime. AI model training pipelines inadvertently leak secrets embedded in code examples.

Async Orchestration Flow

Long-running OIC flows (ERP approval chains, batch enrichment) must respond asynchronously. The pattern below uses a callback webhook so the AI agent is never blocked:

// Async Request-Callback Pattern
AI AGENTOIC INTEGRATIONBACKEND ERP① POST /invoke (callbackUrl)② HTTP 202 Accepted { instanceId }③ SOAP/REST call to ERPProcessing…(5–30 sec)④ ERP response → OIC⑤ Write audit logATP / OIC Monitor⑥ POST callbackUrl { result, status }
💡 Pro Tip: Include the original instanceId and a correlationId in the callback payload. The AI agent uses these to reconcile which conversation turn triggered the action — critical for multi-user chatbot deployments.

What Separates Good from Great

Design for Idempotency

AI agents retry on timeouts. Every OIC integration must tolerate duplicate X-Request-ID values. Use a dedup table in ATP keyed on the request ID with a TTL of 10 minutes.

Version Everything

Embed the semantic version in the REST path (/1.0/). When an AI model's function signature changes, deploy a /2.0/ endpoint in parallel before deprecating v1.

Async by Default

If your OIC flow touches more than one backend system, assume it'll take >5 seconds. Design the callback pattern from day one — retrofitting async is painful.

Sanitise AI Inputs

Treat every field extracted by the NLU layer as untrusted user input. Apply length limits, type validation, and allowlists in the OIC Mapper before any backend call.

Circuit Breakers

If a backend system returns 5xx errors, OIC should stop retrying after 3 attempts and return a structured error to the AI agent — 

OCI Resource Analytics: Your Cloud Environment as a Queryable Database







01

Why this is different from every other CMDB

Every cloud architect eventually builds the same thing: a script that calls the OCI CLI, dumps resource JSON into a table, and sets up a cron job to keep it fresh. The problem is never the initial scrape — it's the drift. A compute instance gets terminated at 2am, a new subnet is carved out during an incident, an Exadata rack moves compartments. By the time anyone looks at the report, reality has diverged.

OCI Resource Analytics solves the staleness problem at the source. Instead of polling the control plane on a schedule, the service hooks directly into the same Kafka event stream that powers OCI's internal event bus. Resource state changes are captured as they happen and written into an Autonomous Data Warehouse that lives inside your tenancy. You own the data, you control the IAM, you pay for the ADW — and it's never more than a minute stale for same-region resources.

The critical architecture distinction

The ADW provisioned by Resource Analytics is not a shared Oracle-managed backend. It is a dedicated 4-ECPU Autonomous AI Lakehouse database in your own tenancy compartment. You can create new schemas in it, grant access to your own users, load external data into it, and build custom analytics on top of it. Oracle writes OCIRA metadata into it; you own everything else.

AI intelligence layerSelect AI · vector search · in-DB ML · SQLcl MCP
Analytics & application layerOAC dashboards · Graph Studio · APEX apps
Extensible data layer (your tenancy ADW)OCIRA.* views + custom schemas for enrichment
Event ingestion layerKafka CDC streams · <1 min same-region · <5 min cross-region
02

Architecture: what gets provisioned

Enabling the service creates three discrete, billable components in your tenancy — nothing is silently hosted on Oracle's backend.

Autonomous AI Lakehouse

4 ECPUs. Hosts the OCIRA.* schema with dimension views for every supported resource type. Supports vector search, in-DB ML, and Select AI natural language translation.

Oracle Analytics Cloud

2 OCPUs. Pre-configured with 10+ domain dashboards: Compute, Network, Database, Backup, OKE, Object Storage, Load Balancer, Logging, Integration Cloud. OAC AI Agent included.

Graph Studio

Embedded in the ADW. Six pre-built notebooks model Compute/Volume, Network, DBaaS, LBaaS, NLB, and Subscription hierarchies as interactive property graphs — no graph modelling required.

4
ECPU ADW baseline
<1m
same-region sync
10+
pre-built dashboards
6
graph notebooks

Supported resource types include compute instances, networking resources (VCN, subnet, NSG, DRG, local peering gateways), block storage, boot volumes, load balancers, network load balancers, tenancies, accounts, subscriptions, Autonomous Databases, DB Systems, and Exadata infrastructure.

03

The OCIRA schema: what you can query

Oracle exposes resource metadata through named dimension views in the OCIRA schema. These are stable interfaces — not base tables — meaning Oracle manages the underlying denormalization while you query clean, versioned view names. Every view exposes DEFINED_TAGS and FREEFORM_TAGS as JSON columns, queryable with standard JSON_VALUE / JSON_TABLE functions.

Compute

COMPUTE_INSTANCE_DIM_V
COMPUTE_VOLUME_ATTACHMENT_DIM_V
COMPUTE_BOOT_VOLUME_ATTACHMENT_DIM_V

Block storage

BLOCK_VOLUME_BACKUP_DIM_V
BLOCK_BOOT_VOLUME_BACKUP_DIM_V
BLOCK_VOLUME_DIM_V

Databases

AUTONOMOUS_DATABASE_DIM_V
ADB_BACKUP_DIM_V
DB_SYSTEM_DIM_V
EXADATA_INFRA_DIM_V

Networking

VCN_DIM_V
SUBNET_DIM_V
NETWORK_SECURITY_GROUP_DIM_V
DRG_DIM_V

Load balancers

LOAD_BALANCER_DIM_V
NLB_DIM_V
BACKEND_SET_DIM_V

Tenancy & IAM

TENANCY_DIM_V
COMPARTMENT_DIM_V
SUBSCRIPTION_DIM_V

Tag access pattern

All OCIRA views surface tags as JSON. Extract cost-centre, environment, or owner tags without ETL: JSON_VALUE(DEFINED_TAGS, '$.CostCenter.code') works inline in any query. This is particularly useful for compliance GROUP BY and allocation reporting without maintaining a separate tag dimension table.

04

SQL scenarios: 6 real operational queries

Because resource metadata lives in a full Autonomous Database, every SQL capability is available: analytic functions, CTEs, JSON functions, PIVOT, REGEXP, and OML. The queries below address the six operational questions that come up most consistently in enterprise OCI environments.

Full backup posture: compute instances × block + boot volumes

The classic cross-entity audit. Block volumes, boot volumes, and instances are separate entity types — this UNION ALL ties them into a single governance report with days-since-backup calculated inline.

OCIRA backup coverage — all volume types per instanceSQL
SELECT
    i.DISPLAY_NAME          AS instance_name,
    i.LIFECYCLE_STATE       AS state,
    va.DISPLAY_NAME         AS volume_name,
    va.DEVICE,
    bv.LIFECYCLE_STATE      AS backup_state,
    bv.TIME_CREATED         AS backup_time,
    bv.SIZE_IN_GBS          AS size_gb,
    TRUNC(SYSDATE - bv.TIME_CREATED) AS days_since_backup
FROM  OCIRA.COMPUTE_INSTANCE_DIM_V              i
LEFT JOIN OCIRA.COMPUTE_VOLUME_ATTACHMENT_DIM_V va  ON i.ID = va.INSTANCE_ID
LEFT JOIN OCIRA.BLOCK_VOLUME_BACKUP_DIM_V       bv  ON va.VOLUME_ID = bv.VOLUME_ID
UNION ALL
SELECT
    i.DISPLAY_NAME, i.LIFECYCLE_STATE,
    bva.DISPLAY_NAME,
    'BOOT'                  AS device,
    bbv.LIFECYCLE_STATE,
    bbv.TIME_CREATED,
    bbv.SIZE_IN_GBS,
    TRUNC(SYSDATE - bbv.TIME_CREATED)
FROM  OCIRA.COMPUTE_INSTANCE_DIM_V                     i
LEFT JOIN OCIRA.COMPUTE_BOOT_VOLUME_ATTACHMENT_DIM_V  bva  ON i.ID = bva.INSTANCE_ID
LEFT JOIN OCIRA.BLOCK_BOOT_VOLUME_BACKUP_DIM_V         bbv  ON bva.BOOT_VOLUME_ID = bbv.BOOT_VOLUME_ID
ORDER BY instance_name, backup_time DESC;
05

Graph Studio: when SQL is the wrong tool

There is a class of infrastructure question that relational SQL answers badly: "show me everything that depends on this subnet," "trace the path from this compute instance through the network to the internet gateway," "enumerate all databases in the subtree rooted at this compartment." These are graph traversal questions. Oracle Graph Studio — embedded in the same ADW — handles them natively.

Graph Studio constructs a virtual property graph over the OCIRA relational views. No data is copied. The graph reflects the same sub-minute refresh cycle as the underlying dimension tables. Six pre-built notebooks ship with the service:

Compute & Volume explorer

Tenancy → compartment → instance → volume attachments → block/boot volumes. Full dependency chain, traversable in both directions.

Network topology explorer

VCN → subnets → NSGs → LPGs → DRGs. Understand connectivity paths and isolation domain boundaries without reading JSON route tables.

DBaaS explorer

DB Systems → ADB → Exadata Infrastructure → associated network subnets. Critical for change-impact analysis before maintenance windows.

LBaaS explorer

Load balancers → listeners → backend sets → individual backends. Trace traffic routing and spot misconfigured backend health configurations.

NLB explorer

Network Load Balancer topology at OSI Layer 4. Essential for environments using NLB for high-throughput, connection-preserving workloads.

Subscription hierarchy

Subscriptions → tenancies → compartment parent-child trees. One-glance governance view for multi-tenancy environments and policy inheritance verification.

06

Data enrichment: building the single pane of glass

The OCIRA schema answers "what exists and how is it configured." Operators need two more dimensions to work effectively: "how is it performing" and "what does it cost." Because the ADW is yours, you can load both into the same database and JOIN against the OCIRA views — without building a separate data platform.

Layer 1: OCI Ops Insights host and database metrics

CPU percentiles, memory consumption, I/O throughput, SQL execution counts, and wait event distributions flow from Ops Insights Host Insights and Database Insights. JOINed against OCIRA dimension views on OCID, this produces the configuration-plus-performance surface needed for root-cause analysis — "did this instance's shape change before CPU spiked?"

Layer 2: Oracle Enterprise Manager repository data

EM's repository database carries the deepest Oracle performance history available: AWR snapshots, Exadata cell statistics, ASM metadata, middleware telemetry, and patch history across on-premises and cloud. Replicating or exporting key EM repository tables into the enrichment schema unifies deep EM performance intelligence with cloud-native OCIRA metadata in a single queryable store — without requiring EM console access for ad-hoc queries. Candidate tables: MGMT$DB_DBNINSTANCEINFO, MGMT$DB_CPU_USAGE, MGMT$METRIC_DETAILS, ExaCC cell metrics.

Layer 3: OCI Usage Reports for FinOps analysis

Cost and usage data from OCI Usage Reports (available as CSV from Object Storage) can be loaded into a custom schema and JOINed on OCID to correlate cost-per-resource against configuration, owner tags, and utilization profile. This is the FinOps query surface most teams build manually — here it coexists with the rest of your observability data in a single database.

Integration dependency metrics

Beyond individual resource metrics, the enrichment model can include end-to-end service health by modelling dependency chains: an Integration Cloud instance calling an ADB, a load balancer fronting compute running middleware. Annotating each dependency link with its own health and latency metric shifts the operational view from isolated resource health to service health — the data model that actually matches how incidents propagate.

07

AI operations: MCP, pattern recognition, recommendations

The Autonomous AI Lakehouse underlying Resource Analytics supports vector search, in-database machine learning, and natural language SQL via Select AI. The most immediately actionable capability for operations teams is the SQLcl 25.2 MCP server.

SQLcl MCP server (Oracle SQLcl 25.2+)

The built-in MCP server exposes three tools — run-sql, list-connections, connect — to any MCP-compatible AI assistant: Claude, VS Code Copilot, OpenAI Codex, or a custom agent. The AI translates natural language to SQL, executes it against the ADW, and returns structured results. No custom integration code. IAM policies on the ADW govern access exactly as they would for any database user.

Three capability tiers, ordered by maturity:

Natural language queries — available now

Which Autonomous Databases in the finance compartment have not had a successful backup in the last 7 days?
Which compute instances are missing mandatory cost-center tags across all regions?
Show me the parent-child compartment hierarchy as a tree structure and flag compartments with no tags applied.

AI-driven pattern recognition — with enriched metrics

Analyze all DB Systems and flag any more than two patch levels behind their compartment peers.
Find block volumes with no attachments and no recent I/O activity — flag them as decommission candidates.
Identify databases whose backup frequency deviates significantly from their peer group in the same compartment.

Intelligent recommendations — with cost data enriched

Compare provisioned ECPU capacity versus 30-day average usage across all Autonomous Databases and recommend right-sizing opportunities.
Identify resources created more than 180 days ago with no tags, no recent activity, and no dependencies — flag for decommissioning review.
Do I have capacity constraints in VM cluster prod-exacc-01? If so, which DB systems are impacted and what is the provisioned vs used ECPU ratio?
08

Pre-built dashboards and APEX apps

For teams not ready to write queries directly, the pre-configured OAC instance provides immediate value. Ten domain dashboards are pre-built and pre-connected to the ADW with no setup required.

Resource Discovery

Cross-tenancy totals filterable by region, compartment, and resource type. Starting point for any environment audit.

Compute infrastructure

Shape distribution, lifecycle state, availability domain spread, instance age cohorts.

Database dashboard

ADB, DB System, and Exadata inventory with configuration details and backup status.

Backup coverage

Block volume, boot volume, and database backup coverage rates. Compliance by policy type, region, and compartment.

Tagging compliance

Mandatory tag coverage rates across all resource types. Highlights untagged resources for governance remediation.

OAC AI Agent

Conversational interface over the full OCIRA dataset, natively within Oracle Analytics Cloud. No separate tool or API key required.

For teams wanting a custom data application without hand-coding SQL pages, APEX Generative AI App Builder — embedded in the ADW — generates fully functional APEX applications from a natural language prompt describing the required screens, visualizations, and data model mappings. What previously required a sprint of development is now a prompt-engineering exercise.


SQL query patterns for DBAs

The metadata lands in a full Autonomous Database, every standard SQL capability is available: analytical functions, PIVOT, CTEs, JSON functions, REGEXP, spatial operators, and ML via OML. The OCIRA schema exposes dimension views rather than base tables — meaning Oracle handles the underlying denormalization and you query clean, stable interfaces.

Here are patterns representative of real operational questions:

Backup coverage audit — compute instances × block volumes × boot volumesSQL
-- Full backup posture: each compute instance with its most recent
-- block volume AND boot volume backup state in a single result set
SELECT
    i.DISPLAY_NAME        AS instance_name,
    i.LIFECYCLE_STATE     AS instance_state,
    va.DISPLAY_NAME       AS volume_name,
    va.DEVICE,
    bv.LIFECYCLE_STATE    AS backup_state,
    bv.TIME_CREATED       AS backup_time,
    bv.SIZE_IN_GBS        AS backup_size_gb,
    TRUNC(SYSDATE - bv.TIME_CREATED) AS days_since_backup
FROM  OCIRA.COMPUTE_INSTANCE_DIM_V i
LEFT JOIN OCIRA.COMPUTE_VOLUME_ATTACHMENT_DIM_V   va  ON i.ID = va.INSTANCE_ID
LEFT JOIN OCIRA.BLOCK_VOLUME_BACKUP_DIM_V          bv  ON va.VOLUME_ID = bv.VOLUME_ID
UNION ALL
SELECT
    i.DISPLAY_NAME,
    i.LIFECYCLE_STATE,
    bva.DISPLAY_NAME,
    'BOOT'               AS device,
    bbv.LIFECYCLE_STATE,
    bbv.TIME_CREATED,
    bbv.SIZE_IN_GBS,
    TRUNC(SYSDATE - bbv.TIME_CREATED)
FROM  OCIRA.COMPUTE_INSTANCE_DIM_V i
LEFT JOIN OCIRA.COMPUTE_BOOT_VOLUME_ATTACHMENT_DIM_V  bva  ON i.ID = bva.INSTANCE_ID
LEFT JOIN OCIRA.BLOCK_BOOT_VOLUME_BACKUP_DIM_V         bbv  ON bva.BOOT_VOLUME_ID = bbv.BOOT_VOLUME_ID
ORDER BY instance_name, backup_time DESC;
ADB backup gap detection — databases with no backup in last 7 daysSQL
-- Identify Autonomous Databases at risk: no backup within SLA window
SELECT
    adb.DISPLAY_NAME,
    adb.DB_WORKLOAD,
    adb.LIFECYCLE_STATE,
    adb.COMPARTMENT_ID,
    MAX(bk.TIME_ENDED) AS last_backup_completed,
    TRUNC(SYSDATE - MAX(bk.TIME_ENDED)) AS days_since_backup,
    CASE
        WHEN MAX(bk.TIME_ENDED) IS NULL        THEN 'NEVER_BACKED_UP'
        WHEN SYSDATE - MAX(bk.TIME_ENDED) > 7  THEN 'OVERDUE'
        ELSE 'COMPLIANT'
    END AS backup_status
FROM       OCIRA.AUTONOMOUS_DATABASE_DIM_V  adb
LEFT JOIN  OCIRA.ADB_BACKUP_DIM_V           bk   ON adb.ID = bk.AUTONOMOUS_DATABASE_ID
                                                  AND bk.LIFECYCLE_STATE = 'ACTIVE'
GROUP BY   adb.DISPLAY_NAME, adb.DB_WORKLOAD, adb.LIFECYCLE_STATE, adb.COMPARTMENT_ID
HAVING     MAX(bk.TIME_ENDED) IS NULL
           OR SYSDATE - MAX(bk.TIME_ENDED) > 7
ORDER BY   days_since_backup DESC NULLS FIRST;
Over-provisioning candidate detection — compute with <10% average CPUSQL
-- After enriching ADW with OCI Monitoring metrics (see §05),
-- correlate config × actual utilization for right-sizing candidates
SELECT
    ci.DISPLAY_NAME,
    ci.SHAPE,
    ci.OCPUS,
    ci.MEMORY_IN_GBS,
    ROUND(m.avg_cpu_pct, 2)   AS avg_cpu_utilization,
    ROUND(m.max_cpu_pct, 2)   AS peak_cpu_utilization,
    ci.REGION                  AS region,
    ci.DEFINED_TAGS            AS tags
FROM       OCIRA.COMPUTE_INSTANCE_DIM_V        ci
JOIN       your_schema.INSTANCE_METRICS_V      m   ON ci.ID = m.INSTANCE_ID
WHERE      ci.LIFECYCLE_STATE = 'RUNNING'
  AND      m.avg_cpu_pct < 10
  AND      m.observation_days >= 30
ORDER BY   m.avg_cpu_pct ASC;


OCI Resource Analytics is generally available. Provisioning creates a dedicated ADW, OAC instance, and Graph Studio environment entirely within your tenancy — no shared backend. The data is yours, the schema is extensible, and the SQL surface is unrestricted.

Connecting Microsoft Azure and OCI with the Interconnect: A Step-by-Step Walkthrough

  The 2 a.m. call that started it all An organization runs its customer-facing applications on Azure: containers, web apps, identity service...