Tuesday, May 26, 2026

How to Deploy Oracle 23ai Database on OCI – Complete DBA Implementation Guide

 

How to Deploy Oracle 23ai Database on OCI – Complete DBA Implementation Guide.

Introduction

Oracle 23ai is Oracle’s latest AI-enabled database release designed for modern enterprise workloads, AI applications, vector search, JSON-relational architecture, and autonomous operations. Deploying Oracle 23ai on Oracle Cloud Infrastructure (OCI) provides DBAs with high performance, scalability, and enterprise-grade security.

In this guide, we will deploy Oracle 23ai Database on OCI from scratch using:

  • Virtual Cloud Network (VCN)

  • Public and Private Subnets

  • Network Security Groups (NSG)

  • Oracle DB System

  • SSH Access Configuration

This article is written from a real DBA operational perspective instead of a basic cloud tutorial.

Architecture Overview

Before deployment, let us understand the architecture.

Components Used

ComponentPurpose
VCNPrivate cloud network for OCI resources
Public SubnetUsed for Bastion / external access
Private SubnetUsed for Database deployment
NSGSecurity-level traffic control
Internet GatewayInternet connectivity
Route TableControls network routing
Oracle DB SystemHosts Oracle 23ai database
SSH Key PairSecure server access

Target Architecture

The deployment architecture follows enterprise security standards.

Laptop
   |
SSH
   |
Public IP
   |
OCI Bastion / Public Subnet
   |
Private Subnet
   |
Oracle 23ai DB System

Prerequisites

Before starting deployment ensure:

  • OCI account is active

  • User has Administrator privileges

  • SSH client installed

  • Oracle Cloud region selected

  • OCI Compartment created

Step 1 – Login to OCI Console

Open OCI Console.

Navigate to:

Oracle Cloud Console → Identity & Security → Compartments

Create a new compartment.

Example:

Name: PROD-DBA-LAB
Description: Oracle 23ai Deployment Lab

Compartments help isolate cloud resources.

Step 2 – Create Virtual Cloud Network (VCN)

What is VCN?

VCN acts like a private data center network inside OCI.

Navigate:

Networking → Virtual Cloud Networks → Create VCN

VCN Configuration

ParameterValue
NameOCI-23AI-VCN
CIDR Block10.0.0.0/16
DNS ResolutionEnabled

Click:

Create VCN

Step 3 – Create Internet Gateway

Navigate:

VCN → Internet Gateways → Create Internet Gateway

Configuration:

ParameterValue
NameOCI-IGW
EnabledYes

Purpose:

  • Enables internet communication

  • Required for package downloads and updates

Step 4 – Create Route Table

Navigate:

VCN → Route Tables → Create Route Table

Add route rule:

DestinationTarget
0.0.0.0/0Internet Gateway

This allows outbound internet access.

Step 5 – Create Subnets

We will create:

  1. Public Subnet

  2. Private Subnet

Step 5A – Create Public Subnet

Navigate:

VCN → Subnets → Create Subnet

Configuration:

ParameterValue
NamePUBLIC-SUBNET
CIDR10.0.1.0/24
TypeRegional
Public IPEnabled
Route TableOCI-RT

Purpose:

  • Bastion access

  • SSH connectivity

  • Jump server access

Step 5B – Create Private Subnet

Configuration:

ParameterValue
NamePRIVATE-DB-SUBNET
CIDR10.0.2.0/24
Public IPDisabled
Route TableOCI-RT

Purpose:

  • Secure Oracle Database deployment

  • Internal traffic only

Step 6 – Create Network Security Group (NSG)

Why NSG?

NSG provides instance-level traffic filtering.

Navigate:

Networking → Network Security Groups

Create NSG:

Name: OCI-23AI-NSG

Step 7 – Configure NSG Rules

Ingress Rules

SourcePortProtocolPurpose
Your Public IP22TCPSSH Access
Application Server1521TCPOracle Listener
Internal Network5500TCPEM Express

Egress Rules

Allow all outbound traffic.

Step 8 – Generate SSH Key Pair

Linux / macOS

Run:

ssh-keygen -t rsa -b 4096

Windows (PowerShell)

