oracle database 12c pre built on virtual box

Post on 14-Jul-2015

354 Views

Category:

Technology

7 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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!

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

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.

Add Virtual Host to VirtualBox

On the File menu, choose Import Appliance.

Details are displayed

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.

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.

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

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.

$ 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:

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…

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>

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

$ cd sqldeveloper

Happy 12c learning!

top related