Friday, December 4, 2026

The Index That Read 2.28 Billion Rows to Find 626

Every performance engineer has a favorite kind of problem. Mine is the quiet one: no errors, no alerts, no crash. A batch job that used to finish before lunch is now finishing after dinner, and everyone swears nothing changed.

The Call

It started the way it always does. A report on the GTAS activity balances was running for close to an hour, and the business wanted to know why. The developers had checked the code. The DBAs had checked the stats. Everybody was confident, and everybody was stuck.

So I did what I always do first. I stopped reading opinions and started reading the row source statistics from the trace.


Reading the Plan from the Bottom Up

Here is the exact section of the trace I was staring at, with the index scan highlighted:





------------------------------------------------------------------------------------------------------------------------

| Id  | Operation                      | Name                          | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |

------------------------------------------------------------------------------------------------------------------------

|   0 | SELECT STATEMENT               |                               |      1 |        |      1 |00:56:47.12 |     58M |    55M |

|   1 |  SORT AGGREGATE                |                               |      1 |      1 |      1 |00:56:47.12 |     58M |    55M |

|  *2 |   TABLE ACCESS BY INDEX ROWID  | FV_GTAS_ACTIVITY_BALANCES     |    627 |     44 |    626 |00:56:46.89 |     58M |    55M |

|  *3 |    INDEX RANGE SCAN            | FV_GTAS_ACTIVITY_BALANCES_N5  |    627 |     44 |  2280M |00:56:12.40 |     56M |    54M |

------------------------------------------------------------------------------------------------------------------------


The top of the plan told me the size of the crime. The SORT AGGREGATE had burned about 3,407 seconds—roughly 57 minutes—with around 58 million logical reads (Buffers) and 55 million physical reads (Reads). That is not a query that is slightly slow. That is a query hauling a mountain.

Almost all of that work belonged to one operation: the index range scan on FV_GTAS_ACTIVITY_BALANCES_N5. The rest of the plan was bystanders.

The Number That Didn't Make Sense

The index range scan reported 2,280,646,961 rows (2280M). That is 2.28 billion index entries.

The operation above it (TABLE ACCESS BY INDEX ROWID), which fetches the table row and applies the remaining filters, returned just 626 rows.

The plan started 627 times, so each start was visiting about 3.6 million index entries on average. And what had the optimizer expected for each start? The plan says E-Rows = 44 (card=44). Forty-four rows.

The optimizer was off by a factor of more than 80,000.

Why This Happens

The classic cause is an index that matches only part of the predicate—or has low selectivity on the leading/range columns relative to the actual filter conditions. The database walks billions of index entries, follows rowids into the table, evaluates remaining filter predicates, and throws nearly all of those rows away. Meanwhile, a bad cardinality estimate (card=44) makes a costly nested-loop or index-driven path look deceptively cheap.

What I Did Next

I pulled estimated versus actual rows (E-Rows vs. A-Rows), along with the access and filter predicates:

SQL:
SELECT *
FROM   TABLE(DBMS_XPLAN.DISPLAY_CURSOR(
         sql_id => '&sql_id',
         format => 'ALLSTATS LAST +PREDICATE'
       ));

The remediation hierarchy, in order of preference:

  1. A better composite index aligned with the selective equality and range predicates.

  2. Extended statistics (column groups or expressions) when correlated columns skew cardinality estimates.

  3. A SQL Profile or SQL Patch when application code cannot be changed immediately and plan stability/directives are needed.

  4. A SQL Plan Baseline to lock in a verified, efficient execution plan.

Before You Fix Anything: Who Is Already Steering This SQL?

Before creating any fix, I checked whether a profile, baseline, patch, or hint was already influencing statement fhbv5gf213vjq.

1. Anything Attached to This Cursor?

SQL:
SELECT inst_id,
       sql_id,
       child_number,
       plan_hash_value,
       sql_profile,
       sql_plan_baseline,
       sql_patch,
       REGEXP_SUBSTR(sql_fulltext, '/\*\+.*?\*/', 1, 1, 'n') AS embedded_hint