ssh-keygen

Files generated:

FilePurpose
id_rsaPrivate Key
id_rsa.pubPublic Key

Important:

Never share private keys.

Step 9 – Create Oracle 23ai DB System

Navigate:

Oracle Database → Base Database Service → Create DB System

Step 10 – Configure DB System

Basic Information

ParameterValue
DB System NameOCI23AI-DB
CompartmentPROD-DBA-LAB
Availability DomainAD-1
ShapeVM.Standard.E5.Flex
OCPU2
Memory32 GB

Step 11 – Configure Networking

ParameterValue
VCNOCI-23AI-VCN
SubnetPRIVATE-DB-SUBNET
NSGOCI-23AI-NSG
Hostnameoci23ai-db

Step 12 – Database Configuration

Database Details

ParameterValue
Database VersionOracle 23ai
Database NameORCL23AI
PDB NameORCLPDB1
Character SetAL32UTF8
Workload TypeOLTP

Step 13 – Upload SSH Public Key

Paste contents of:

id_rsa.pub

OCI injects this key into the server during provisioning.

Step 14 – Create the DB System

Click:

Create DB System

Provisioning typically takes:

20 to 40 minutes

Step 15 – Verify Deployment

After deployment verify:

Database Status

Available

Listener Status

lsnrctl status

Database Status

sqlplus / as sysdba

Then:

select name,open_mode from v$database;

Expected:

READ WRITE

Step 16 – SSH Access to Oracle Server

SSH Command

ssh -i id_rsa opc@<PUBLIC-IP>

Switch to Oracle user:

sudo su - oracle

Step 17 – Verify Oracle 23ai Features

Connect database:

sqlplus / as sysdba

Check version:

select banner_full from v$version;

Expected output:

Oracle Database 23ai Enterprise Edition

Step 18 – Configure Automatic Backups

Navigate:

DB System → Backup Configuration

Enable:

  • Automatic backups

  • Recovery window

  • Object storage backup

Recommended:

SettingRecommended Value
Backup WindowNight Time
Retention30 Days
Incremental BackupEnabled

Step 19 – Enable Monitoring and Alerts

OCI monitoring helps DBAs proactively identify issues.

Navigate:

Observability & Management → Monitoring

Create alerts for:

  • CPU utilization

  • Tablespace usage

  • Memory pressure

  • Backup failures

  • Storage growth

Step 20 – Security Best Practices

Recommended Security Standards

1. Use Private Subnet for Databases

Never expose database servers directly to internet.

2. Restrict SSH Access

Allow SSH only from office or VPN IP.

3. Enable TDE

Transparent Data Encryption should remain enabled.

4. Rotate SSH Keys

Rotate keys periodically.

5. Enable Audit Policies

Monitor database login activities.

DBA Operational Validation Checklist

ValidationStatus
Listener RunningVerified
Database OpenVerified
SSH AccessVerified
NSG Rules AppliedVerified
Backup EnabledVerified
Monitoring EnabledVerified

Common Deployment Issues

Issue 1 – SSH Timeout

Cause:

  • NSG rule missing

  • Port 22 blocked

Solution:

  • Verify ingress rules

  • Verify public IP

Issue 2 – Listener Not Reachable

Cause:

  • Port 1521 blocked

Solution:

  • Add NSG ingress rule

Issue 3 – Database Creation Failed

Cause:

  • Insufficient quota

  • Wrong shape

Solution:

  • Verify tenancy limits

Real DBA Recommendations

Recommended Shapes

EnvironmentShape Recommendation
DevVM.Standard.E4.Flex
TestVM.Standard.E5.Flex
ProductionExadata / DenseIO

Why Oracle 23ai on OCI?

Key Benefits

  • AI-ready database engine

  • Integrated vector search

  • High scalability

  • Enterprise-grade HA

  • Built-in security

  • Automated patching

  • Cloud-native architecture


No comments:

Post a Comment

How to Deploy Oracle 23ai Database on OCI – Complete DBA Implementation Guide

  How to Deploy Oracle 23ai Database on OCI – Complete DBA Implementation Guide. Introduction Oracle 23ai is Oracle’s latest AI-enabled data...