1 / 20

Introduction

Introduction. Objectives. After completing this lesson, you should be able to do the following: List the features of Oracle 11g. Discuss the theoretical and physical aspects of a relational database. Describe the Oracle implementation of the RDBMS and ORDBMS.

ila-riley
Download Presentation

Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction

  2. Objectives • After completing this lesson, you should be able to do the following: • List the features of Oracle 11g. • Discuss the theoretical and physical aspects of a relational database. • Describe the Oracle implementation of the RDBMS and ORDBMS. • Understand the goals of the course.

  3. Goals of the Course • After completing this course, you should be able to do the following: • Retrieve row and column data from tables with the SELECT statement. • Create reports of sorted and restricted data. • Employ SQL functions to generate and retrieve customized data. • Run data manipulation language (DML) statement to update data in Oracle. • Obtain metadata by querying the dictionary views.

  4. Relational and Object Relational Database Management Systems • Relational model and object relational • model, both supported by Oracle. • User-defined data types and objects. • Fully compatible with relational database • Support of multimedia and large objects • High-quality database server features.

  5. Strategy and Analysis Design Build and Document Transition Production System Development Life Cycle

  6. Database Electronic spreadsheet Filing cabinet Data Storage on Different Media SALGRADE GRADE LOSAL HISAL --------- --------- --------- 1 700 1200 2 1201 1400 3 1401 2000 4 2001 3000 5 3001 9999 DEPT DEPTNO DNAME LOC --------- -------------- ---------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON

  7. Relational Database Concept • Dr. E.F. Codd proposed the relational model for database systems in 1970. • It is the basis for the relational database management system (RDBMS). • The relational model consists of the following: • Collection of objects or relations • Set of operators to act on the relations • Data integrity for accuracy and consistency

  8. Table Name: EMPLOYEES Table Name: DEPARTMENTS EMPNO ENAME JOB DEPTNO 7839 KING PRESIDENT 10 7698 BLAKE MANAGER 30 7782 CLARK MANAGER 10 7566 JONES MANAGER 20 DEPTNO DNAME LOC 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON Definition of a Relational Database • A relational database is a collection of relations or two-dimensional tables. Database

  9. Server Data Models Model ofsystemin client’smind Entity model ofclient’s model Table modelof entity model Tables on disk

  10. Entity Relationship Model • Create an entity relationship diagram from business specifications or narratives • Scenario • “. . . Assign one or more employees to a department . . .” • “. . . Some departments do not yet have assigned employees . . .” DEPARTMENT #* number * name o location EMPLOYEE #* number * name o job title assigned to composed of

  11. Entity Relationship Modeling Conventions Entity Soft box Singular, unique name Uppercase Synonym in parentheses Attribute Singular name Lowercase Mandatory marked with “*” Optional marked with “o” DEPARTMENT #* number * name o location EMPLOYEE #* number * name o job title assigned to composed of Unique Identifier (UID) Primary marked with “#” Secondary marked with “(#)”

  12. 2 3 4 6 5 1 Relational Database Terminology EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ------------- ------------ --------------------- -------- ---------------- ----------- -------------- ----------- 7839 KING PRESIDENT 17-NOV-81 5000 10 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 10 7566 JONES MANAGER 7839 02-APR-81 2975 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7900 JAMES CLERK 7698 03-DEC-81 950 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7369 SMITH CLERK 7902 17-DEC-80 800 20 7788 SCOTT ANALYST 7566 09-DEC-82 3000 20 7876 ADAMS CLERK 7788 12-JAN-83 1100 20 7934 MILLER CLERK 7782 23-JAN-82 1300 10

  13. Primary key Foreign key Primary key Relating Multiple Tables • Each row of data in a table is uniquely identified by a primary key (PK). • You can logically relate data from multiple tables using foreign keys (FK). Table Name: EMP Table Name: DEPT EMPNO ENAME JOB DEPTNO 7839 KING PRESIDENT 10 7698 BLAKE MANAGER 30 7782 CLARK MANAGER 10 7566 JONES MANAGER 20 DEPTNO DNAME LOC 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON

  14. Relational Database Properties • A relational database • Can be accessed and modified by executing structured query language (SQL) statements • Contains a collection of tables with no physical pointers • Uses a set of operators

  15. SQL statementis entered Statement is sent to database SQL> SELECT loc 2 FROM dept; Database Data is displayed LOC ------------- NEW YORK DALLAS CHICAGO BOSTON Communicating with a RDBMS Using SQL

  16. Relational Database Management System Server User tables Data dictionary

  17. Oracle Internet Platform Clients Any mail client Any browser Any FTP client Internet applications SQL Business logic and data Presentation and business logic Development tools System management PL/SQL Application servers Databases Java Network services

  18. SQL Statements Data manipulation language (DML) • SELECT • INSERT • UPDATE • DELETE • CREATE • ALTER • DROP • RENAME • TRUNCATE • COMMIT • ROLLBACK • SAVEPOINT • GRANT • REVOKE Data definition language (DDL) Transaction control Data control language (DCL)

  19. Tables Used in the Course EMPLOYEES EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO --------- ---------- --------- --------- --------- --------- --------- --------- 7839 KING PRESIDENT 17-NOV-81 5000 10 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 10 7566 JONES MANAGER 7839 02-APR-81 2975 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7900 JAMES CLERK 7698 03-DEC-81 950 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7369 SMITH CLERK 7902 17-DEC-80 800 20 7788 SCOTT ANALYST 7566 09-DEC-82 3000 20 7876 ADAMS CLERK 7788 12-JAN-83 1100 20 7934 MILLER CLERK 7782 23-JAN-82 1300 10 DEPTNO DNAME LOC --------- -------------- ---------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON GRADE LOSAL HISAL --------- --------- --------- 1 700 1200 2 1201 1400 3 1401 2000 4 2001 3000 5 3001 9999 DEPARTMENTS JOB_GRADES

  20. Summary • The database is based on the object relational database management system. • Relational databases are composed of relations, managed by relational operations, and governed by data integrity constraints. • The Oracle Server allows you to store and manage information by using the SQL language and PL/SQL engine.

More Related