Labsheet1 Updated
Labsheet1 Updated
IS222
Table of Contents
LAB1: Introduction to Oracle Application Express .............................................................. 2
Objectives:............................................................................................................................... 2
Tools/Software: ....................................................................................................................... 2
Concepts & Descriptions: ......................................................................................................... 2
1) An Introduction to Database ............................................................................................................... 2
2) SQL Schema Sample ............................................................................................................................ 3
3) Oracle Application Express .................................................................................................................. 3
Deliverables: ............................................................................................................................ 8
Lab Activities: ........................................................................................................................ 10
Activity No. 1 ............................................................................................................................................... 10
LAB1: Introduction to Oracle Application Express
Objectives:
After completing this lab, you will be able to:
- Understand general database concept
- Receive accounts for Application Express and SQL Schema
- Login to Application Express
- Load the schema script
- Distribute the APEX guide to students (Oracle Application Express Student Guide)
Tools/Software:
To accomplish this session, a student should have:
- A computer with internet connection
- Application Express account provided by the teacher
o The link that they need to visit are:
▪ https://iacademy.oracle.com (or use search engine and enter
“application express login”)
For example, if KFU will create a database, the tables that it may want to keep are those about
students, teachers, and courses. The students table may contain columns such as student ID,
name, address, specialization, and GPA. Among these columns, the student ID is the best
primary key as every student has a unique one. One row in this table could be the set of values
216141188, Ali AlOwa, Hofuf, Information Systems, and 4.8. See the table students below.
There are different types of database but the focus in this course is the Relational Database.
Do Activity No. 1.
2) SQL Schema Sample
To get you ready with the different activities a sample SQL_SCHEMA.sql file will be
provided to you by your instructor. Remember where you placed it as we will get
back to it later. We will use “SQL Schema ERD and Table Designs” file in Lab 6.
Step 2. The first time you log, you will have to change your password which should be at
least 6 characters with a combination of letters, numeric and special characters.
Step 3. Remember the SQL_SCHEMA.sql file that you extracted from a zip file you
downloaded in the previous section? Make sure you know where it is located in your
computer. Click “SQL Workshop”.
Step 6. Click “Choose File” and browse to the location of SQL_SCHEMA.sql and select it. Add
a Script Name “SQL add all tables”. Leave “File Character Set” as default (Unicode
UTF-8), and click “Upload”.
Step 7. You will see the script listed. Along its line click the “Run” icon on the far right.
Don’t be alarmed if you see 38 errors because the DROP TABLE statement was used to tables
that didn’t exist yet. If after using the database for a while and you found the need to run the
script again to restore the tables, you will not see these errors anymore.
Deliverables:
At the end of this session, students are expected to:
- Complete the activity
- Login successfully to Apex.
- Have proof of successfully loading the SQL schema to your account.
Lab Activities:
Activity No. 1
1. What other tables do you think should KFU keep? Name at least three.
2. Select one of the tables you mentioned above and identify at least three columns.
Write them below.
Courses Table: This table can store information about the courses offered at KFU. It may
include columns such as course ID, course name, department, credits, and instructor.
The course ID can serve as the primary key to uniquely identify each course.