You are on page 1of 23

HTTP 5105 Database Design and

Development
Course Introduction
2015 2016

HTTP 5105 Database Design and Development 1 August 4, 2017


Contact Information

Name: Bill Wright


Office: J120
Email: bill.wright@humber.ca
Alternate email: wright_b@bell.net
Web Materials: https://learn.humber.ca

HTTP 5105 Database Design and Development 2 August 4, 2017


Schedule

Lab
Tuesdays 8:00 9:45 J132

Lecture
Thursdays 8:00 9:45 E422

HTTP 5105 Database Design and Development 3 August 4, 2017


Books

Murachs Oracle SQL and PL/SQL, 2nd Edition


ISBN 978-1-890774-80-6
Murachs MySQL, 2nd Edition
ISBN 978-1-890774-82-0

HTTP 5105 Database Design and Development 4 August 4, 2017


Rationale

Database driven web sites are all the rage


nowadays. They basically consist of a "back-end"
database with web pages that contain "script"
programming languages capable of pulling specific
information from the database depending on what
the user wants to know.

HTTP 5105 Database Design and Development 5 August 4, 2017


Software

Oracle 12c R1 Enterprise Edition installed on server in


college called Dilbert
You will use a client called SQL Developer 4.1.1 to access
the database server to write SQL and PL/SQL commands
Oracle MySQL 5 installed on server in college called
Munro
You will use a web based client to access to write your
SQL commands

HTTP 5105 Database Design and Development 6 August 4, 2017


Client Machines

You will need to know what type of platform you are


using
Is it Windows 64-bit?
Is it Windows 32-bit ? I doubt you have this one
nowadays
Is it Mac OS X?
You will need to know which OS you have on your
computer system

HTTP 5105 Database Design and Development 7 August 4, 2017


Why Databases?

Why are you learning databases?


What does a database have to do with web
development?

HTTP 5105 Database Design and Development 8 August 4, 2017


SQL Developer Interaction

SQL queries

Results

Client Database server


Application software Database management system
Data access API Database

The client we use is SQL Developer 4.0.2 to access the database server, this is how
we function during the database course

HTTP 5105 Database Design and Development 9 August 4, 2017


SQL Developer Interaction

Server Software
Database Management System (DBMS)
The DBMS does the back-end processing
This is the server running on Dilbert
Client Software
Application software
Data access API (Application Program Interface)
The client software does the front-end processing
In our case this is SQL Developer running on your computer
SQL Interface
SQL Interfaces
SQL is Structured Query Language

HTTP 5105 Database Design and Development 10 August 4, 2017


Areas to be Covered

SQL statements to query data, relatively easy


SQL statements to manipulate the data, not too bad
SQL statements to create database objects, have to
know what to create
Programming procedures on the server side to
interact with the client using Oracle PL/SQL , OK now
time to think
This applies to both Oracle and MySQL

HTTP 5105 Database Design and Development 11 August 4, 2017


Multi-Tier System or N-Tier System

Application Servers store business


components

User request SQL queries

Response Results
Client Application server Database server
User interface Business components DBMS
Database

This is more as the configuration would be in the real business world

HTTP 5105 Database Design and Development 12 August 4, 2017


Simple Web-Based System

User request User request SQL queries


Internet

Response Response Results

Client Web server Database server


Web browser Web applications DBMS
Web services Database

Web Servers store web applications and web


services

HTTP 5105 Database Design and Development 13 August 4, 2017


Web Server

The Web Server is where the application is deployed


With the application deployed here it can be accessed
by a web browser from any computer
There are several commercial web server products
available:
Oracle WebLogic Server
IBM WebSphere
Tomcat
JBoss

HTTP 5105 Database Design and Development 14 August 4, 2017


How Does a Web Application Work?

Web browser on the client sends a request to the


web server
Web server processes the request
Web server passes any data requests to the database
server
Database server returns results to the web server
Web server returns a response to the browser

HTTP 5105 Database Design and Development 15 August 4, 2017


What to Expect

Thursday will be the lecture


Will discuss, demonstrate the various SQL commands you
need to know
Tuesday in the lab you will practice these commands and
concepts each week (lab exercises are due during class,
have to be there to submit)
On Tuesday you will be given an assignment that you will
do on your own time
Assignment will be due the following week on Tuesday at
the beginning of class (8:00 AM)
HTTP 5105 Database Design and Development 16 August 4, 2017
Late Assignments

Assignments are deducted 10% for each day it is late


After 5 days a grade of zero is assigned
Please do your assignments and keep up to date
The next weeks material maybe dependent on the
previous material, you do not want to fall behind,
tough to play catchup

HTTP 5105 Database Design and Development 17 August 4, 2017


Plagiarism

You are expected to do your own work and


submitted your own original work not that of
someone else
Penalties are stiff when you are caught
Best way is to do your own work
If you copy someone elses work you are not learning
the material and it will only affect you down the road

HTTP 5105 Database Design and Development 18 August 4, 2017


Peer Tutors

If you are struggling I can arrange for peer tutors in


this course
If you find things tough please talk to me before it is
too late

HTTP 5105 Database Design and Development 19 August 4, 2017


SQL Developer

Our main interface for Oracle is SQL Developer


Preinstalled in the labs
I will help you obtain your own copy to install on your
own computer to access the database server on
Dilbert
This will be the focus of your first assignment and lab
exercise

HTTP 5105 Database Design and Development 20 August 4, 2017


SQL Developer
This is the SQL Developer
interface
On the far right are Connections
I have many different
connections you will only have a
single one here
You enter your command in the
Query Builder
The results are displayed in the
Script Output
You can adjust the pane size
Much more on this coming soon

HTTP 5105 Database Design and Development 21 August 4, 2017


SQL Developer
This is a program
written in SQL
Does not get
much easier than
this
Do not let this
fool you it will
become more
complex than
what you see
here

HTTP 5105 Database Design and Development 22 August 4, 2017


What If I Have a Database Problem?

If you cannot connect


If you receive an error trying to login
Who do you call
If you try to login unsuccessfully too many times you
will lock your database account
Email me I look after the database that you use for
this course, do not contact the help desk

HTTP 5105 Database Design and Development 23 August 4, 2017

You might also like