DBT544 Course Outline

Course Code: DBT544
Course Name: DB2
Offered Date: Winter - 2022 | Other versions
Print Outline
Course Description:
This subject provides an in-depth look at DB2 Universal Database for the AS/400, the most widely used multi-user relational database in the world. This subject will start with a brief look at the native interface which includes logical, physical and field reference files and then focus on the SQL/400 interface which includes Data Definition Language, Data Manipulation Language, Embedded SQL/400, Stored Procedures and the SQL Procedure language, Journaling and Commitment Control and ODBC. Advanced topics include Database Constraints, File Overrides, Trigger Programs, Database security, Backup and Recovery, the Universal Database and Operations Navigator.
Credit Status: 1 credit in the CPA Programs.
Prerequisite: DBS301
Mode of Instruction: 2 hours interactive lecture per week.
2 hours lab time per week.
Learning Outcomes:
1. Create a User Defined Function

2. Create and use field reference files

3. Create files with Data Description Specifications and SQL

4. Use Operations Navigator to manage objects in a database

5. Access Database files from a COBOL program or RPGIV program

6. Use security mechanisms to control access to a DB2/400 Database

7. Embed SQL/400 DML statements in a program

8. Code a COBOL or RPGIV trigger program

9. Preserve transaction integrity in a multi-user DB environment using table and row locking and Commit/Rollback techniques

10. Use Interactive SQL on the AS/400

11. Work with journalling, Backup and Recovery

12. Use SQL Procedural Language and Create a Stored Procedure
Topic Outline:
  • Review of prerequisite material - 5%
  • DB2/400 basic concepts - 5%
  • Physical and Logical Files - 5%
    •         Field Reference Files
    •         Advanced Logical File features - Deriving new fields, multiformat and join logical files
    •         Accessing Database Files from High Level Languages
    •         Using OPNQRYF to select and order records
  • SQL/400 Data Definition Language - 10%
    •         Creating a Collection or Schema with RUNSQLSTM
  • SQL/400 Data Manipulation Language - 5%
    •         Retreiving Rows with the Select Statement
    •         The Insert, Update, and Delete Statements
    •         Concurrent Updates and the Lock Table Statement
  • Embedded SQL/400 in a COBOL or RPGIV program - 20%
    •         embedded SQL Error Handling
    •         Static Statements
    •         Dynamic Embedded SQL Statements
    •         SQL Cursors Not scrollable, Scrollable and Dynamic
    •         Host Structures and Arrays
  • SQL Procedure Language - 10%
    •         Create Procedure Statement
    •         Declarations and Assigment Statements
    •         Conditional processing with IF and CASE Statements
    •         Loop Control Structures with LOOP, WHILE, REPEAT and FOR
    •         Creating an SPL User Defined Function
  • Query Management - 10%
    •         Query Management queries
    •         Passing parameters to QM queries
    •         Query Management Forms
  • DB2/400 Advanced Features - 10%
    •         Level Check Considerations
    •         Database Constraints
    •         File Overrides
    •         Object and Record Locks
    •         Journals, Journal Receivers, WRKJRN, Applying and Removing Journaled changes
    •         Trigger Programs
    •         Distributed Database
    •         DDM, DRDA, ODBC
    •         Database Security
    •         Backup and Recovery
    •         Check Constraints
    •         UDB and Binary Large Objects, User Defined Fucntions, User Defined Data Types and Data Links
  • Operations Navigator - 5%
    •         Managing objects in a database with operations navigator
    •         Using Operations Navigator with integrity constraints, check restraints, triggers and SQL stored procedures
  • Documenting the Data Base Model - 5%
    •         DSPFD, DSPFFD, DSPDBR, ANZDBF, ANZDBFKEY
  • Journaling and Commitment Control - 10%
    •         Journals and Journal Receivers
    •         Applying and Removing Journaled changes
    •         Transaction Integrity and the Commit and Rollback Statements
    •         Using Commit and Rollback in a RPGIV or COBOL multitransaction update
Prescribed Text(s):
None
Reference Material:
SQL/400 Developer's Guide by Paul Conte and Mike Cravitz published by 29th Street Press; isbn 1-882419-70-7 (found through the Seneca library)
Supply:
None
Promotion Policy:
To obtain a credit in this subject, a student must:
  •     Achieve a grade of 55% or better on the final exam
  •     Achieve a weighted average of 55% or better for the tests and final exam
  •     Achieve a grade of 55% or better on the overall course
  •     Achieve a grade of 55% or better on all labs


http://www.senecacollege.ca/about/policies/student-progression-and-promotion-policy.html

Grading Policyhttp://www.senecacollege.ca/about/policies/grading-policy.html

A+90%  to  100%
A80%  to  89%
B+75%  to  79%
B70%  to  74%
C+65%  to  69%
C60%  to  64%
D+55%  to  59%
D50%  to  54%
F0%    to  49% (Not a Pass)
OR
EXCExcellent
SATSatisfactory
UNSATUnsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecacollege.ca/about/policies/academics-and-student-services.html) or at Seneca's Registrar's Offices. (https://www.senecacollege.ca/registrar.html).


Evaluation:

Mid-term Test 35%
Final Exam 35%
Assignments 30%
Approved By:
Mary-Lynn Manton
Cheating and Plagiarism:
Seneca upholds a learning community that values academic integrity, honesty, fairness, trust, respect, responsibility and courage. These values enhance Seneca's commitment to deliver high-quality education and teaching excellence, while supporting a positive learning environment. Ensure that you are aware of Seneca's Academic Integrity Policy which can be found at: http://www.senecacollege.ca/about/policies/academic-integrity-policy.html Review section 2 of the policy for details regarding approaches to supporting integrity. Section 2.3 and Appendix B of the policy describe various sanctions that can be applied, if there is suspected academic misconduct (e.g., contract cheating, cheating, falsification, impersonation or plagiarism).

Please visit the Academic Integrity website http://open2.senecac.on.ca/sites/academic-integrity/for-students to understand and learn more about how to prepare and submit work so that it supports academic integrity, and to avoid academic misconduct.
Discrimination and Harassment:
All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at student.conduct@senecacollege.ca.
Accomodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Accessibility Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.