Pages

Wednesday, July 31, 2013

Install and configure "Oracle Database Application Development"-prebuild Virtual Machine in Virtual Box

Download Oracle VirtualBox

Depending on whether you want to install on Linux or Windows choose the correct version:

    http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html


Download both Oracle VM VirtualBox and the corresponding version of Oracle VM VirtualBox Extension Pack.


For now, I will presume a Windows installation.

  

Download Page for Oracle Database Application Development Virtual Machine:


    http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html


The download link for that file:


    http://download.oracle.com/otn/other/virtualbox/dd/Oracle_Developer_Day.ova


Note: Before you can download this file, you must first register with an OTN (Oracle Technical Network) account. If you do not have one, then you can register one for free at this login screen:






Then the download starts - may take some time because the file is over 4GB in size 
J

Start the installation of VirtualBox by running the downloaded VirtualBox-4.2.6-82870-win.exe and follow the instructions. When the installation has finished, start VirtualBox (through Windows Start menu).


Set the location for VMs: Choose File>Preferences:




Add Extension Pack 

On the same window – choose Extensions>Add package and indicate the previously downloaded Oracle VM VirtualBox Extension Pack:





Importing the Oracle_Developer_Day.ova into VirtualBox 

In VirtualBox choose File>Import Appliance and then Open appliance… next locate the file "Oracle_Developer_Day.ova" and choose Next> to start the import.
Always check the option (Reinitialize the MAC address) on the bottom left. Additionally, you can keep the standard namings, or change them to fit your own needs:
Standard:

Customized:

Finally, choose Import.

When the import is complete, select the VM (if not already the case), go to Shared folders…



and choose Add shared folder:

Select a directory that can serve as a conduit for files to the VM:


  
Check Auto-mount. The name as shown in the VM, can be altered:



Now you can start the VM, for example via the green arrow ...




When starting the VM, you can login with username and password "oracle".






Installing Virtualbox Linux Guest Additions 

Choose Devices>Install Guest Additions:



A new icon shows up on the desktop (the browse window that was opened, can be closed):



In the terminal window that was opened automatically at startup, or in one reopened via one of the two marked icons...



…enter the following commands, using the password 'oracle':



Now the volume VBOXADDITIONS can be unmounted. First, change the current directory…



 …and then eject:


In the future you may want to check the current version of the installed Guest Additions using:


Automatically mount the shared folder at startup 

First step is to create a folder in Linux that can serve as the mountpoint for the shared folder on the host.
Open a file manager – there are two ways to do that. The first one starts in your home-dir – in this case /home/oracle:


=>

The second one opens a more verbose filemanager:


 =>

Choose File>Create folder and name the new folder ‘HOST’:



Return to the terminal-window or open a new one and make sure to sign in as root and enter the following command:



 (Ignore the warning.) In the text file that opens, add the following line and save it again:



 Then select System> Shutdown> Restart and log back in with user oracle. Start the file browser and navigate to the HOST folder. If you put some files in the SHARED folder on the host OS, then those files should now be displayed:




Creating a snapshot of the VM-state in order to be able to easily return to this state 

Go to the VirtualBox Manager screen and choose the Snaphots button. (Note: You do not have to close or stop the VM in order to take a snapshot.) You will then see the list of snapshots and the current state. Currently there are no snapshots. Choose Take Snapshot in the toolbar:



Resulting in: