Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture1: Principles of Databases Prepared by L. Nouf Almujally 1 Ref. Chapter1.

Similar presentations


Presentation on theme: "Lecture1: Principles of Databases Prepared by L. Nouf Almujally 1 Ref. Chapter1."— Presentation transcript:

1 Lecture1: Principles of Databases Prepared by L. Nouf Almujally 1 Ref. Chapter1

2 Chapter1 - Objectives Meaning of the term database. Meaning of the term Database Management System (DBMS). Major components of the DBMS environment. Users involved in the DBMS environment. Advantages and disadvantages of DBMSs. Lecture1 2

3 Data Data : Known facts that can be recorded and have an implicit meaning. ex)What does 3421 means? facts about entities Person's name, Phone, address, email, picture, … Student's ID, name, subjects taken, results,… Product's name, description, manufacturer, price,… Book's publisher, author, title,… facts about relationships BADER lives in Riyadh Nora bought a book from university books shop on 01/03/11 Notice the different types of data numbers, strings, text, date, time, timestamp, Text, picture, audio, video, graphics … Lecture1 3

4 Data versus Information Data itself has no meaning without meta data which describes data For example : 1012674, 28761, 153 Does not give us any information, but knowing the meta data that explains data : Staff_ID, Phone Number, room number Information : is the data you process in a manner that makes it meaningful. Lecture1 4 Staff_IDPhone Numberroom number 101267428761153

5 Database A collection of logically related data, including metadata - ”data about data”, that describes data Data: name city birth Metadata: name - string, length<10 Khaled Dammam 01/01/70 city – string, length<15 Sara Abha 01/03/01 birth – date, format DD/MM/YY Data is what you store in database Information is what you retrieve from database Two examples all data required for the management of student records in a university. all data required for the management of books and borrowers in a library. Lecture1 5

6 Types of Databases Numeric and Textual Databases Multimedia Databases Geographic Information Systems (GIS) Data Warehouses Real-time and Active Databases Lecture1 6

7 Example of a Database (with a Conceptual Data Model) Mini-world: Some part of the real world about which data is stored in a database. Mini-world for the example: Part of a UNIVERSITY environment. Some mini-world entities: STUDENTs COURSEs SECTIONs (of COURSEs) Grade Report Prerequiests Lecture1 7

8 8

9 9

10 Example of a Database (with a Conceptual Data Model) Some mini-world relationships: SECTIONs are of specific COURSEs STUDENTs take SECTIONs COURSEs have prerequisite COURSEs INSTRUCTORs teach SECTIONs COURSEs are offered by DEPARTMENTs STUDENTs major in DEPARTMENTs Lecture1 10

11 Lecture1 11

12 Database Management Systems Database Management System (DBMS) A software system that enables users to create, maintain, and query the database Most DBMSs now have facilities that make data access fast, reliable, secure and easy Example DBMSs Oracle MS Access MySQL Lecture1 12

13 Functions of a DBMS Data Storage, Retrieval, and Update. Storing data definition in the form of data dictionary Transaction Support Transaction: executing program or process that includes one or more database accesses, such as reading or updating of DB record Concurrency Control Services. Recovery Services. Security protection against unauthorized access. Maintain and develop the database system Lecture1 13

14 Application programs Database Application : is a collection of data and the programs that allow the manipulation of these data to meet the information needs by an enterprise. built on top of DBMS to satisfy end users special requirements and preference Lecture1 14

15 Examples of Database Applications Purchases from the supermarket PNU Student Registration PNU Library Saudi Airline Reservation Purchases using your credit card Booking a holiday at the travel agents Using the Internet Lecture1 15

16 Database System Database System: The DBMS software together with the data itself. Sometimes, the applications are also included. (DB + DBMS + Application program) To manage large amounts of data Efficiently Reliably Securely conveniently Lecture1 16

17 Lecture1 17

18 Database Approach Lecture1 18

19 Main Characteristics of the Database Approach Self-describing nature of a database system: A DBMS catalog stores the description of the database. The description is called meta-data). This allows the DBMS software to work with different databases. Insulation between programs and data: Called program- data independence. Allows changing data storage structures and operations without having to change the DBMS access programs (application program). Lecture1 19

20 Main Characteristics of the Database Approach Data Abstraction: A data model is used to hide storage details and present the users with a conceptual view of the database. Support of multiple views of the data: Each user may see a different view of the database, which describes only the data of interest to that user. Lecture1 20

21 Views Allows each user to have his or her own view of the database. A view is essentially some subset of the database. Benefits: Reduce complexity Provide a level of security Present a consistent, unchanging picture of the structure of the database, even if the underlying database is changed 21 Pearson Education © 2009

22 Main Characteristics of the Database Approach Sharing of data and multiuser transaction processing : allowing a set of concurrent users to retrieve and to update the database. Concurrency control within the DBMS guarantees that each transaction is correctly executed or completely aborted. OLTP (Online Transaction Processing) is a major part of database applications. Lecture1 22

23 Advantages of Using the Database Approach Controlling redundancy in data storage and in development and maintenance efforts. Sharing of data among multiple users. Restricting unauthorized access to data. Providing persistent storage for program Objects Providing Storage Structures for efficient Query Processing Lecture1 28

24 Advantages of Using the Database Approach Providing backup and recovery services. Providing multiple interfaces to different classes of users. Representing complex relationships among data. Enforcing integrity constraints on the database. Lecture1 29

25 Disadvantages of Database Approach Complexity Cost of DBMS Additional hardware costs Performance Higher impact of a failure Lecture1 25

26 Components of DBMS Environment Hardware Can range from a PC to a network of computers. Software DBMS, operating system, network software (if necessary) and also the application programs. Data Procedures Instructions and rules that should be applied to the design and use of the database and DBMS. People Lecture1 26

27 Components of DBMS Environment 27

28 Lecture1 28 DBMS App Program DB User Requirement Procedure DBA Naïve End User Application programmer DB Designer System Analyst Sophisticated End User H/W Design Communicate Manage Write Program Use Database Users

29 System Analyst: Determine the user requirements and develop the system specifications. Database Designers: responsible for defining the content, the structure, the constraints, and functions or transactions against the database. Application Programmer Implement programs meet the end user needs Test, debug, document, and maintain transactions Lecture1 25

30 Database Users Database administrators: responsible for: authorizing access to the database coordinating and monitoring the DB use acquiring software, and hardware resources monitoring efficiency of operations. Lecture1 25

31 Database Users End-users: they use the data for queries, reports and some of them actually update the database content. Categories of End-users:  Naïve : (Queries / modifies data) -they make up a large section of the end-user population. -They use previously well-defined functions in the form of “canned transactions” against the database. -Examples: bank-tellers or reservation clerks.  Sophisticated : Forms requests in a database query language. Lecture1 25

32 Lecture1 32

33 References “Database Systems: A Practical Approach to Design, Implementation and Management.” Thomas Connolly, Carolyn Begg. 5 th Edition, Addison-Wesley, 2009. Fundamentals of Database Systems", Ramez Elmasri, Shamkant B. Navathe, Addison Wesley, The Latest Edition. Lecture1 33


Download ppt "Lecture1: Principles of Databases Prepared by L. Nouf Almujally 1 Ref. Chapter1."

Similar presentations


Ads by Google