Setting Up an Oracle 11G Sandbox Development Environment

Embed Size (px)

DESCRIPTION

Setting Up an Oracle 11G Sandbox Development Environment

Citation preview

  • devhub.f m http://devhub.fm/setting-up-an-oracle-11g-sandbox-dev-environment/

    Figure 1: Oracle VM VirtualBox Manager

    Setting up an Oracle 11G Sandbox DevelopmentEnvironmentThis article will cover the f ollowing topics:

    Downloading, Installing & Running the Oracle 11G Virtual Machine.Starting up Oracle 11G and launching Enterprise Manager.Logging in with SQL Developer 3.1 EA.Working with the Demo SCHEMA.

    Note: Im working on an IBM Thinkpad with Windows XP SP2 running at 1.6GHZ with 3.0GBof RAM. The VM is running on RedHat Linux.

    Downloading, Installing & Running the Oracle 11G Virtual Machine.

    Step 1: You will want to download Oracle VM VirtualBox f rom here (avaliable f orWindows/Mac/Solaris/Linux): Oracle VM VirtualBox Download.

    If you dont have an Oracle account you will have to create one f or f ree.

    Once the download is complete continue with the installation process. I used the defaultinstallation options throughout the install. Once the instillation is complete run theapplication and you should see a screen similar to this:

    Step 2: Next you will need to download theVirtual Image (Oracle Developer Day.ova) f romhere: Oracle Developer Day.ova

    Step 3: Once the download is complete, we areready to launch the VM.

    Using VM VirtualBox import your VM: File-> Import Appliance to launch ApplianceImport Wizard.

    Click Choose browse to the whichcontains Oracle Developer Days.ova(select the f ile) then click Next> to beginimporting the virtual machine.

    Step 4: Now we can launch the Oracle Dev Virtual Machine. Double-click the OTN

  • Figure 2: Oracle VM VirtualBox Manager Running

    Figure 3: Oracle Virtual Machine logged-in

    Developer Days VM. Click OK to close the Virtualbox Information dialogs. The VM willlaunch and boot into RedHat Enterprise Linux 5 (this will take f ew minutes), once bootedin you can login using the f ollowing credentials:User Name: oraclePassword: oracle

    Starting up Oracle 11G and launchingEnterprise Manager.

    Now that the Oracle VM is up and running wecan start Oracle and login to the EnterpriseManager. In order to stat Oracle simply typeemctl start dbconsole into the console whichappeared on your desktop when you loggedinto GNOME and hit enter. This will launchOracle Enterprise Manager 11G. It took a f ewminutes to bootup f or me, but once it is bootedup you can log-in by going to the f olling URL inyour VMs web browser:

    https://localhost.localdomain:1158/em/console/aboutApplication

    User name: systemPassword: oracleConnect As: SYSDBA

    Logging in with SQL Developer 3.1 EA

  • Figure 4: Oracle Enterprise Manager 11G

    Figure 5: Oracle SQL Developer EA

    Logging in with SQL Developer 3.1 EA

    The VM comes with oracle SQL Developer EA(the icon is on the desktop). Ive been usingSQL Developer f or a while now and f ind it justas powerful as TOAD or any of the othermainstream Database IDEs.

    You can launch SQL Developer and login to theSystem account, you should see Auto-Generated Local Connections in theConnections pane on the lef t. Expand the Auto-Generated Local Connections branch, thiswill allow you to login to the system-oracle account (password: oracle).

    Once connected to system-oracle, right click on system-oracle and select SchemeBrowser, this will allow you to select the Demo schema which I will be referring to in otherarticles related to Oracle and PL/SQL.

    At this point you should have everything youneed to start learning and experimenting withOracle and PL/SQL in a consolidated VirtualMachine Environment!

    Setting up an Oracle 11G Sandbox Development Environment