FROM   gv$sql
WHERE  sql_id = 'fhbv5gf213vjq';

2. Which Hints Did the Plan Use?

SQL
SELECT p.inst_id,
       p.child_number,
       p.id,
       x.hint
FROM   gv$sql_plan p,
       XMLTABLE(
         '//*[local-name()="hint"]'
         PASSING XMLTYPE(p.other_xml)
         COLUMNS hint VARCHAR2(4000) PATH '.'
       ) x
WHERE  p.sql_id = 'fhbv5gf213vjq'
AND    p.other_xml IS NOT NULL;

3. Which SQL Patches Exist?

SQL
SELECT name,
       status,
       category,
       created
FROM   dba_sql_patches;

4. What Do the Named Patches Say?

SQL
SELECT name,
       status,
       category,
       force_matching,
       signature,
       created,
       last_modified,
       description,
       sql_text
FROM   dba_sql_patches
WHERE  name IN (
         'FVTEST1_PATCH2',
         'FV_DACT_FIX_K_N2',
         'XLA_FORCE_GENERIC_PLAN'
       )
ORDER  BY created DESC;

5. Which Cursors Are They Attached To?

SQL
SELECT p.name AS patch_name,
       p.status AS patch_status,
       p.force_matching,
       s.inst_id,
       s.sql_id,
       s.child_number,
       s.plan_hash_value,
       s.sql_patch,
       s.executions,
       s.elapsed_time
FROM   dba_sql_patches p
JOIN   gv$sql s
       ON (
            (p.force_matching = 'NO'  AND s.exact_matching_signature = p.signature)
         OR (p.force_matching = 'YES' AND s.force_matching_signature = p.signature)
       )
WHERE  p.name IN (
         'FVTEST1_PATCH2',
         'FV_DACT_FIX_K_N2'
       )
ORDER  BY p.name, s.inst_id, s.sql_id, s.child_number;

Additional Queries for Deeper Understanding

When diagnosing a severe E-Rows vs. A-Rows mismatch and deciding between stats, indexes, or SQL patches, these extra queries pinpoint where the estimate went wrong:

A. Inspect Index Columns and Clustering Factor on FV_GTAS_ACTIVITY_BALANCES_N5

A high clustering factor close to the number of table rows means rowid probes will trigger heavy physical I/O:

SQL
SELECT ic.index_name,
       ic.column_position,
       ic.column_name,
       ic.descend,
       i.clustering_factor,
       i.distinct_keys,
       i.num_rows,
       i.blevel,
       i.leaf_blocks,
       i.last_analyzed
FROM   dba_ind_columns ic
JOIN   dba_indexes i
       ON i.owner = ic.index_owner
      AND i.index_name = ic.index_name
WHERE  ic.table_name = 'FV_GTAS_ACTIVITY_BALANCES'
AND    ic.index_name = 'FV_GTAS_ACTIVITY_BALANCES_N5'
ORDER  BY ic.column_position;


B. Check Column Cardinality, Nulls, and Histograms on the Table

Low num_distinct, skewed data without proper histograms, or stale stats often cause multi-million-row index scans:

SQL
SELECT column_name,
       num_distinct,
       num_nulls,
       density,
       histogram,
       num_buckets,
       sample_size,
       last_analyzed
FROM   dba_tab_col_statistics
WHERE  table_name = 'FV_GTAS_ACTIVITY_BALANCES'
AND    column_name IN (
         SELECT column_name
         FROM   dba_ind_columns
         WHERE  table_name = 'FV_GTAS_ACTIVITY_BALANCES'
         AND    index_name = 'FV_GTAS_ACTIVITY_BALANCES_N5'
       )
ORDER  BY column_name;


C. Compare Plan History Across AWR Snapshots (DBA_HIST_SQLSTAT)

Confirm whether the statement degraded suddenly after a plan flip or grew gradually with data volume:

