Oracle Application Express is a rapid web development platform that provides you necessary tools to build web applications at a high rate. They are powerful and easy-to-use platform that provides you with a WYSIWYG (What You See Is What You Get) interface to build attractive web applications. Unlike other web development platform, Oracle Application Express works on Oracle database completely, taking the full advantage of CPU. Oracle Apex or Application Express is bundled with the Oracle Database. The Oracle Application Express 4.0 is bundled with the popular Oracle 11g XE. In this tutorial, let us see how to install Oracle Application Express 4.0 virtually.

How to install Application Express 4.0 on Virtual Box?

Here is a step-by-step procedure to guide you through the installation process of Oracle Application Express 4.0. As Oracle Application Express is bundled with the database, we need to install the database and then setup for Application Express.

  1. Download Virtual Box from here for your operating system.

  2. Install Virtual Box.

  3. You can install any Linux operating system image but I am showing you with the Oracle Linux. To download Oracle Linux, you need to have an Oracle account to download from Oracle Software Delivery Cloud.

    1. You need to download two images from Oracle Software Delivery Cloud.
    2. One is Boot ISO image.
    3. Another one is the source installation image (x86). Download both DVD images if they are separated.
  4. After downloading Oracle Linux images, open VirtualBox and click on New.

    1. Name: Oracle Linux
    2. Set a memory size.
    3. Hard Disk: Create a virtual hard disk now.
      1. Choose VDI > Dynamically allocated > Specify a size. (As you choose "Dynamically allocated", the hard disk file will grow as you start storing files on the VM. This allows you to save disk space.)
    4. Choose the VM that you have created and click on Settings.
      1. Go to Storage.
      2. Under Controller IDE, add an optical drive and choose the Boot ISO image.
      3. Again, add an optical drive and choose the source installation images. This will be the source for installation of Oracle Linux.
    5. Click OK.
  5. Click on the VM and hit Start.

    1. Choose "Install Oracle Linux".
    2. Select the language that you want to use.
    3. Specify the installation source and hard disk destination.
    4. Hit Begin Install to start installation.
    5. While installing, the wizard shows you an option to set root password and also to create a new user. We need both to install Application Express 4.0. So, set a root password and create a new user and make the user as administrator.
    6. The installation will take several minutes to complete depending upon the specifications you have provided.
  6. After the installation, power off your Virtual Machine.

  7. Choose your Virtual Machine in VirutalBox and click Settings. You need to specify network details.

    1. Go to Network tab.
    2. Set "Attached To" to Bridged Adapter.
    3. Select your hardware name.
  8. Now, power on your Virtual Machine.

  9. Go to Oracle Database Express Edition 11g Release 2 downloads page and download the RPM file to your downloads directory. Note that Oracle Application Express comes with the Oracle Database.

  10. Go to Applications Menu > Files > Downloads directory.

  11. Extract the compressed file that you have downloaded and you will get a Disk 1 folder. Enter into Disk 1 folder and you will find a RPM file.

  12. Right click anywhere on the File browser and choose "Open in Terminal".

  13. Execute the following command.

    sudo rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm

  14. After the installation process succeeds, you should configure Oracle 11g XE using:

    sudo /etc/init.d/oracle-xe configure

    1. The configuration will prompt for several details regarding the port and password.
    2. Provide the default port as 8080.
    3. Specify Database Listener port as 1521.
    4. Specify any password for SYS and SYSTEM database users. Please make sure that you remember this password.
    5. Specify 'y' if it asks to start Oracle database on boot.
  15. Now we need to setup environment variables. Oracle Database comes with a shell script where it sets default environment variable values.

      1. Open up .bash_profile in your favourite text editor. Here, I am using Vim.

        vim ~/.bash_profile

      2. Just above the the line export PATH, add the below line. . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh

      3. Reload the .bash_profile by:

        source ~/.bash_profile

  16. We need to verify whether our VM's hostname matches with the configuration file of Oracle database.

    1. To determine the hostname of your Virtual Machine, execute the following and this will give you the hostname of your Virtual Machine.

      hostname

    2. Go to listener.ora file and check if the LISTENER contains HOST value as your hostname. This is the listener file of Oracle and you need to specify your hostname.

      sudo vim $ORACLE_HOME/network/admin/listener.ora

      Install Oracle Application Express

  17. Now you need to restart your Virtual Machine.

  18. After your Virtual Machine turns on, make sure that your Listener Control has started and listening to your LISTENER that you have specified in listener.ora file.

    1. Start Listener Control using:

      lsnrctl start

    2. Check status of Listener Control using:

      lsnrctl status

  19. As we use a Bridged Adapter from host to connect to the network, make sure that you turn off firewall.

    service firewalld stop

  20. Go to Applications Menu on the top > Others > Get Started with Oracle Database.

  21. In the homepage, Click on Application Express button.

  22. Enter "sys" (without quotes) as username and the password that you provided during configuring the Oracle Database and login. Database Username is your Apex workspace.

  23. Click on Create Workspace.

  24. Now navigate to http://YOUR_VM_IP_ADDRESS:8080/apex from your host machine and login to the Application Express using the credentials that you created now.

  25. Start building powerful web applications at lightning fast! Happy Coding!

Oracle Application Express provides common tools for CRUD operations, authentication schemes and authorization roles, however, to achieve a dynamic functionality, you need to create packages and call them from Oracle Application Express. The future versions of Oracle Application Express has improved and a lot of new features are yet to be announced. Who knows? The future might be Oracle Application Express. Oracle Application Express 4.0 is a popular platform compared to other versions. We will soon cover upgrading to newer versions and also, a tutorial to install without Virtual Box. What is your thoughts on Oracle Application Express? Are you already working on it or a beginner? Share your thoughts in the comments below. [embedyt]https://www.youtube.com/watch?v=cBmXlLhdLIc[/embedyt]