Oracle DB 26ai Enterprise on Linux User Guide
These Oracle Database 26ai Enterprise Edition versions are no longer offered on AWS Marketplace (since 15 Nov 2026). If you run one, change the SYS and SYSTEM passwords now and delete the build-time credentials file (Step 5): the password set when the image was built is the same on every instance until you change it.
Overview
This guide covers the deployment and configuration of Oracle Database 26ai Enterprise Edition on Linux using cloudimg AMIs from the AWS Marketplace. Oracle Database 26ai is Oracle's latest AI-powered database with native AI Vector Search, JSON Relational Duality, Property Graphs, and in-database machine learning. Enterprise Edition provides advanced features including partitioning, Advanced Security, Real Application Clusters (RAC), and Data Guard.
Supported Operating Systems: Oracle Linux 8/9, RHEL 8/10, AlmaLinux 8/9/10, Rocky Linux 8/9
What's included in this AMI:
- Oracle Database 26ai Enterprise Edition 23.26.1.0.0 (64 bit) installed on a dedicated EBS volume at /opt/oracle
- Preconfigured ORCLCDB container database with ORCLPDB1 pluggable database ready to start
- Oracle Listener preconfigured on port 1521
- Dedicated oracle OS user with environment scripts
- Helper scripts for starting and stopping the database and listener
- SYS and SYSTEM password set when the image was built, the same on every instance of this version until you change it (Step 5)
- OS package update script for keeping the system current
- AWS CLI v2 for AWS service integration
- Systems Manager Agent (SSM) for remote management
- CloudWatch Agent for monitoring
- Latest security patches applied at build time
- Support from cloudimg's team, on hand 24 hours a day by email, with a guaranteed response within 24 hours
Prerequisites
Before launching this AMI, ensure you have:
- An active AWS account
- An active subscription to the Oracle Database 26ai Enterprise listing on AWS Marketplace
- An EC2 key pair for SSH access
- Familiarity with EC2 instance management and SSH
Recommended Instance Type: m5.large (2 vCPU, 8 GB RAM) or larger. The minimum requirements are 1 vCPU, 1 GB RAM, and 20 GB disk space, but Oracle Database benefits significantly from additional memory for production workloads.
Step 1: Launch the AMI
- Navigate to the AWS Marketplace and search for "Oracle Database 26ai Enterprise cloudimg"
- Click Continue to Subscribe, accept the terms, then Continue to Configuration
- Select your preferred Region and Software Version
- Click Continue to Launch
- Choose Launch through EC2 for full control over instance configuration
- Select your instance type (
m5.largerecommended) - Configure storage: the AMI includes a root volume and a dedicated 30 GB /opt/oracle volume for Oracle software and data
- Configure your Security Group with the following inbound rules:
| Port | Protocol | Source | Purpose |
|---|---|---|---|
| 22 | TCP | Your IP | SSH access |
| 1521 | TCP | Your own address range only | Oracle Database Listener port. Add this rule only after you change the SYS and SYSTEM passwords (Step 5) |
Important: Never open port 1521 to the internet. Leave it closed at launch: change the SYS and SYSTEM passwords first (Step 5), then reach the listener through an SSH tunnel (Step 6) or allow your own address range only.
- Select your EC2 key pair and launch the instance
Step 2: Connect via SSH
Once your instance is running and has passed both status checks (2/2), connect using SSH:
ssh -i your-key.pem ec2-user@<public-ip-address>
To switch to the root user:
sudo su -
Important: Wait for the EC2 instance to reach 2/2 successful status checks before connecting. Early connection attempts may produce permission denied errors while the instance is still initialising.
Step 3: Switch to the Oracle User
The Oracle software is owned by the dedicated oracle OS user. Switch to this user to manage the database. Please type this command rather than copying and pasting:
sudo su - oracle
Three scripts are available in the oracle user's home directory:
- setEnv.sh sets the Oracle environment variables, enabling utilities such as sqlplus
- start_all.sh starts the ORCL sample database and its associated Oracle Listener
- stop_all.sh stops the ORCL sample database and its associated Oracle Listener
Step 4: Start the Oracle Database and Listener
Run the following commands as the oracle user to start the sample database and listener:
cd $HOME
. ./start_all.sh
Expected output:
LSNRCTL for Linux: Version 23.26.1.0.0 - Production
Starting /opt/oracle/product/26ai/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 23.26.1.0.0 - Production
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ip-x-x-x-x.ec2.internal)(PORT=1521)))
The command completed successfully
SQL*Plus: Release 23.26.1.0.0 Production
Connected to an idle instance.
SQL> ORACLE instance started.
Database mounted.
Database opened.
Step 5: Connect with SQL*Plus
Important: the database password is the same on every instance until you change it. The SYS and SYSTEM password was set when the image was built and is the same on every instance of this version. It is stored in /stage/scripts/oracle-database-credentials.log, which only root can read. Change it before you open any port: in the SQL*Plus session below, run
ALTER USER SYS IDENTIFIED BY "<new password>";
ALTER USER SYSTEM IDENTIFIED BY "<new password>";
then type EXIT, type exit again to return to ec2-user, and delete the file with sudo rm -f /stage/scripts/oracle-database-credentials.log. Never open TCP 1521 to the internet: reach it through an SSH tunnel (Step 6) or allow your own address range only.
Set the Oracle environment variables and launch SQL*Plus:
cd $HOME
. ./setEnv.sh
sqlplus / as sysdba
Expected output:
SQL*Plus: Release 23.26.1.0.0 Production
Copyright (c) 1982, 2025, Oracle. All rights reserved.
Connected to:
Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - Production
Version 23.26.1.0.0
SQL>
Type EXIT to leave the SQL*Plus session.
Step 6: Connect Remotely with SQL Developer
To connect to the database from an external tool such as SQL Developer, use the following connection settings:
| Setting | Value |
|---|---|
| Database Type | Oracle |
| Authentication Type | Default |
| Username | SYSTEM |
| Password | The SYSTEM password you set in Step 5 |
| Connection Type | Basic |
| Hostname | localhost through the SSH tunnel below, or your instance public IP if 1521 is open to your own address range |
| Port | 1521 |
| Service Name | ORCLPDB1 |
Note: Reach port 1521 through an SSH tunnel rather than opening it: run ssh -i your-key.pem -N -L 1521:<private-ip-address>:1521 ec2-user@<public-ip-address> on your own machine, then connect SQL Developer to localhost port 1521. If you open 1521 in the security group instead, do it only after Step 5 and from your own address range only, never to the internet.
Server Components
| Component | Version | Install Path |
|---|---|---|
| Oracle Database 26ai Enterprise | 23.26.1.0.0 | /opt/oracle |
Note: Component versions may be updated on first boot by the automatic OS package update script.
Filesystem Layout
| Mount Point | Size | Description |
|---|---|---|
| / | 38 GB | Root filesystem |
| /boot | 2.0 GB | Operating system kernel files |
| /opt/oracle | 30 GB | Oracle software and database files (dedicated EBS volume) |
Key Oracle directories:
| Directory | Purpose |
|---|---|
| /opt/oracle | Oracle base directory |
| /opt/oracle/product/26ai/dbhome_1 | Oracle software home |
| /opt/oracle/product/26ai/dbhome_1/network/admin | Listener and TNS configuration files |
| /opt/oracle/diag | Oracle diagnostic and alert log files |
Managing the Oracle Database
The Oracle Database is managed using shell scripts provided in the oracle user's home directory. The database does not use systemd services.
Start the database and listener:
sudo su - oracle
cd $HOME
. ./start_all.sh
Stop the database and listener:
sudo su - oracle
cd $HOME
. ./stop_all.sh
Check listener status:
sudo su - oracle
cd $HOME
. ./setEnv.sh
lsnrctl status
Scripts and Log Files
| Script/Log | Path | Description |
|---|---|---|
| initial_boot_update.sh | /stage/scripts | Updates the OS with the latest packages on first boot |
| initial_boot_update.log | /stage/scripts | Output log for the boot update script |
| oracle-database-credentials.log | /stage/scripts | SYS and SYSTEM password set when the image was built, the same on every instance of this version (only root can read). Delete it after you change the passwords (Step 5) |
| setEnv.sh | /home/oracle | Sets Oracle environment variables for sqlplus and other tools |
| start_all.sh | /home/oracle | Starts the ORCL database and Oracle Listener |
| stop_all.sh | /home/oracle | Stops the ORCL database and Oracle Listener |
On Startup
An OS package update script runs on first boot to ensure the image is fully up to date. You can disable this by removing the script and its crontab entry:
rm -f /stage/scripts/initial_boot_update.sh
crontab -e
# Delete the following line, save and exit:
@reboot /stage/scripts/initial_boot_update.sh
Troubleshooting
Cannot connect via SSH
- Verify the instance has reached 2/2 status checks in the EC2 console
- Confirm your security group allows inbound TCP port 22 from your IP
- Ensure you are using the correct key pair and connecting as
ec2-user
Oracle Listener fails to start
- Switch to the oracle user:
sudo su - oracle - Source the environment:
. ./setEnv.sh - Check listener status:
lsnrctl status - Review the listener log at
/opt/oracle/diag/tnslsnr/<hostname>/listener/alert/log.xml - Verify port 1521 is not in use by another process:
netstat -tlnp | grep 1521
Database fails to start
- Switch to the oracle user and source the environment
- Connect to sqlplus:
sqlplus / as sysdba - Check the instance status:
SELECT STATUS FROM V\$INSTANCE; - Try starting manually:
STARTUP; - Review the alert log at
/opt/oracle/diag/rdbms/orclcdb/ORCLCDB/trace/alert_ORCLCDB.log
Cannot connect remotely on port 1521
- Verify the Oracle Listener is running:
lsnrctl status - Confirm your security group allows inbound TCP port 1521 from your own address range only (added after you changed the passwords), or connect through an SSH tunnel instead
- Test connectivity:
telnet <instance-ip> 1521 - Check that the listener.ora file references the correct hostname
Security Recommendations
- Restrict port access: Never open port 1521 to the internet; use an SSH tunnel or allow your own address range only
- Change the build-time passwords: The SYS and SYSTEM password is the same on every instance of this version until you change it; change both before you open any port, then delete the credentials file (Step 5)
- Use strong passwords: Ensure all database user passwords meet complexity requirements
- Enable auditing: Configure Oracle Database auditing to track access and changes
- Encrypt connections: Configure Oracle Net Services to use SSL/TLS encryption for client connections
- Limit OS access: Restrict SSH access to authorised administrators only
- Review user privileges: Remove unnecessary grants and follow the principle of least privilege
- Keep the system updated: Apply Oracle Critical Patch Updates and OS security patches regularly
Support
If you encounter any issues with this product, contact cloudimg support:
- Email: support@cloudimg.co.uk
- Website: www.cloudimg.co.uk
- Support hours: on hand 24 hours a day by email, with a guaranteed response within 24 hours
Deploy on AWS
Launch Oracle Database 26ai Enterprise with support from cloudimg's team, on hand 24 hours a day by email.
Need Help?
Our support team is on hand 24 hours a day by email, with a guaranteed response within 24 hours.