oracle database 12c pre built on virtual box

16
Oracle Database Pre-Built 12.1.0.2 Database on VirtualBox Step by step screenshots showing the installation of Virtual box and configuring pre-built Oracle Database 12.1.0.2 (including in-memory option). A quick way to get started on Oracle Database 12c. This is a very easy setup, though many do not know how easy it is to get started and playing with Oracle Database 12c on Linux platform using VirtualBox. Hopefully these screens will convince you to download and setup, and start playing with Database 12c and its various options. There are not many complicated steps to get this done, the screens are pretty much self-explanatory! First download and Install VirtualBox. Always download the latest and greatest version. Then download the pre-built Oracle Database 12c (12.1.0.2) Virtual Host Image file, and import to VirtualBox. By default the VM is configured to use only 1GB RAM. This is very low. If your computer has memory, 4G or more for the VM would be really beneficial. Will show screens on Starting the Virtual Host and using the database as well. Good Luck learning Oracle Database 12c!

Upload: biju-thomas

Post on 14-Jul-2015

352 views

Category:

Technology


7 download

TRANSCRIPT

Page 1: Oracle Database 12c pre built on virtual box

Oracle Database Pre-Built

12.1.0.2 Database on

VirtualBox

Step by step screenshots showing the installation of Virtual box and configuring

pre-built Oracle Database 12.1.0.2 (including in-memory option). A quick way to

get started on Oracle Database 12c. This is a very easy setup, though many do

not know how easy it is to get started and playing with Oracle Database 12c on

Linux platform using VirtualBox. Hopefully these screens will convince you to

download and setup, and start playing with Database 12c and its various

options. There are not many complicated steps to get this done, the screens are

pretty much self-explanatory!

First download and Install VirtualBox. Always download the latest and greatest

version.

Then download the pre-built Oracle Database 12c (12.1.0.2) Virtual Host Image

file, and import to VirtualBox.

By default the VM is configured to use only 1GB RAM. This is very low. If your

computer has memory, 4G or more for the VM would be really beneficial.

Will show screens on Starting the Virtual Host and using the database as well.

Good Luck learning Oracle Database 12c!

Page 2: Oracle Database 12c pre built on virtual box

Install VirtualBox

Download VirtualBox Software

Go to https://www.virtualbox.org/

1. Click “Downloads”

2. Download latest version of VirtualBox available

3. Download corresponding Extension Pack

Install VirtualBox

Doubleclick on VirtualBox-<version>-Win.exe

Page 3: Oracle Database 12c pre built on virtual box
Page 4: Oracle Database 12c pre built on virtual box
Page 5: Oracle Database 12c pre built on virtual box
Page 6: Oracle Database 12c pre built on virtual box
Page 7: Oracle Database 12c pre built on virtual box

Double-click on Extension Pack download file. Alternatively, you can choose to

download and install when VirtualBox starts.

Download Oracle Database Pre-Built VirtualBox Image

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

vm-161299.html

This virtual machine contains:

Oracle Linux 7

Oracle Database 12c Release 1 Enterprise Edition (12.1.0.2 with In-Memory Option)

Oracle XML DB

Oracle SQL Developer

Oracle SQL Developer Data Modeler

Oracle Application Express

Hands-On-Labs (accessed via the Toolbar Menu in Firefox)

Wow! What else do you need…?

Download VM Image – Oracle Login Required. It is almost 6GB file, so will take some

time to download.

Page 8: Oracle Database 12c pre built on virtual box

Add Virtual Host to VirtualBox

On the File menu, choose Import Appliance.

Details are displayed

Page 9: Oracle Database 12c pre built on virtual box

Change location of Disk Image if required. Adjust memory as well, or you can

adjust later.

Click Import.

Once import completes, the Machine appears on VirtualBox.

Page 10: Oracle Database 12c pre built on virtual box

The disks are also visible

On the right side, details of the machine is displayed.

Let us increase the memory of the machine, if your laptop/desktop has enough

free memory. Make any other adjustments as you find suitable. All defaults work

just fine.

Click settings.

Page 11: Oracle Database 12c pre built on virtual box

If you want any OS folder to be visible on the VM machine, add it to the Shared

Folder. For example, if you have downloaded software or you want to copy files

to the VM, it is easy to create shared folder.

The changes are reflected in the summary

Page 12: Oracle Database 12c pre built on virtual box

Using the VM host for Oracle Database Learning

Now ready to start this machine.

Select the VM and Click Start.

Login as “oracle”, password “oracle”.

Start a terminal session, and view the readme.txt.

To start learning, view ODDHandsOnLabs.html file using firefox browser.

Page 13: Oracle Database 12c pre built on virtual box

$ firefox ODDHandsOnLabs.html

Following training available:

Oracle Database Track

o XML DB

o JSON

o SQL Developer

o SQL Developer Data Modeler

o Optimizer

Oracle Application Express Track

o Oracle Application Express

Database as a Service

o Getting Started with Oracle Database Cloud Service

Application Development

o Soup to Nuts of Building an Application

Here is an example screen from Optimizer class:

Page 14: Oracle Database 12c pre built on virtual box

The database is started automatically.

[oracle@localhost Desktop]$ env |grep ORACLE

ORACLE_SID=cdb1

ORACLE_HOME=/home/oracle/app/oracle/product/12.1.0/dbhome_1

[oracle@localhost Desktop]$ ps -ef |grep pmon

oracle 1634 1 0 22:05 ? 00:00:00 ora_pmon_cdb1

The shared folder added is also visible and mounted as /media/sf_Oracle12c.

Thus files on your local machine folder are visible in the VM.

Contents of readme.txt file is displayed when you login…

Page 15: Oracle Database 12c pre built on virtual box

The database name running is “cdb1”. The TWO_TASK variable is set to “orcl”.

So, your “sqlplus / sysdba” fails. Unset the TWO_TASK variable to login as sysdba.

[oracle@localhost Desktop]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Fri Jan 23 22:13:42 2015

Copyright (c) 1982, 2014, Oracle. All rights reserved.

ERROR:

ORA-01017: invalid username/password; logon denied

Enter user-name: ^C

[oracle@localhost Desktop]$ echo $TWO_TASK

orcl

[oracle@localhost Desktop]$ unset TWO_TASK

[oracle@localhost Desktop]$

[oracle@localhost Desktop]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Fri Jan 23 22:14:24 2015

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL>

Page 16: Oracle Database 12c pre built on virtual box

To use SQLDeveloper, start it using sqldeveloper.sh script.

$ cd sqldeveloper

Happy 12c learning!