SQL
SELECT s.snap_id,
       TO_CHAR(sn.begin_interval_time, 'YYYY-MM-DD HH24:MI') AS snap_start,
       s.plan_hash_value,
       s.executions_delta,
       ROUND(s.elapsed_time_delta / 1e6 / NULLIF(s.executions_delta, 0), 2) AS avg_sec_per_exec,
       ROUND(s.buffer_gets_delta / NULLIF(s.executions_delta, 0)) AS avg_lios_per_exec,
       ROUND(s.disk_reads_delta / NULLIF(s.executions_delta, 0)) AS avg_pios_per_exec,
       ROUND(s.rows_processed_delta / NULLIF(s.executions_delta, 0)) AS avg_rows_per_exec
FROM   dba_hist_sqlstat s
JOIN   dba_hist_snapshot sn
       ON sn.snap_id = s.snap_id
      AND sn.dbid = s.dbid
      AND sn.instance_number = s.instance_number
WHERE  s.sql_id = 'fhbv5gf213vjq'
ORDER  BY s.snap_id DESC, s.plan_hash_value;

D. Verify Exact Matching vs. Force Matching Signatures for fhbv5gf213vjq

Useful when checking why a SQL patch or profile did or did not match a cursor:

SQL
SELECT DISTINCT
       sql_id,
       exact_matching_signature,
       force_matching_signature,
       sql_patch,
       sql_profile,
       sql_plan_baseline
FROM   gv$sql
WHERE  sql_id = 'fhbv5gf213vjq';


Deploying the SQL Patch (FV_DACT_FIX_K_N2) to Target Environments

Once verified in lower environments, export the staging table FV_PATCH_STG from the source environment and deploy it to the target PDB using /nanubalu as the repository path:

  1. Locate DMPDIR in the target environment:

    SQL
    SELECT *
    FROM   dba_directories
    WHERE  directory_name = 'DMPDIR';
    
  2. Stage and set permissions on the dump file: Copy fv_patch_stg.dmp from /nanubalu/EBSTS1/DP to the DMPDIR physical location (/nanubalu/EBSPRD/DP for PROD), then set permissions:

    Bash
    chmod 777 /nanubalu/EBSPRD/DP/fv_patch_stg.dmp
    
  3. Import the staging table into the target database:

    Bash
    cd /nanubalu/EBSPRD/DP
    impdp \"/ as sysdba\" directory=DMPDIR tables=SYSTEM.FV_PATCH_STG dumpfile=fv_patch_stg.dmp logfile=fv_patch_stg_imp.log table_exists_action=REPLACE
    
  4. Log into the target PDB(s) and confirm SYSTEM.FV_PATCH_STG:

    SQL
    SELECT owner, table_name
    FROM   dba_tables
    WHERE  table_name = 'FV_PATCH_STG';
    

    Expected output:

    Plaintext
    OWNER
    --------------------------------------------------------------------------------
    TABLE_NAME
    --------------------------------------------------------------------------------
    SYSTEM
    FV_PATCH_STG
    

    Verify row count:

    SQL

    SELECT COUNT(*) FROM system.FV_PATCH_STG;
      COUNT(*)
    ----------
             1
    
  5. Unpack the SQL patch from the staging table:

    SQL
    EXEC DBMS_SQLDIAG.UNPACK_STGTAB_SQLPATCH(patch_name => 'FV_DACT_FIX_K_N2', replace => TRUE, staging_table_name => 'FV_PATCH_STG', staging_schema_owner => 'SYSTEM');
    
  6. Verify the signature matches across environments: Compare SIGNATURE against Defect and IT (for example, 15180609084675737222 should stay consistent across environments, while CREATED reflects the import timestamp):

    SQL
    COL SIGNATURE FORMAT 999999999999999999999999999999999999999999
    COL SQL_HANDLE FORMAT A30
    COL CREATED FORMAT A30
    SET LINES 200
    SELECT SIGNATURE, SQL_HANDLE, CREATED
    FROM   SYSTEM.FV_PATCH_STG;
    
    Plaintext


SET PAGESIZE 100
SET LINESIZE 220
COLUMN patch_name          FORMAT A22
COLUMN patch_status        FORMAT A13
COLUMN force_matching      FORMAT A14
COLUMN sql_patch           FORMAT A22
COLUMN sql_profile         FORMAT A18
COLUMN sql_plan_baseline   FORMAT A20
COLUMN exact_sig           FORMAT 99999999999999999999
COLUMN force_sig           FORMAT 99999999999999999999
COLUMN avg_sec_per_exec    FORMAT 999,999.99
COLUMN avg_lios_per_exec   FORMAT 999,999,999

-- 1. Verify patch status and signature metadata in DBA_SQL_PATCHES
SELECT name           AS patch_name,
       status         AS patch_status,
       category,
       force_matching,
       signature,
       TO_CHAR(created, 'YYYY-MM-DD HH24:MI:SS')       AS created_ts,
       TO_CHAR(last_modified, 'YYYY-MM-DD HH24:MI:SS') AS modified_ts
FROM   dba_sql_patches
WHERE  name = 'FV_DACT_FIX_K_N2';




-- 2. Verify live cursor usage, matching signatures, and runtime metrics in GV$SQL
SELECT p.name                                                      AS patch_name,
       p.status                                                    AS patch_status,
       p.force_matching,
       s.inst_id,
       s.sql_id,
       s.child_number,
       s.plan_hash_value,
       s.sql_patch,
       s.sql_profile,
       s.sql_plan_baseline,
       s.exact_matching_signature                                  AS exact_sig,
       s.force_matching_signature                                  AS force_sig,
       s.executions,
       ROUND(s.elapsed_time / 1e6 / NULLIF(s.executions, 0), 2)    AS avg_sec_per_exec,
       ROUND(s.buffer_gets / NULLIF(s.executions, 0))              AS avg_lios_per_exec,
       TO_CHAR(s.last_active_time, 'YYYY-MM-DD HH24:MI:SS')        AS last_active_ts
FROM   dba_sql_patches p
LEFT JOIN gv$sql s
       ON s.sql_id = 'fhbv5gf213vjq'
      AND (
               (p.force_matching = 'NO'  AND s.exact_matching_signature = p.signature)
            OR (p.force_matching = 'YES' AND s.force_matching_signature = p.signature)
          )
WHERE  p.name = 'FV_DACT_FIX_K_N2'
ORDER  BY s.inst_id NULLS LAST, s.child_number NULLS LAST;




-- 3. Confirm the active child cursor plan shows the SQL patch applied
SELECT *
FROM   TABLE(DBMS_XPLAN.DISPLAY_CURSOR(
         sql_id => 'fhbv5gf213vjq',
         format => 'ALLSTATS LAST +NOTE +PREDICATE'
       ));



How to Remediate and Prevent Issues Like This in the Future

Turning a one-off firefighting win into lasting stability comes down to four habits:

  • Spot cardinality drift early: Always compare E-Rows to A-Rows with DBMS_XPLAN.DISPLAY_CURSOR(..., format => 'ALLSTATS LAST +PREDICATE'). When a single step is off by orders of magnitude, fix the root cause rather than chasing symptoms.

  • Align indexes with actual predicates: Make sure selective equality filters and range conditions match index column order, and watch for high clustering_factor or heavy table rowid lookups after a broad index range scan.

  • Keep statistics and extended stats accurate: Refresh optimizer statistics with appropriate sampling and create extended statistics (DBMS_STATS.CREATE_EXTENDED_STATS) when correlated columns skew selectivity estimates.

  • Promote patches to permanent fixes: Treat a SQL Patch, SQL Profile, or Baseline as a bridge—validate the runtime improvement under real load, then pursue the clean index or SQL/stats fix so future schema and data growth do not re-introduce the bottleneck.


