Category: APEX

Oracle XE 18c APEX Server (Part 1)

Category APEX / Posted on 17 Nov 2018 by Jeff Eberhard

With the recent release of the latest Oracle XE version, 18c (18.4), I wanted to get a sandbox server up and running similar to what I had done in my previous post: Create APEX instance in the cloud with OXAR

Those instructions used OraOpenSource OXAR to quickly build a fully functional instance of Oracle XE and APEX.  But it was written for the old version of XE and plans to update it were not likely (Issue 258).  I haven't worked with Docker enough to quickly build up a server using Docker containers so I went though the current OXAR configuration and updated it to work with the following versions:

Oracle XE: 18.4.0.0.0
APEX: 18.2
ORDS: 18.3.0

Provisioning the Server

DigitalOcean offers affordable pricing for online virtual machines.  You can sign up for DigitalOcean and receive a credit using this referral link: https://m.do.co/c/065d9de8f0ba

After you have signed up for DigitalOcean click the Create button and choose Droplets (droplets are basically what DigitalOcean calls it virtual machines).

Next select the image distribution: CentOS 7.5 x64

Select the server size you want to build. For this example I chose the 2GB size (the database wouldn't install with the 1GB option)..

Scroll down and select a datacenter region. I chose San Francisco since it is the nearest location to me.

You can manage the server by using passwords or by utilizing SSH key pairs. If you want to just use passwords skip this SSH Keys step.

SSH Keys

SSH Keys

Based on this article I created and added an SSH Key.

Run the PuTTY Key Generator application.

Click the Generate button

If desired add and confirm a key passphrase.  Highlight the generated key and copy it to the clipboard.  Click the Save public key button and save the file as a .txt file.

Click the Save private key button and save it as a .ppk file.

You can close the PuTTY Key Generator application at this point.

Return to the DigitalOcean create droplet page and click the New SSH Key button.

In the SSH key content field past the key that you previously copied into the clipboard.  Enter a name into the name field and click the Add SSH Key button.

 The named key is added.

 

Finally, enter a name for your server and click the Create button.

The droplet will be created.  If you did not add an SSH key an email will be sent to you with the root password.

Note the IP address of the droplet or hover over the IP address and a copy link will display that can be clicked to copy the IP address to the clipboard.

Connecting to the server

DigitalOcean has an Access console option to connect to your server or use your favorite terminal program to ssh into your server using the IP address of the server.

I'm on windows and like the puTTY application. The following steps show how to configure and save a session which can be used for connecting to the server.

Enter the noted/copied IP address into the Host Name field

 

Expand the Connection Category then select the Data item.  Enter root into the Auto-login username field.

Expand the SSH option and then select the Auth option.  For the private key file for authentication field click the Browse button and locate and select the .ppk file that you saved of the SSH key.

Enter a name into the Saved Sessions field and click the Save button (to save the session settings).

Click the Open button to open the session.  The first time you will get a warning about server's host key not being cached in the registry.  Click Yes to continue.

You will be connected as the root user

 

See Part 2 to utilize OXAR to install the Oracle Database XE, ORDS, and APEX.

 

 

 

 

Oracle XE 18c APEX Server (Part 2)

Category APEX / Posted on 17 Nov 2018 by Jeff Eberhard

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!!!

 

 

 

 

 

 

Create APEX instance in the cloud with OXAR (Part 1)

Category APEX / Posted on 22 Jan 2018 by Jeff Eberhard

UPDATE ARTICLE (using Oracle XE 18c) is here

A few days ago I saw this tweet from Adrian Png:


Around the same time I had an acquaintance ask how quickly I could set up a demo of APEX.  Normally I would probably just request a new workspace from apex.oracle.com but this time Adrian's tweet piqued my interest of setting up a whole APEX server environment online.  I had used OXAR a few times to create local VMs so I was a little familiar with it and gave it a go.  

DigitalOcean offers affordable pricing for online virtual machines.  You can sign up for DigitalOcean and receive a $10 credit using this referral link: https://m.do.co/c/065d9de8f0ba

Provisioning the server

After you have signed up for DigitalOcean click the Create button and choose Droplets (droplets are what DigitalOcean calls it virtual machines).

Next select the image distribution: CentOS 7.4 x64

Select the server size you want to build.  For this example I chose the smallest/cheapest size, 1GB - $5/mo.

Select the datacenter region.  I chose San Francisco since it is the nearest location to me.

You can manage the server by using passwords or by utilizing SSH key pairs. If you want to just use passwords skip this SSH Keys step.

SSH Keys

Based on this article I created and added an SSH Key.

Run the PuTTY Key Generator application.

Click the Generate button

If desired add and confirm a key passphrase.  Highlight the generated key and copy it to the clipboard.  Click the Save public key button and save the file as a .txt file.

Click the Save private key button and save it as a .ppk file.

You can close the PuTTY Key Generator application at this point.

Return to the DigitalOcean create droplet page and click the New SSH Key button.

In the SSH key content field past the key that you previously copied into the clipboard.  Enter a name into the name field and click the Add SSH Key button.

 The named key is added.

Enter a name for your server and click the Create button.

The droplet will be created.  If you did not add an SSH key and email will be sent to you with the root password.

Note the ip address of the droplet or hover over the ip address and a copy link will display that can be clicked to copy the ip address to the clipboard.

Connecting to the server

DigitalOcean has an Access console option to connect to your server or use your favorite terminal program to ssh into your server using the ip address of the server.

I'm on windows and like the puTTY application. The following steps show how to configure and save a session which can be used for connecting to the server.

Enter the noted/copied IP address into the Host Name field

Expand the Connection Category then select the Data item.  Enter root into the Auto-login username field.

Expand the SSH option and then select the Auth option.  For the private key file for authentication field click the Browse button and locate and select the .ppk file that you saved of the SSH key.

Enter a name into the Saved SEssions field and click the Save button (to save the session settings).

Click the Open button to open the session.  The first time you will get a warning about server's host key not being cached in the registry.  Click Yes to continue.

You will be connected as the root user

See Part 2 to utilize OXAR to install the Oracle Database XE, ORDS, and APEX.

 

1 2 3 4 5 6 7 8 9 10 Next Set

Search

Archives

Categories

  • APEX

Subscribe in a Reader

RSS

revolverMap