Deployment guide

Oracle Linux 7

Overview

This guide covers the deployment and configuration of Oracle Enterprise Linux 7 on AWS, using SecureAnyCloud AMIs from AWS Marketplace. Oracle Linux is an enterprise-grade Linux distribution built from Red Hat Enterprise Linux source code. It is binary compatible with RHEL and adds Oracle's own Unbreakable Enterprise Kernel (UEK) for enhanced performance and reliability.

What you get:

  • Oracle Enterprise Linux 7 with the latest security patches
  • AWS CLI 2.7.7 for AWS service management
  • AWS CloudWatch Agent 1.247352.0b251908 for monitoring and log collection
  • AWS Systems Manager Agent 3.1.1476.0 for remote management
  • Cloud Init 19.4 for instance initialization
  • An OS package update script that keeps the system current
  • 24/7 SecureAnyCloud support with a guaranteed 24-hour response SLA

Prerequisites

Before you launch this AMI, you need:

  • An active AWS account
  • An active subscription to the Oracle Linux 7 listing on AWS Marketplace
  • An EC2 key pair for SSH access
  • Familiarity with EC2 instance management and SSH

Recommended instance type: t3.small (2 vCPU, 2 GB RAM) or larger. The minimum requirements are 1 vCPU, 2 GB RAM and 20 GB of disk space.

1

Launch the AMI

  • Open AWS Marketplace and search for "Oracle Linux 7 SecureAnyCloud".
  • Choose Continue to Subscribe, accept the terms, then choose Continue to Configuration.
  • Select your preferred Region and Software Version.
  • Choose Continue to Launch.
  • Choose Launch through EC2 for full control over the instance configuration.
  • Select your instance type (t3.small is recommended).
  • Configure storage with a minimum of 20 GB gp3.
  • Configure your Security Group with the following inbound rules:

Port Protocol Source Purpose

22 TCP Your IP SSH access

  • Select your EC2 key pair and launch the instance.
2

Connect via SSH

When your instance is running and has passed both status checks (2/2), connect over 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 you connect. Early connection attempts can produce permission denied errors.

3

Verify the System

Check the OS version:

cat /etc/oracle-release

Check available disk space:

df -h

Check memory:

free -m

Using AWS CLI

The AWS CLI is preinstalled and ready to use. Verify it with:

aws --help

Check the version:

aws --version

To use AWS CLI commands, attach an IAM role with appropriate permissions to your instance, or configure credentials:

aws configure

Configuring CloudWatch Agent

The AWS CloudWatch Agent is preinstalled for collecting system metrics and logs.

Run the configuration wizard as the root user:

/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard

The wizard guides you through selecting metrics (CPU, memory and disk) and log files to monitor.

Start the CloudWatch Agent after configuration:

/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json

Check the CloudWatch Agent status:

/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status

Expected output:

{ "status": "running", "starttime": "2022-06-05T12:10:13+0000", "configstatus": "configured", "cwoc_status": "stopped", "cwoc_starttime": "", "cwoc_configstatus": "not configured", "version": "1.247350.0b251814" }

Using Systems Manager

The AWS Systems Manager Agent (SSM) is preinstalled for remote management without SSH.

Check SSM Agent status:

systemctl status amazon-ssm-agent

To use Systems Manager features, attach an IAM role with the AmazonSSMManagedInstanceCore policy to your instance.

Configuring Cloud Init

Cloud Init handles instance initialization on first boot. The configuration file is located at:

vi /etc/cloud/cloud.cfg

See the Cloud Init documentation to customize instance behavior on launch.

Server Components

Component Version Install Path

AWS CLI 2.7.7 /usr/local/aws-cli

AWS CloudWatch Agent 1.247352.0b251908 /opt/aws/amazon-cloudwatch-agent

AWS Systems Manager Agent 3.1.1476.0 /usr/bin/amazon-ssm-agent

Cloud Init 19.4 /etc/cloud

Filesystem Layout

Mount Point Size Description

/ 38 GB Root filesystem

/boot 2 GB Operating system kernel files

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

On Startup

