You are on page 1of 14

Lab

Environment
Setup

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Lab Environment Setup Overview


Steps to be completed by now:
Oracle VirtualBox soJware installed
Lab materials copied from the thumb drive
VirtualBox VM Image extracted to your laptop/desktop

Steps to be performed next:


Startup the VM Image
Login as oracle/oracle
Startup the Database Listener
Startup the Database
Copyright 2014, Oracle and/or its aliates. All rights reserved. |

About the VM Environment


Lab environment is a self-contained VirtualBox VM
All required soJware is already installed and congured:
Oracle Linux Server 6.5
Oracle Database 12.1.0.2
Oracle SQL Developer 4.0.0

OS Usernames and Passwords


oracle/oracle
root/oracle (never used)

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

About the VM Environment


Oracle Database setup:
Oracle Database 12c Database named ORCL
Oracle Database 12c Listener (Port 1521)

Database Usernames/Passwords
SYS, SYSTEM passwords are oracle
Lab Schemas are RTL/rtl and LABUSER/labuser

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Step 1: Startup the VM Image


Open the *.Vbox le in Oracle VirtualBox:
Op^on 1: Double-click the .Vbox le

Op^on 2: Start Oracle VirtualBox SoJware

Select Machine->Add, and then choose the *.Vbox le

Click Start

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Step 2: Login as oracle/oracle


Enter password oracle to login

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Step 3: Start the Database and the Listener


Start a new terminal

Start the listener


$> lsnrctl start
Start the Database
$> sqlplus / as sysdba
SQL> STARTUP;
Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Lab Schema Overview


Two Schemas in use
LABUSER: Modied version of SH schema
As a play schema.. For ALTERing/CREATEing objects
But s^ll, dont start dropping objects!

RTL: Stripped down version of Oracle Retail Data Model


Real-World workload is congured to run against RTL
Not to be treated as a scratch space!

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Lab Schema Overview


LABUSER: Star Schema based on SH
Minus a few constraints, tables

Username/password: LABUSER/labuser
All passwords are case-sensi^ve!

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Lab Schema Overview


RTL: Star Schema based on Oracle Retail Data Model
Large Fact Table for Sales/Returns Line Items
3 days of data, 27 Million rows

Another Large Fact for Customer Visits


3 Dimension tables
Sized at 1.2 GB
Workload include SQL statements for:
Counts
Joins
Aggrega^ons

Username/password: RTL/rtl
Copyright 2014, Oracle and/or its aliates. All rights reserved. |

About the Lab Manual


Please read the lab manual thoroughly
Most of the lecture material are documented in the manual

Use the lab manual within the VM


Easy to Copy/Paste SQL
Separate PDF provided mainly for VM install/setup instruc^ons
Beware of Copy/Paste issues with newline characters
PDF conversion does not preserve newline characters
Only a handful of copy/paste may have issues
Alterna^vely, you may use the SQL scripts located within /home/oracle/labs directory

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

Copyright 2014, Oracle and/or its aliates. All rights reserved. |

You might also like