·
Oracle
Linux 9.6
·
Oracle
Database 19c Standard Edition 19.3
·
Oracle
REST Data Services 23.1
·
Oracle
SQLcl 24.4.1
·
Oracle
APEX 24.2
·
JDK
21.0.5
License
Use of this
software deployment solution requires an existing license for Oracle Database 19c
Standard Edition for the number of CPUs in the EC2 instance.
Getting
Started
Connect to
your EC2 Instance using an SSH Client such as putty, as the ec2-user. More information
about how to do this is here:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-from-windows.html
Oracle Home : /opt/oracle/product/19c/dbhome_1
ORDS/SQLDeveloper Web : http://[EC2 Instance IP]:8080/ords/sql-developer
APEX : http://[EC2 Instance IP]:8080/ords
SQLcl : localhost:1521/orclpdb1
Database Information
Oracle SID : orcl
Pluggable DB : orclpdb1
Operating
System authentication with the oracle
Linux user is enabled. Use this account to reset the SYS, SYSTEM, and any other
database accounts.
Sample
schemas have been preloaded in the orclpdb1 database (HR, HRREST, CO, SH).
The precreated PDB orclpdb1 database and CDB orclcdb1 can be accessed
using the sqlcl client on the EC2 instance, the SQL
Developer Web client, or using an Oracle client such as SQL Developer on your
PC or another EC2 Instance. Ensure TCP
Port 1521 is enabled in your AWS Security Group configuration to allow this
connection.
To connect
from the sqlcl client, on your SSH client, switch to
the oracle user
sudo su - oracle
sql / as sysdba
SQL> alter session set container = orclpdb1;
To reset any database user passwords, use the following:
SQL> alter user [username] identified by "[newpassword]" account unlock;
SQLcl access to the precreated
PDB orclpdb1
from a terminal
window
sql hr/[password]@localhost:1521/orclpdb1
SQLcl access to the CDB orcl
sql system/[password]@localhost:1521/orcl
From a web
browser:
Ensure TCP Port 8080 is enabled in
your AWS Security Group configuration to allow connection from your web
browser’s IP address.
APEX Application
Information
From your
SSH client, switch to the oracle
user
sudo su - oracle
AWS
Elastic IP Address Allocation
It
is strongly recommended that you create an AWS elastic IP address associated to
this new EC2 build instance. This will allow you to start and stop without
having to update the public IP address connection information.
AWS
Public IP Address Setting
Enable
SSH, HTTP, HTTPS and SQL*Net from your client IP to the EC2 Instance IP
SSH : 22:22
HTTPS : 443:443
HTTP : 80:80
HTTP : 8080:8080
SQL*Net : 1521:1521