An OS package update script runs on first boot to make sure the image is fully up to date. To disable it, remove 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

Common Administration Tasks

Update all packages:

yum update -y

Install a package:

yum install -y package-name

Check running services:

systemctl list-units --type=service --state=running

View system logs:

journalctl -f

Check kernel version:

uname -r

Oracle Linux Specific Features

Unbreakable Enterprise Kernel (UEK)

Oracle Linux includes the Unbreakable Enterprise Kernel (UEK), Oracle's own optimized kernel built for enterprise workloads. UEK 5 is the default kernel on Oracle Linux 7. It provides enhanced performance, advanced diagnostics and improved hardware support compared to the Red Hat Compatible Kernel (RHCK).

Verify which kernel is running:

uname -r

If the output contains uek, you are running the Unbreakable Enterprise Kernel. If it contains el7, you are running the RHCK.

Switch between kernels:

# List installed kernels grubby --info=ALL | grep title
# Set the default kernel (example for RHCK)
sudo grubby --set-default /boot/vmlinuz-<rhck-version>
# Reboot to apply
sudo reboot

UEK 5 highlights:

  • Based on Linux 4.14 LTS with Oracle enhancements
  • Optimized for Oracle Database and middleware workloads
  • DTrace tracing framework for advanced diagnostics
  • Enhanced Btrfs filesystem support

Ksplice Zero Downtime Patching

Oracle Linux includes Ksplice, a technology that applies critical kernel security patches without a reboot. It suits production database servers where uptime is critical.

Check Ksplice status:

sudo ksplice kernel show

Apply available patches without reboot:

sudo ksplice kernel upgrade

Note: Ksplice requires an Oracle Linux Premier Support subscription for full functionality. The AMI includes the Ksplice tools preinstalled.

Oracle Database Compatibility

Oracle Linux 7 is Oracle's certified operating system for Oracle Database deployments, including 11g, 12c, 18c, 19c and 21c. Key advantages include:

  • Prevalidated and certified for Oracle Database
  • Required Oracle prerequisite packages available via oracle-database-preinstall RPMs
  • Automatic Storage Management (ASM) kernel driver support via UEK
  • Optimized huge pages and shared memory configuration for database workloads

Install Oracle Database prerequisites:

sudo yum install -y oracle-database-preinstall-19c

This command configures the kernel parameters, user accounts and resource limits that Oracle Database installation requires.

Troubleshooting

Cannot connect via SSH

  • Verify that the instance has passed 2/2 status checks.
  • Check that your security group allows port 22 from your IP.
  • Make sure you are using the correct key pair and username (ec2-user).

yum update fails

  • Verify that the instance has internet access (public subnet or NAT gateway)
  • Check DNS resolution: nslookup yum.oracle.com
  • Check disk space: df -h

CloudWatch Agent not sending metrics

  • Verify that the agent is running: /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status
  • Make sure the instance has an IAM role with CloudWatchAgentServerPolicy
  • Check agent logs: tail -f /opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log

SSM Agent not connecting

  • Verify that the agent is running: systemctl status amazon-ssm-agent
  • Make sure the instance has an IAM role with AmazonSSMManagedInstanceCore
  • Check that the instance has network access to the SSM service endpoint

Security Recommendations

  • Restrict SSH access: Allow port 22 only from trusted IP addresses.
  • Use IAM roles for AWS API access instead of access keys.
  • Keep the system updated: Run yum update regularly for security patches.
  • Enable SELinux: Verify that SELinux is enforcing: getenforce
  • Configure firewall rules: Use firewalld for additional host-level security.
  • Monitor with CloudWatch: Set up alerts for CPU, memory and disk usage.
  • Use SSM Session Manager as an alternative to SSH for secure, auditable access.
  • Review system logs regularly for suspicious activity.

Support

If you run into any issues with this product, contact SecureAnyCloud support:

  • Email: sales@secureanycloud.com
  • Website: secureanycloud.com
  • Support hours: 24/7 with a guaranteed 24-hour response SLA

Deploy on AWS

Launch Oracle Linux 7 with 24/7 support from SecureAnyCloud.

View on Marketplace

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com