Monday, November 23, 2026

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 services. Its core business data lives in Oracle Database on OCI, tuned over many years and not going anywhere. Every transaction between the two crosses the public internet, through VPN tunnels held together by hope and a few well-meaning scripts.

Then peak-traffic week arrives. Latency spikes. Tunnels flap. The on-call engineer gets paged at 2 a.m. while the business watches users give up and leave.

The post-mortem asks the obvious question: why is our traffic between two world-class clouds traveling the public internet at all?

It doesn't have to. Microsoft and Oracle built a purpose-made private path between their clouds: the Oracle Interconnect for Microsoft Azure. In this walkthrough, I'll tell you how it works, how to build it step by step, and the mistakes I see teams make so you can avoid them.

What is the Azure–OCI Interconnect, really?

In plain language: it is a private, low-latency, high-throughput network connection between an Azure region and an OCI region, with no public internet in between. Traffic flows over a dedicated link between the two providers' networks, typically within the same metro area, and you configure it with technology you probably already know.

Two services meet in the middle:

  • Azure ExpressRoute: Microsoft's private connectivity service. You create an ExpressRoute circuit and connect it to your virtual network through a virtual network gateway.
  • OCI FastConnect: Oracle's private connectivity service. You create a virtual circuit and connect it to your VCN through a Dynamic Routing Gateway (DRG).

The interconnect pairs the two. You create the circuit on one side, hand its service key to the other side, and the clouds are joined by BGP-routed private peering.

Why teams choose it

  • Latency you can plan around. Because paired regions sit in the same metropolitan area, round-trip times are typically in the low single-digit milliseconds. Always measure your own pair, but this is a different universe from internet-routed VPNs.
  • Predictable throughput. Dedicated bandwidth (commonly 1 or 10 Gbps) instead of internet variability.
  • Security by design. Traffic stays on private paths. It does not traverse the public internet.
  • Simplicity. There is no third-party network provider or colocation cage to manage for the connection itself. The two clouds handle the physical link.
  • Application unlocks. Run apps in Azure while keeping Oracle Database on OCI (including Exadata), or build multicloud DR, analytics, and migration paths.

Know your regions first

The interconnect is available only between specific region pairs. Historically these include combinations such as Azure East US with OCI Ashburn, Azure UK South with OCI London, Azure Canada Central with OCI Toronto, Azure West Europe with OCI Amsterdam, Azure Japan East with OCI Tokyo, and several others across the Americas, Europe, Asia-Pacific, and beyond. The list grows over time, so always check Oracle's and Microsoft's current documentation for supported pairs before you design anything. The pair you want may decide your architecture.


The architecture at a glance

Here is the mental model I use when explaining this to teams:

  1. Azure side: VNet → GatewaySubnet → ExpressRoute Virtual Network Gateway → ExpressRoute circuit.
  2. The link: private peering between the circuit and the OCI virtual circuit, with two redundant BGP sessions.
  3. OCI side: FastConnect virtual circuit → Dynamic Routing Gateway (DRG) → VCN attachment → subnets.

Two BGP sessions (primary and secondary) give you built-in redundancy. For routing identity, remember these two Autonomous System Numbers: Microsoft is 12076 and Oracle is 31898. They show up in both consoles and will save you from head-scratching.


Before you start: the pre-flight checklist

I have watched more interconnect projects stall on planning than on technology. Check these before touching a console:

  • Non-overlapping IP address space. Your Azure VNet CIDR and OCI VCN CIDR must not overlap. This is the number one cause of rework. Fixing it later means re-IPing workloads.
  • A supported region pair with the peering location you will use.
  • Two /30 subnets for BGP peering, one primary and one secondary. Plan them in advance and keep them out of any address space you use for workloads.
  • A VLAN ID for the private peering, shared by both sides.
  • Permissions. On Azure, rights to create ExpressRoute circuits and gateways. On OCI, rights to manage virtual circuits, DRGs, and network resources.
  • Bandwidth and SKU decisions. Choose the circuit bandwidth to match your traffic, and the gateway SKU to match your throughput and zone-redundancy needs.
  • Budget awareness. Review current pricing on both sides. Azure bills for the ExpressRoute circuit and gateway, and OCI has its own FastConnect and data transfer pricing. Verify the current model rather than assuming.

