Oracle and SQL (CIS150/50)

Weekly Schedule

Please do not change your Linux or Oracle passwords.

Essentially there are two ways for you to be able to work with Oracle:
1) Download the full version of Oracle and install it on your computer and work locally - that takes a lot of room and leaves a lot of footprints.
2) Access the BCC server installed Oracle from home using putty - there are instructions for that by Eric at my site.

Remember, all assignments including inclass assignments must be done by everyone - that includes online students and students who missed the class.. Play computer means to figure out the results yourself by evaluating the data rather than running the query. When you are asked to write code you should also show the results that the code generated unless specifically told not to.

If you get an assignment back without a grade you need to fix it and resubmit to get a grade.

The college wants you to use the Bristol email account when communicating with me.

Remember HELP is available on Zoom - see HELP section below.

The CIS pool is now available for students that need to access licensed software that they cannot use from home.
Remote access virtual desktop
Instructional video for using Remote Access Virtual Desktop - HTML

Schedule by weekInformation to cover
  Note that the audio and Smartboard presentations for each class are posted within a couple of days. This semester, please use 2019 audio and Smartboard since we do not meet in class.
Please check the weekly schedule multiple times a week, I sometimes add things during the course of the week. You need to pass in the code you write and the output that is produced unless you are told otherwise. Sometimes this involves showing data that was written to a file/table.
Play computer means to figure out the results yourself by evaluating the data rather than running the query.
Please keep copies of all work you submit until you receive your final grade at the end of the semester.
Comment on how I want the assignment: You should take the commands you do in SQL and the results and paste them into a word document. It should be similiar to the way I prepared the notes. You then send me the word document. I do not want you to show the screen itself - they are really hard to read!
HELP schedule I will set up some optional class Zoom meetings that you can attend. Check the week of information to see the times and dates.
My office hours are 1 on Monday, 10 on Tuesday, 1 on Wednesday, 10 on Thursday. I hold my office hours on Zoom. If it turns out other hours work better for students these may change, so check back. I am also available by request (give me a few time options) especially while we get other support in place. I have been meeting with a lot of students that request it, maybe something you should consider doing. You can email me with a couple of times you can meet and usually one of those will work.
I will send out the information to contact me on Zoom. I will post availability but you can also set something up with me.
Milo is the tutor for this course and I have sent you an email with his Zoom address and the times he is available.
Downloading WinSCP on your PC by SI Joe Fletcher
There is access to WiFi from your car under the solar canopies on the Fall River Campus.
Week #14
Week of May 2nd

INFORMATION:

I will be around this afternoon and evening (Friday the 6th), most of the time at my Zoom site if you have questions.
Information about the final was posted last week.
See yourself in STEM, a guest speech I have been told about on May 5th at 11:00AM.

TOPIC VIDEOS:

Check Digit

ASSIGNMENTS TO DO:

Notes on check digits You need to write the routine to calculate a check digit using Mod 11 and to validate a check digit using Mod 11. It can be done in two scripts or one.
Extra credit (if you are taking more than one course with me, need to choose which course it counts for)
Speech on Hacking from Thursday, April 28th Passcode is: F^Xd!90y
Extra credit if you write a short paper on some things you learned from this speech.
Week #13
Week of April 25

INFORMATION:

Please continue to look at the information on cursors. This week we will also introduce exceptions.
If you would like me to do a Zoom to go over cursors or something else, just let me know and we can make it happen.
There is information about tables and records under Notes and Handouts and under Presentations that you should look at.
PL/SQL User Defined types - Record and Table
PL/SQL User Defined Types - record and table
      Separate speaker notes for PL/SQL User Defined Types - record and table
FINAL:
REQUIRED STATUS SHEET
I will post the final on Friday, April 29th and you will have one week to do it so it is due on Friday, May 6th. The required status sheet must also be turned in. Note that I only correct finals where the student has turned in the required status sheet. The status sheet is your way of being sure I have all your assignments. If you do not match my records, I will contact you.
FINAL EXAM
The final is open notes and open book but the only one you can ask questions to is me. Milo is not involved in the final. It is an individual project.
I will take homework the following week which is the last week of classes. Homework is due on Wednesday, May 11th but I will take a few assignments through Friday, May 13th. I just do not have the time to correct a lot of assignments passed in on Friday because my grades are due.

NOTES/EXAMPLES TO LOOK AT:

