This is Part 2 of how to create a server consisting of the Oracle XE 18c database and an APEX instance using OXAR. Part 1 shared steps for creating and connecting to the online virtual machine.
Using OXAR to configure the server
I've taken the oraOpenSource OXAR distribution and updated it to work with Oracle XE 18c database. You can refer to my OXAR github page and also refer to the OraOpenSource OXAR github page to get information on configuring and using OXAR.
Copy Oracle files to server
Follow the OXAR instructions on where to download the Oracle installation files from and how to copy them to your server. In my case, I just created a directory name orafiles and then moved the files from my windows machine using pscp (I copied my .ppk file to the same directory for ease of use).
Disable SELinux
The OXAR installation has a problem installing ORDS when SELinux is enabled. Before we begin the OXAR installation we configure the server to disable SELinux so everything will work.
Edit the /etc/sysconfig/selinux file and change the SELINUX line from enforcing to disabled.
Save the file and then reboot the machine.
OXAR download and configuration
After the reboot, log into the machine again and then copy and paste the following lines of code (OXAR Native Build instructions):
#Ensure user is currently root
if [ "$(whoami)" != "root" ]; then
sudo -i
fi
cd /tmp
#Install Git
if [ -n "$(command -v yum)" ]; then
#RHEL type OS
yum install git -y
else
#Debian type OS
apt-get install git-core
fi
git clone https://github.com/eberhje/oxar.git
cd oxar
This will install the needed git packages and then clone the OXAR files.
Next we need to edit the config.properties file and replace the CHANGEME tokens with the actual file location and names.
OXAR installation
Run OXAR installation by executing:
./build.sh
Once finished OXAR will give a countdown and reboot the server
Open a browser and enter the ip address of the server into the address and the APEX login page should be shown.
Refer to the OXAR github page for the default passwords used and other configuration considerations.
Enjoy!!!