Step 1: Prepare the Azure network

Start with the landing zone on Azure.

  1. Create or choose a resource group in the Azure region paired with your OCI region.
  2. Create a virtual network with address space that doesn't collide with your OCI VCN.
  3. Add a subnet named exactly GatewaySubnet. Azure requires this name. Size it generously; a /27 or larger is a safe choice so you aren't boxed in later.
  4. Create an ExpressRoute virtual network gateway in that VNet. Choose a SKU appropriate to your throughput needs, and prefer a zone-redundant SKU where your region supports it, for resilience.

Gateway creation can take a while, so kick it off early and let it run while you work on the next steps.


Step 2: Create the ExpressRoute circuit

Now the heart of the Azure side.

  1. In the Azure portal, create a new ExpressRoute circuit.
  2. For the service provider, select Oracle Cloud FastConnect.
  3. Choose the peering location that corresponds to your region pair (it must match the OCI region you're connecting to).
  4. Select the bandwidth (for example 1 Gbps or 10 Gbps) and the SKU tier (Standard or Premium, depending on whether you need global reach or additional route capacity).
  5. Create the circuit and copy the service key.

That service key is the handshake token between the clouds. Treat it with care, and note that the circuit will show as Not provisioned until the OCI side is complete. That is expected and not an error.


Step 3: Build the OCI side

Over on Oracle Cloud Infrastructure:

  1. Create a DRG (Dynamic Routing Gateway) if you don't already have one.
  2. Attach your VCN to the DRG. Without this attachment, packets have nowhere to go inside OCI.
  3. Open FastConnect and choose Create connection. Select the provider Microsoft Azure: ExpressRoute.
  4. Create a private virtual circuit and select your DRG.
  5. Paste the provider service key from Azure.
  6. Enter your BGP details: the primary and secondary /30 subnets you planned. The tool asks for your BGP IP addresses within those ranges. Oracle's ASN is 31898 and the customer BGP ASN for the Azure side is 12076.
  7. Create the virtual circuit.

Once OCI provisions the virtual circuit, it will move toward a Provisioned state and begin establishing BGP.


Step 4: Configure private peering on Azure

Back in Azure, finish the handshake.

  1. Open your ExpressRoute circuit and confirm its provider status now shows Provisioned.
  2. Configure Azure private peering with the same values you used on OCI: the same primary and secondary /30 subnets, the same VLAN ID, and the peer ASN 31898 (Oracle).
  3. Save the peering.

This is where mismatches bite. A single wrong octet in a /30, or a different VLAN ID, and BGP will refuse to come up. Copy values from a shared design sheet, not from memory.


Step 5: Link the circuit to your VNet

With the peering configured, connect your gateway to the circuit.

  1. In Azure, create a Connection from the ExpressRoute virtual network gateway to the ExpressRoute circuit.
  2. Wait for the connection to report as Connected.

On the OCI side, the virtual circuit should now show its BGP sessions as Up.


Step 6: Routes, security, and DNS (the part everyone forgets)

A connected circuit does not mean working applications. Three details remain.

Routing

  • Azure: ExpressRoute learns OCI's routes through BGP and, with route propagation enabled, they appear in your subnet effective routes. If you use custom route tables or a hub-and-spoke design, confirm that the spokes can actually reach the gateway.
  • OCI: Add route rules in the subnet route tables so Azure-bound traffic (your Azure VNet CIDR) targets the DRG.

Security rules

  • Azure NSGs must allow the OCI CIDR on the ports your applications use.
  • OCI security lists or Network Security Groups must allow the Azure VNet CIDR in return.

Be deliberate. Open only what you need, such as the Oracle listener port for database access, rather than "any to any."

DNS

If your apps resolve names across clouds, plan DNS now. Common patterns include Azure Private DNS Resolver forwarding to OCI's private DNS resolver endpoints (and the reverse), so each cloud can resolve the other's private zones. Skipping this step leads to the classic "it pings by IP but not by name" ticket.


Step 7: Validate like you mean it

Before announcing victory, prove it.

  • BGP status: Verify both the primary and secondary sessions are up in each console.
  • Learned routes: Check the Azure circuit's route table and the OCI DRG route table to confirm each side sees the other's prefixes.
  • Connectivity: Ping and traceroute from a test VM in Azure to a test instance in OCI, and back.
  • Latency: Record round-trip times as a baseline for future troubleshooting.
  • Throughput: Use a tool like iperf3 between test machines to confirm you are getting what you paid for.
  • Failover: Deliberately shut down the primary path in a maintenance window and confirm traffic moves to the secondary session.

Document the results. Your future self, or whoever is on call at 2 a.m., will thank you.


Troubleshooting: the usual suspects

When things don't work, the cause is nearly always one of these:

  • Circuit stuck at Not provisioned: the service key is wrong, or the peering location doesn't match the OCI region.
  • BGP session won't establish: mismatched /30 subnets, VLAN ID, or ASN values between the two sides.
  • BGP is up but no traffic: missing route rules in OCI, route propagation disabled in Azure, or NSG and security list blocks.
  • Overlapping CIDRs: routes learn but traffic goes to the wrong place or nowhere. This requires re-addressing or NAT.
  • Name resolution failures: DNS forwarding wasn't configured.
  • Throughput below expectations: the gateway SKU or circuit bandwidth is too small for the workload.

Designing for production

A lab success is not a production design. Before you carry real workloads, think about:

  • Resilience. The two BGP sessions give you path redundancy, but a single circuit is still a single circuit. Mission-critical designs often use multiple circuits, ideally across different peering locations or regions, along with zone-redundant gateways.
  • Hub-and-spoke integration. Place the ExpressRoute gateway in your Azure hub VNet and let spokes reach OCI through peering, and use a DRG with multiple VCN attachments on the OCI side.
  • Governance and cost control. Tag circuits, monitor utilization, and right-size bandwidth rather than overbuying.
  • Observability. Use Azure Monitor (including connection monitoring for ExpressRoute) alongside OCI monitoring and alarms on virtual circuit state and BGP status.
  • Security layers. Private connectivity is not a substitute for application-layer security. Keep encryption in transit (TLS, Oracle Net encryption) where compliance requires it.

What can you build on top of it?

Once the network is in place, interesting architectures open up:

  • Apps on Azure, data on OCI. Keep Oracle Database or Exadata where it performs best while front ends and microservices run on Azure.
  • Multicloud disaster recovery. Replicate across clouds for a recovery posture that no single provider outage can take down.
  • Analytics and AI. Combine Azure's analytics and AI services with data sitting in Oracle systems, without moving everything.
  • Phased migrations. Move applications between clouds gradually, with private connectivity carrying traffic during the transition.

If your goal is to consume Oracle Database services inside Azure itself, also look at Oracle Database@Azure, which places Oracle database infrastructure in Azure datacenters. It is a different model from the interconnect, and the right choice depends on latency, operations, and procurement preferences. Both are worth understanding.

Key takeaways

  1. The Azure–OCI interconnect pairs ExpressRoute and FastConnect for private, low-latency multicloud connectivity.
  2. Plan first: supported region pair, non-overlapping CIDRs, two /30 subnets, one VLAN ID.
  3. Build in order: Azure VNet and gateway, ExpressRoute circuit, OCI DRG and virtual circuit, Azure private peering, gateway connection.
  4. Don't forget routes, security rules, and DNS. That's where most "it's connected but broken" tickets live.
  5. Validate and test failover before production traffic arrives.




The Index That Read 2.28 Billion Rows to Find 626

Every performance engineer has a favorite kind of problem. Mine is the quiet one: no errors, no alerts, no crash. A batch job that used to f...