Example we will look at:
Introduction to exceptions
type examples
We will look at types and then move on to procedures and functions.
Here are notes on functions, procedures.
Introduction to procedures
Introduction to functions
Internal procedures
More on internal procedures and functions
Still more on procedures and functions
Introduction to triggers
More on triggers

ACCOMPANYING POWERPOINT PRESENTATIONS

Exceptions in PL/SQL
      Separate speaker notes for Exceptions in PL/SQL
Introduction to PL/SQL Procedures
      Separate speaker notes for Introduction to PL/SQL Procedures
Introduction to PL/SQL Functions
      Separate speaker notes for Introduction to PL/SQL Functions
More on Procedures - Internal Procedures
      Separate speaker notes for More on Procedures - Internal Procedures
Introduction to Triggers
      Separate speaker notes for Introduction to Triggers
More and Still More on Procedures and Functions
      Separate speaker notes for More and Still More on Procedures and Functions
More on Triggers
      Separate speaker notes for More on Triggers

TOPIC VIDEOS:

Exceptions
Introduction to Procedures
Introduction to Functions
More Procedures
Internal Procedures & Functions
More procedures and functions with cursor
Introduction to Triggers
More Triggers

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Cursors and exceptions (11/12/19) Accompanying audio
Cursors and exceptions (11/12/19) See notes under Smartboard presentation
Cursors and procedures (11/14/19) Accompanying audio
Cursors and procedures (11/14/19) See notes under Smartboard presentation
Cursors and functions (11/19/19) Accompanying audio
Cursors and functions (11/19/19) See notes under Smartboard presentation
Procedures, functions, triggers, check digit (11/26/19) Accompanying audio
Procedures, functions, triggers, check digit (11/26/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Exception assignment: Write new scripts or modify existing scripts to show each of the three kinds of exceptions we went over.
Assignment on procedures, functions and triggers
Week #12
Week of April 18th

INFORMATION:

CATCH-UP WEEK - no new work or assignments
Week #11
Week of April 11th

INFORMATION:

The CIS Alum round table/panel is being held on Zoom on Tuesday, April 12th at 12 noon. It will last until sometime between 1 and 1:30 but you can leave when you need to.
PLEASE try to come for all or part. The discussion about careers that Bristol CI alum have is really interesting and the insite into the jobs out there is valuable. You also have the chance to ask the questions you want to know the answers to and get a variety of perspectives.

Recording alum 4/12/22
Passcode: G0YiY?=w
Office hours by appointment since I am not getting attendance. Let's plan a time that works!
I really hope you were able to spend some time on cursors last week.

NOTES/EXAMPLES TO LOOK AT:

Another set of cursor examples
Some more examples:
payprog.sql
payprog1.sql
payprog2.sql
data.txt Data layout for studentchk.sql
studentchk.sql
createdonor.sql Script to create donor
donorcursor1.sql
donorcursor2.sql
donorcursor3.sql
decodecursor1.sql

ACCOMPANYING POWERPOINT PRESENTATIONS

Covers: Another set of cursor exampes
      Separate speaker notes for Another set of cursor examples

TOPIC VIDEOS:

Another set of cursor examples (prob 1)
Another set of cursor examples (prob 2)
Another set of cursor examples (prob 3)
Another set of cursor examples (prob 4)
Cursor examples involving payroll
Cursor examples involving donor DB

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Still more cursors (11/5/19) Accompanying audio
Still more cursors (11/5/19) See notes under Smartboard presentation
Cursors and exceptions (11/12/19) Accompanying audio
Cursors and exceptions (11/12/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Assignment: Use cursors to solve these problems.
First Problem:Write a PL/SQL program to accomplish the following: Using the sample emp database, give everyone in dept 10 a 5% raise, everyone in dept 20 a 7.5% raise, everyone in department dept 30 a 10% raise. Do this using a simple IF...ELSE and a loop.
Second Problem:Modify the problem in #1 to meet the following criteria: IF dept is 10 and the salary is greater than 2000 give a 6% raise otherwise give a 7% raise. IF dept is 20 and the salary is greater than 2500 give a 5% raise otherwise give a 5.5% raise. IF dept is 30 and the salary is greater than 1000 give a 7% raise otherwise give a 6.5% raise.
Third Problem: Set up an inventory table and a transaction table that has sales, returns, and purchases (the transaction table should have a code with S for sales, R for returns and P for purchases). Create scripts to create and insert data into these tables.
Fourth Problem: Using the tables you created in the fourth problem, process the transactions and determine the impact on inventory. Display information that gives the original inventory and the inventory after the sales, returns and purchases have been processed. You need to use cursors.
Please check back as usual!
Week #10
Week of April 4th

INFORMATION:

We are going to come back to Records and Table types because I think it will be better to lay the cursor foundation first. So we are going to look at Introduction to Cursors and Example 1 using cursors and its continuation.
Note that there will be a week devoted mainly to catch up before the end of the semester.
April 8th is the last day that students can withdraw from their classes. If you are far behind you should do a realistic analysis and decide if you want to withdraw. If you have questions, we can talk!!! You should also talk to financial aid if you have financial aid and you want to be sure you understand the impact of failing and the impact of withdrawing.

NOTES/EXAMPLES TO LOOK AT:

Introduction to Cursors
Example of cursor with while
Example 1 using cursors
Continuing example 1 using cursors

ACCOMPANYING POWERPOINT PRESENTATIONS

Covers: Cursors in PL/SQL, cursor example and continuation of first cursor example
      Separate speaker notes for Cursors in PL/SQL, cursor example and continuation of first cursor example

TOPIC VIDEOS:

Introduction to Cursors
Example 1 using Cursor but I did it with the wrong data The explanation is good though!
Example 1 using Cursor with correct data
Example with While cursor

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Data manipulation and intro cursors (10/29/19) Accompanying audio
Data manipulation and intro cursors (10/29/19) See notes under Smartboard presentation
More cursors (10/31/19) Accompanying audio
More cursors (10/31/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Work on understanding cursors.
Use cursors to solve this problem:
Note that my example of two cursors using the drive table and the donation table will be very helpful in doing this. Think of drive like dept.
Problem #1: I want you to write a script that will handle the inven table and the department table. The script should accumulate the onhand for departments and write to a new table where you will store the dept, the department name and the total of the onhand. I would also like you to use the dbms lines to show the processing that happens. Everyone needs to turn in this script including the dbms output and a listing of what is on the new table. Do it doing the while structure
In response to a question the inven table could have an inven number, a dept number (does not have to be a number) and an onhand amount. The dept table could have a dept number (match to dept on inven table) and a department name. You should assume there are multiple inven records per dept number and only one record per dept number on the department table.
Problem #2: Re do using the loop structure.
Check back as always!
Week #9
Week of March 28th

INFORMATION:

I am setting up a Zoom alum roundtable on April 12 at 12:00PM. I really hope you can attend. The one from last fall is below.
Alum panel recording from October 28th Password is egc8Vpz%
Remember, I will set up a meeting some night to go over this if you want me to.

NOTES/EXAMPLES TO LOOK AT:

More on PL/SQL IF statements
Introduction to loops
Data manipulation in PL/SQL - introduction

ACCOMPANYING POWERPOINT PRESENTATIONS

More on PL/SQL IF statements
      Separate speaker notes for More on PL/SQL IF statements
Introduction to loops
      Separate speaker notes for Introduction to loops
Data manipulation in PL/SQL - introduction
      Separate speaker notes on Data manipulation in PL/SQL - introduction

TOPIC VIDEOS:

More on PL/SQL IF
Intro to Loops
Manipulating data
Loops examples with Joe Fletcher

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Be sure to review the Intro PL/SQL - if and loop Smartboard and Audio under week #8.
Data manipulation and intro cursors (10/29/19) Accompanying audio
Data manipulation and intro cursors (10/29/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Oracle Loop Assignment
Oracle PL/SQL Intro Quiz

Check back!
Week #8
Week of March 21st

INFORMATION:

This week we will wrap up the introduction to SQL and move on to look at PL/SQL (Procedual Language/SQL).

NOTES/EXAMPLES TO LOOK AT:

More on views
Information on database objects
Script for input data
Introduction to PL/SQL Just very briefly to look at the structure we will return to this in a week or so.
Introduction to IF statements

ACCOMPANYING POWERPOINT PRESENTATIONS

More on views
      Separate speaker notes for More on views
PL/SQL - Using IF statements
      Separate speaker notes for PL/SQL - Using IF statements

TOPIC VIDEOS:

More views
Sequence views etc
Input Script Example
Introduction to PL/SQL and IF statements

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Wrapup SQL (10/17/19) Accompanying audio
Wrapup SQL (10/17/19) See notes under Smartboard presentation
Intro PL/SQL - if and loop (10/22/19) Accompanying audio
Intro PL/SQL - if and loops (10/22/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Finish Basic SQL
IF assignment
Check back!
Break
Week of March 14th
Catch up week!
Week #7
Week of March 7th

INFORMATION:

I can go over keys and indexes as well as subqueries and anything else you suggest one night this week around 8 or 9 if I here from you about day and time and that you plan on trying to come.
This week we will focus on indexes, constraints and keys. As always, the most important thing are the Notes that essentially make the textbook for this class.
Lecture from3/9/21 Passcode z9@%N+y^

NOTES/EXAMPLES TO LOOK AT:

Indexes in Oracle - An introduction
More on Primary and Foreign keys
Notes on key questions
Also please look at the accompanying presentations:

ACCOMPANYING POWERPOINT PRESENTATIONS

Indexes in Oracle - An Introduction
      Separate speaker notes for Indexes in Oracle - An Introduction
Primary and Foreign constraints with a relational database
      Separate speaker notes to accompany primary and foreign constraints with a relational database
More on Primary and Foreign Keys also info from questions
      Separate speaker notes for More on Primary and Foreign Keys etc.

TOPIC VIDEOS:

Indexes and constraints
Primary keys and foreign keys
Key and index notes

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Review groups, relational, subqueries (10/8/19)
Keys and constraints (10/10/19) Accompanying audio
Keys and constraints (10/10/19) See notes under Smartboard

ASSIGNMENTS TO DO:

Oracle Key Example(this is a check off assignment) I want you to go through this example and do what I did so you follow and understand the concepts. Pass in your duplicate.
Key and index assignment
Week #6
Week of February 28th

INFORMATION:

Let me know if it would be helpul to set up a Zoom session this week (include suggestions about when).
Women in STEM Panel on Wednesday, March 2 (11AM-12:30PM). You may register here for the event: https://forms.office.com/r/w6ps kiBhH6

NOTES/EXAMPLES TO LOOK AT:

There was a question about equijoin and looking at my notes, I could have done better. Try these!
Equijoin notes
Nonequijoin notes
Some subquery examples to look at to make sure you understand subqueries:
A few more examples
And still more examples
Now we are going to move on to views and reports and more on scripts.
Introduction to views
Introduction to reports
Also please look at the accompanying presentations:

ACCOMPANYING POWERPOINT PRESENTATIONS

Introduction to views
      Separate speaker notes for Introduction to views
Introduction to Reports
      Separate speaker notes for Introduction to reports
Resource on reports
Scripts: To create a script use edit and the name of the script (.sql is added) and to run use @ scriptname or a slash.
createdonor.sql Script to create donor
Insert data into maintain table
Insert data into maintain table ver 2

TOPIC VIDEOS:

Introduction to views
Introduction to reports

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Views and reports (10/3/19) Accompanying audio
Views and reports (10/3/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Views and Reports
Week #5
Week of February 21st

INFORMATION:

My office hour at 10 On Thursday is cancelled.
I only had one student at my Zoom session so time is wrong or everybody is fine without it. Let me know if you would like some time to go over things and what days and times work!
Let me know if you want Zoom during my office hours and suggest other times if my office hours do not work and you need some Zoom time.
We are going to continue with Oracle and subqueries and variables and into maintenance and reports.

REVIEW EXAMPLES:

This is an example that you might find helpful dealing with subqueries:
Examples Solution
A few more examples

NOTES/EXAMPLES TO LOOK AT:

We started looking at variables and got through Using Input Variables and some of more on variables.
Using input variables
More on variables with Oracle's SQL*Plus
Table maintenance revisited (again)
Continuation of table maintenance revisited (again)

ACCOMPANYING POWERPOINT PRESENTATIONS

Using Input Variables
      Separate speaker notes for Using Input Variables
More on variables with Oracle's SQL*Plus
      Separate speaker notes for More on variables with Oracle's SQL*Plus
Table maintenance revisited (again)
      Separate speaker notes for Table maintenance revisted (again)
Continuation of table maintenance revisited (again)
      Separate speaker notes for Continuation of table maintenance revisted (again)

TOPIC VIDEOS:

Introduction to variables
More on variables
Maintain again
Maintain revisit again

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Variables and maintenance (10/1/19)See accompanying audio
Variables and maintenance (10/1/19)See accompanying pdf

ASSIGNMENTS TO DO:

Coding assignment I want you to play computer and tell what the results would be and why.
Check back...
Week #4
Week of February 14th

INFORMATION:

I will do a Zoom at 9:00 PM Tuesday at my Zoom site to go over Oracle and SQL. It is optional but I believe helpful. Contact me to meet on Zoom during my office hours if you want to meet. You can also contact me to set up a different time to meet on Zoom. Just a suggestion, not a requirement.

NOTES/EXAMPLES TO LOOK AT:

Using join
Join and where
Subqueries
More on subqueries

ACCOMPANYING POWERPOINT PRESENTATIONS

Zipped zersion of subqueries if you find a problem with version online.
Subqueries
      Separate speaker notes for subqueries
More on Subqueries
      Separate speaker notes for More on subqueries

TOPIC VIDEOS:

Using join to link tables
Accompany notes on Subqueries
Explanation of subqueries described in previous notes on subqueries
Presentation on a previous Feb 14th on intro materialThis was an introduction for students who were behind.
Password: ^1yTykS%

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Subqueries (9/24/19) Accompanying audio
More Subqueries (9/26/19) Accompanying audio
Subqueries (9/24/19) See notes under Smartboard presentation
More Subqueries (9/26/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Subquery Assignment
Subquery quiz
Week #3
Week of February 7th

INFORMATION:

There is a lot of support between Milo and I and you should definitely use it if you have questions or encounter a problem. We are hear to help you succeed! Please take advantage of that. If you want to meet me in Zoom, I am available during my office hours or we can set up another time if that works better and you think it would be helpful
To repeat: If you need help with something, now would be the time to ask your questions!
We are going to start looking at the design of a database and the theory of relational databases. Please read information about third normal form and relational databases. Please read the handout on definitions: Normalization definitions
Normalization

NOTES/EXAMPLES TO LOOK AT:

Please read the two examples - the first two postings under notes.
Introduction to multiple tables (relational) - joins
Relational database examples
Example of non-equijoin: nonequijoin example to accompany notes
Also view the slide presentation on normalization information about relational databases:

ACCOMPANYING POWERPOINT PRESENTATIONS

Normalization - information on third normal form
      Separate speaker notes for normalization presentation
Relational database information - information on 1 to 1, 1 to M, and M to M
      Separate speaker notes for relational database information
Relational database notes and examples Goes with notes Introduction to multiple tables (relational) - joins - uses donor, donations and drive tables
      Separate speaker notes for relational database presentation

TOPIC VIDEOS:

Third Normal Form
Introduction to multiple tables (relational) - joins (accompanying notes)
Relational database examples (accompanying notes)

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Oracle quiz and relational databases (9/17/19) Accompanying audio
Oracle quiz and relational databases (9/17/19) See notes under Smartboard presentation
Relational databases and intro subqueries (9/19/19) Accompanying audio
Relational databases and intro subqueries (9/19/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Oracle quiz - week 3The problems should be done without the computer. In the first five tell me the output you think would happen and in the last five show me the code you would write.
Function assignment
In problem #1 just to be clear, I want you to take a name that has been written with the slash separator in the format last/first m and flip it so it has first m last using Oracle functions. Specifically it can be done using substr and instr.
Week #2
Week of January 31st

INFORMATION:

After the last big storm, I lost power for over a week, so just in case I am posting next weeks work before the storm.
I will go to my Zoom area during office hours this week.
Please do not change any of the passwords we have given you. I need to be able to get to your site as does the IT staff if there is a problem.

NOTES/EXAMPLES TO LOOK AT:

These are the notes that I will attempt to get through this week.
More on maintaining an SQL table
SQL functions
More SQL functions
Group SQL functions

ACCOMPANYING POWERPOINT PRESENTATIONS

These PowerPoint presentations were made to accompany the notes.
More on maintaining an SQL table
      Separate speaker notes for More on maintaining an SQL table
SQL functions - part 1 character
      Separate speaker notes for SQL functions - part 1 characters
SQL functions - part 2 numeric & date
      Separate speaker notes for SQL functions - part 2 numeric & date
More SQL functions (includes DECODE, ways to edit SQL code and nested functions)
      Separate speaker notes for more SQL functions
Group functions
      Separate speaker notes for group functions

TOPIC VIDEOS:

Maintain Oracle
Character Functions in Oracle
Other kinds of Oracle Functions
Decode Function in Oracle
Group Functions in Oracle

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

Where, maintenace, functions in SQL (9/10/19) Check accompanying audio
Where, maintain, functions in SQL (9/10/19) See notes under Smartboard presentation
Functions and groups (9/12/19) Check accompanying audio
Functions and groups (9/12/19) See notes under Smartboard presentation

ASSIGNMENTS TO DO:

Please copy and paste onto a document rather than taking a picture. I am finding the black background a problem on some assignments.
Here is a script to create the emp table:
Script to create emp table (createemp.sql)
You can enter edit createemp.sql or another name at the SQL prompt. It will go into the editor and ask if you want to create a new script. Enter yes and paste the script in and save it. If it does not ask you can just paste (different versions ask and don't ask). WriteOut and return to the prompt by using the exit and enter @ createemp.sql and it should run and create the table for you.
If you are using putty, remember to have the script text in notepad and highlight it. When you go into the editor the right click will paste it or you can uses shift + ins to paste. You can then write and exit. Back at the SQL prompt is where you run it with the @.
Query Quiz
Second SQL assignment
Week #1
Week of January 24th

INFORMATION:

Welcome to CIS150 Oracle and SQL For Fall 2021/Spring 2022
Welcome to CIS150 Oracle and SQL For Fall 2021/Spring 2022 (you tube version)
Welcome to CIS150 Oracle and SQL For Fall 2020
I recommend one of the text books in the syllabus if you like having a textbook, but a textbook is not required. There is enough material on the web and in my notes that I decided to make the book a recommendation. These books or another book dealing with Oracle SQL (we are using version 19c this semester) can be helpful as a reference.

LOGIN INFORMATION:

You can download Oracle, but that would not be my recommendation unless you are very experienced in complex downloads. Downloading - enterprise edition Be very careful when you install, Oracle leaves a lot of footprints that makes reinstalling very difficult.

The first approach to running Oracle will involve using putty to access Oracle.
You should have received the login information you need for this course. If not, let me know.
Two sites that can be used to download PuTTY are:
PuTTY download
PuTTY download
Using Putty (copy and paste)
Basic steps to login to putty and get to Oracle:
1) Start putty and put in the hostname as cisweb.bristolcc.edu and the port as 220
2) At the login screen enter your username and your Linux password.
3) When you see that you are at cisweb, enter sqlplus19c.sh (some handouts have an older version, be sure to use sqlplus19c.sh)
4) You then connect to Oracle and need to enter your username and Oracle password
5) You should see the SQL prompt
Now you can create a table. Note that after you create tables, to see existing tables select table_name from user_tables.

NOTES/EXAMPLES TO LOOK AT:

Accompanying step-by-step notes Remember the port has changed to 220.
First we will focus on getting into Oracle and then these are the notes that we will start to cover this week:
Introduction to SQL in Oracle
Create a table in SQL
SQL Conditions
Note that in many of the notes, the dates are quite old. SQL is SQL is SQL. Changes tend to be at the high end and not at the beginning. These notes were written after my first Oracle training, I have been back but have not seen the need to change the examples. When things are different, I will enter additional notes.

ACCOMPANYING POWERPOINT PRESENTATIONS

Introduction to SQL in Oracle
      Separate speaker notes for Introduction to SQL in Oracle
Create a table in SQL
      Separate speaker notes for Create a table in SQL
SQL Conditions
      Separate speaker notes for SQL Conditions

TOPIC VIDEOS:

Video to accompany Introduction to SQL in Oracle
Video to accompany Create a table in SQL
Video of logging on using putty, establishing a table and testing it
Video to accompany SQL Conditions

SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:

These are lectures from last Spring and the previous Fall that I recorded. The accompanying Smartboard presentations show what was on the Smartboard and the audio includes my explanation.
Intro to Oracle (9/3/19) Smartboard notes with accompanying audio
Intro to Oracle (9/3/19) See notes under Smartboard presentation to accompany this audio
Putty and more SQL (9/5/19) Smartboard notes with accompanying audio
Putty and more SQL (9/5/19) See notes under Smartboard presentation to accompany this audio

ASSIGNMENTS TO DO:

NOTES: Please copy and paste onto a document rather than taking a picture. I am finding the black background a problem on some assignments.
Note: You can use the commit command to make sure your work gets saved.
Copy from SQLPlus (but I actually prefer copy and paste and not having the black background)
All assignments must be turned in using the email addresses priscilla.grocer@bristolcc.edu.
Your goal should be to get homework in on the Thursday after the week it was assigned.
I strongly urge you to do the COMMIT; after the table is created.
Oracle assignment on introductory material (html)
Oracle assignment on introductory material (doc)
Comment on how I want the assignment: You should take the commands you do in SQL and the results and paste them into a word document. It should be similiar to the way I prepared the notes. You then send me the word document. I do not want you to show the screen itself or pictures of the screen - they are really hard to read!
To repeat: For this semesters assignments, I need the code you write and the results unless there are other specifications in the assignment.


Priscilla.Grocer@bristolcc.edu

Back to the Top
Return to home page