210 likes | 350 Views
Enhanced Guide to Oracle8i. Chapter 1: Client/Server Databases and the Oracle8i Relational Database. File-Based Data Processing. Each application has data files that correspond to only that application. Checking Account Data Files. Auto Loan Data Files. Checking Account Programs.
E N D
Enhanced Guide to Oracle8i Chapter 1: Client/Server Databases and the Oracle8i Relational Database
File-Based Data Processing • Each application has data files that correspond to only that application Checking Account Data Files Auto Loan Data Files Checking Account Programs Auto Loan Programs Savings Account Data Files Savings Account Programs
Problems with File-Based Processing • Each application must have duplicate programs for file-handling operations • Duplicate data exists in each application’s data files • Duplicate data can become inconsistent
Database Processing • All applications interface with the same data in a central database Checking Account Programs Database Management System Database Auto Loan Programs Savings Account Programs
Database Processing • Database Management System (DBMS) provides central set of common functions to manage data: • Insert • Update • Retrieve • View • Oracle is a relational, client/server DBMS
Types of Database Systems • Hierarchical: data relationships are maintained using pointers • Pointers create links using physical hardware locations • Relational: data relationships are maintained using shared data values called key fields
Hierarchical Databases Parent Data Pointer Child Data
Relational Databases • Data is organized in tables • Columns (fields) represent different data categories • Rows (records) contain actual data values Fields Records
Relational Table Keys • Primary key: uniquely identifies a record • Must be unique for each record • Cannot be NULL (undefined) • Candidate key: field that could be used as a primary key • Surrogate key: numeric field created for the purpose of being the primary key
Relational Table Keys • Foreign key • Field in a table that is a primary key in another table • Creates a relationship between the 2 tables • Foreign key values must exactly match
Table Relationships Primary Key Foreign Key
Composite Key • Primary key made of the combination of two or more fields Composite Key
Database System Architectures • Mainframe databases • Both DBMS and applications run on mainframe computer • Users access database and applications using terminals • Personal databases • Both DBMS and applications run on user’s workstation • Client/server databases • DBMS runs on central server • Applications run on user’s (client) workstation
Advantages of Client/Server Databases • Handling server and client failures • Processing transactions • Handling high data volumes • Providing security • Servicing multiple simultaneous users
The Oracle8i Environment(Server Side) • Enterprise Edition (on central DB server) Or • Oracle Personal Edition • Personal database that acts just like a client/server database
The Oracle8i Environment:Client Side • SQL*Plus & PL/SQL • Developer • Procedure Builder • Form Builder • Report Builder • Graphics Builder • Project Builder
Case Study Databases • Clearwater Traders • Inventory and sales order system • Northwoods University • Student registration system • Software Experts • Project management system
Clearwater Traders Database Tables • CUSTOMER • CUST_ORDER • ORDER_SOURCE • ITEM • CATEGORY • INVENTORY • SHIPMENT • SHIPMENT_LINE • ORDER_LINE • COLOR
Northwoods University Database Tables • STUDENT • FACULTY • LOCATION • TERM • COURSE • COURSE_SECTION • ENROLLMENT
Software Experts Database Tables • CONSULTANT • SKILL • CONSULTANT_SKILL • CLIENT • PROJECT • PROEJCT_SKILL • PROJECT_CONSULTANT • EVALUATION