SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Chapter 1: Introduction




        Database System Concepts, 1 st Ed.
©VNS InfoSolutions Private Limited, Varanasi(UP), India 221002
        See www.vnsispl.com for conditions on re-use
Chapter 1: Introduction
             s Purpose of Database Systems
             s View of Data
             s Database Languages
             s Relational Databases
             s Database Design
             s Object-based and semistructured databases
             s Data Storage and Querying
             s Transaction Management
             s Database Architecture
             s Database Users and Administrators
             s Overall Structure
             s History of Database Systems




Database System Concepts – 1 st Ed           1.2   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Database Management System
                                (DBMS)
            s DBMS contains information about a particular enterprise
                  q   Collection of interrelated data
                  q   Set of programs to access the data
                  q   An environment that is both convenient and efficient to use
            s Database Applications:
                  q   Banking: all transactions
                  q   Airlines: reservations, schedules
                  q   Universities: registration, grades
                  q   Sales: customers, products, purchases
                  q   Online retailers: order tracking, customized recommendations
                  q   Manufacturing: production, inventory, orders, supply chain
                  q   Human resources: employee records, salaries, tax deductions
            s Databases touch all aspects of our lives



Database System Concepts – 1 st Ed                  1.3    ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Purpose of Database Systems
            s In the early days, database applications were built directly on top of
                 file systems
            s Drawbacks of using file systems to store data:
                   q   Data redundancy and inconsistency
                           Multiple file formats, duplication of information in different files
                   q   Difficulty in accessing data
                           Need to write a new program to carry out each new task
                   q   Data isolation — multiple files and formats
                   q   Integrity problems
                           Integrity constraints (e.g. account balance > 0) become
                            “buried” in program code rather than being stated explicitly
                           Hard to add new constraints or change existing ones




Database System Concepts – 1 st Ed                      1.4   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Purpose of Database Systems
                                  (Cont.)
            s Drawbacks of using file systems (cont.)
                   q   Atomicity of updates
                           Failures may leave database in an inconsistent state with partial
                            updates carried out
                           Example: Transfer of funds from one account to another should
                            either complete or not happen at all
                   q   Concurrent access by multiple users
                           Concurrent accessed needed for performance
                           Uncontrolled concurrent accesses can lead to inconsistencies
                             – Example: Two people reading a balance and updating it at the
                               same time
                   q   Security problems
                           Hard to provide user access to some, but not all, data
            s Database systems offer solutions to all the above problems




Database System Concepts – 1 st Ed                    1.5   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Levels of Abstraction
            s Physical level: describes how a record (e.g., customer) is stored.
            s Logical level: describes data stored in database, and the relationships
                 among the data.
                       type customer = record
                                       customer_id : string;
                                       customer_name : string;
                                       customer_street : string;
                                       customer_city : integer;
                                     end;
            s View level: application programs hide details of data types. Views can
                 also hide information (such as an employee’s salary) for security
                 purposes.




Database System Concepts – 1 st Ed                       1.6   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
View of Data

           An architecture for a database system




Database System Concepts – 1 st Ed         1.7   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Instances and Schemas
            s    Similar to types and variables in programming languages
            s    Schema – the logical structure of the database
                   q   Example: The database consists of information about a set of customers and
                       accounts and the relationship between them)
                   q   Analogous to type information of a variable in a program
                   q   Physical schema: database design at the physical level
                   q   Logical schema: database design at the logical level
            s    Instance – the actual content of the database at a particular point in time
                   q   Analogous to the value of a variable
            s    Physical Data Independence – the ability to modify the physical schema
                 without changing the logical schema
                   q   Applications depend on the logical schema
                   q   In general, the interfaces between the various levels and components should be
                       well defined so that changes in some parts do not seriously influence others.




Database System Concepts – 1 st Ed                     1.8    ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Data Models
             s A collection of tools for describing
                   q Data
                   q Data relationships
                   q Data semantics
                   q Data constraints

             s Relational model
             s Entity-Relationship data model (mainly for database design)
             s Object-based data models (Object-oriented and Object-relational)
             s Semistructured data model (XML)
             s Other older models:
                   q   Network model
                   q   Hierarchical model




Database System Concepts – 1 st Ed                1.9   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Data Manipulation Language (DML)
            s Language for accessing and manipulating the data organized by the
                 appropriate data model
                  q   DML also known as query language
            s Two classes of languages
                  q   Procedural – user specifies what data is required and how to get
                      those data
                  q   Declarative (nonprocedural) – user specifies what data is
                      required without specifying how to get those data
            s SQL is the most widely used query language




Database System Concepts – 1 st Ed               1.10   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Data Definition Language (DDL)
            s Specification notation for defining the database schema
                  Example:           create table account (
                                           account-number char(10),
                                           balance          integer)
            s DDL compiler generates a set of tables stored in a data dictionary
            s Data dictionary contains metadata (i.e., data about data)
                  q   Database schema
                  q   Data storage and definition language
                           Specifies the storage structure and access methods used
                  q   Integrity constraints
                           Domain constraints
                           Referential integrity (references constraint in SQL)
                           Assertions
                  q   Authorization



Database System Concepts – 1 st Ed                   1.11   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Relational Model
                                                                                            Attributes
            s Example of tabular data in the relational model




Database System Concepts – 1 st Ed             1.12   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
A Sample Relational Database




Database System Concepts – 1 st Ed   1.13   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
SQL
            s SQL: widely used non-procedural language
                   q   Example: Find the name of the customer with customer-id 192-83-7465
                        select customer.customer_name
                        from     customer
                        where customer.customer_id = ‘192-83-7465’
                   q   Example: Find the balances of all accounts held by the customer with
                       customer-id 192-83-7465
                        select account.balance
                        from     depositor, account
                        where depositor.customer_id = ‘192-83-7465’ and
                                 depositor.account_number = account.account_number
            s Application programs generally access databases through one of
                   q   Language extensions to allow embedded SQL
                   q   Application program interface (e.g., ODBC/JDBC) which allow SQL
                       queries to be sent to a database



Database System Concepts – 1 st Ed                1.14   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Database Design
            The process of designing the general structure of the database:


            s Logical Design – Deciding on the database schema. Database design
                 requires that we find a “good” collection of relation schemas.
                   q   Business decision – What attributes should we record in the
                       database?
                   q   Computer Science decision – What relation schemas should we
                       have and how should the attributes be distributed among the various
                       relation schemas?


            s Physical Design – Deciding on the physical layout of the database




Database System Concepts – 1 st Ed                 1.15   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
The Entity-Relationship Model
            s Models an enterprise as a collection of entities and relationships
                  q   Entity: a “thing” or “object” in the enterprise that is distinguishable
                      from other objects
                           Described by a set of attributes
                  q   Relationship: an association among several entities
            s Represented diagrammatically by an entity-relationship diagram:




Database System Concepts – 1 st Ed                    1.16   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Object-Relational Data Models
             s Extend the relational data model by including object orientation and
                 constructs to deal with added data types.
             s Allow attributes of tuples to have complex types, including non-atomic
                 values such as nested relations.
             s Preserve relational foundations, in particular the declarative access to
                 data, while extending modeling power.
             s Provide upward compatibility with existing relational languages.




Database System Concepts – 1 st Ed                  1.17   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
XML: Extensible Markup Language
            s Defined by the WWW Consortium (W3C)
            s Originally intended as a document markup language not a
                 database language
            s The ability to specify new tags, and to create nested tag structures
                 made XML a great way to exchange data, not just documents
            s XML has become the basis for all new generation data interchange
                 formats.
            s A wide variety of tools is available for parsing, browsing and
                 querying XML documents/data




Database System Concepts – 1 st Ed              1.18   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Storage Management
            s Storage manager is a program module that provides the interface
                 between the low-level data stored in the database and the application
                 programs and queries submitted to the system.
            s The storage manager is responsible to the following tasks:
                  q   Interaction with the file manager
                  q   Efficient storing, retrieving and updating of data
            s Issues:
                  q   Storage access
                  q   File organization
                  q   Indexing and hashing




Database System Concepts – 1 st Ed                  1.19   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Query Processing

            1. Parsing and translation
            2. Optimization
            3. Evaluation




Database System Concepts – 1 st Ed       1.20   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Query Processing (Cont.)
            s Alternative ways of evaluating a given query
                   q   Equivalent expressions
                   q   Different algorithms for each operation
            s Cost difference between a good and a bad way of evaluating a query can
                 be enormous
            s Need to estimate the cost of operations
                   q   Depends critically on statistical information about relations which the
                       database must maintain
                   q   Need to estimate statistics for intermediate results to compute cost of
                       complex expressions




Database System Concepts – 1 st Ed                  1.21   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Transaction Management
            s A transaction is a collection of operations that performs a single
                 logical function in a database application
            s Transaction-management component ensures that the database
                 remains in a consistent (correct) state despite system failures (e.g.,
                 power failures and operating system crashes) and transaction failures.
            s Concurrency-control manager controls the interaction among the
                 concurrent transactions, to ensure the consistency of the database.




Database System Concepts – 1 st Ed                1.22   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Database Architecture

            The architecture of a database systems is greatly influenced by
             the underlying computer system on which the database is running:
            s Centralized
            s Client-server
            s Parallel (multi-processor)
            s Distributed




Database System Concepts – 1 st Ed             1.23   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Database Users
            Users are differentiated by the way they expect to interact with
            the system
            s Application programmers – interact with system through DML
                 calls
            s Sophisticated users – form requests in a database query language
            s Specialized users – write specialized database applications that do
                 not fit into the traditional data processing framework
            s Naï ve users – invoke one of the permanent application programs
                 that have been written previously
                  q   Examples, people accessing database over the web, bank tellers,
                      clerical staff




Database System Concepts – 1 st Ed                 1.24   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Database Administrator
            s Coordinates all the activities of the database system; the
                 database administrator has a good understanding of the
                 enterprise’s information resources and needs.
            s Database administrator's duties include:
                   q   Schema definition
                   q   Storage structure and access method definition
                   q   Schema and physical organization modification
                   q   Granting user authority to access the database
                   q   Specifying integrity constraints
                   q   Acting as liaison with users
                   q   Monitoring performance and responding to changes in
                       requirements




Database System Concepts – 1 st Ed                    1.25   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Overall System Structure




Database System Concepts – 1 st Ed     1.26   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
History of Database Systems
            s 1950s and early 1960s:
                  q   Data processing using magnetic tapes for storage
                           Tapes provide only sequential access
                  q   Punched cards for input
            s Late 1960s and 1970s:
                  q   Hard disks allow direct access to data
                  q   Network and hierarchical data models in widespread use
                  q   Ted Codd defines the relational data model
                           Would win the ACM Turing Award for this work
                           IBM Research begins System R prototype
                           UC Berkeley begins Ingres prototype
                  q   High-performance (for the era) transaction processing




Database System Concepts – 1 st Ed                  1.27   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
History (cont.)
            s 1980s:
                  q   Research relational prototypes evolve into commercial systems
                           SQL becomes industrial standard
                  q   Parallel and distributed database systems
                  q   Object-oriented database systems
            s 1990s:
                  q   Large decision support and data-mining applications
                  q   Large multi-terabyte data warehouses
                  q   Emergence of Web commerce
            s 2000s:
                  q   XML and XQuery standards
                  q   Automated database administration




Database System Concepts – 1 st Ed                 1.28   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
End of Chapter 1




        Database System Concepts, 1 st Ed.
©VNS InfoSolutions Private Limited, Varanasi(UP), India 221002
        See www.vnsispl.com for conditions on re-use
Figure 1.4




Database System Concepts – 1 st Ed      1.30   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
Figure 1.7




Database System Concepts – 1 st Ed      1.31   ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100

Weitere ähnliche Inhalte

Was ist angesagt?

VNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appAVNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appAsriprasoon
 
Transition from relational to NoSQL Philly DAMA Day
Transition from relational to NoSQL Philly DAMA DayTransition from relational to NoSQL Philly DAMA Day
Transition from relational to NoSQL Philly DAMA DayDipti Borkar
 
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012Dipti Borkar
 
Introduction to NoSQL and Couchbase
Introduction to NoSQL and CouchbaseIntroduction to NoSQL and Couchbase
Introduction to NoSQL and CouchbaseDipti Borkar
 
Couchbase at the academic bisilim, Turkey
Couchbase at the academic bisilim, Turkey Couchbase at the academic bisilim, Turkey
Couchbase at the academic bisilim, Turkey sharonyb
 

Was ist angesagt? (7)

Lee oracle
Lee oracleLee oracle
Lee oracle
 
VNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appAVNSISPL_DBMS_Concepts_appA
VNSISPL_DBMS_Concepts_appA
 
Transition from relational to NoSQL Philly DAMA Day
Transition from relational to NoSQL Philly DAMA DayTransition from relational to NoSQL Philly DAMA Day
Transition from relational to NoSQL Philly DAMA Day
 
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
 
Introduction to NoSQL and Couchbase
Introduction to NoSQL and CouchbaseIntroduction to NoSQL and Couchbase
Introduction to NoSQL and Couchbase
 
Couchbase at the academic bisilim, Turkey
Couchbase at the academic bisilim, Turkey Couchbase at the academic bisilim, Turkey
Couchbase at the academic bisilim, Turkey
 
Overview of NoSQL
Overview of NoSQLOverview of NoSQL
Overview of NoSQL
 

Andere mochten auch

Statistics And the Query Optimizer
Statistics And the Query OptimizerStatistics And the Query Optimizer
Statistics And the Query OptimizerGrant Fritchey
 
Copper: A high performance workflow engine
Copper: A high performance workflow engineCopper: A high performance workflow engine
Copper: A high performance workflow enginedmoebius
 
Overview of stinger interactive query for hive
Overview of stinger   interactive query for hiveOverview of stinger   interactive query for hive
Overview of stinger interactive query for hiveDavid Kaiser
 
Buffer management --database buffering
Buffer management --database buffering Buffer management --database buffering
Buffer management --database buffering julia121214
 
Lect 21 components_of_database_management_system
Lect 21 components_of_database_management_systemLect 21 components_of_database_management_system
Lect 21 components_of_database_management_systemnadine016
 
Indexing and Query Optimizer (Richard Kreuter)
Indexing and Query Optimizer (Richard Kreuter)Indexing and Query Optimizer (Richard Kreuter)
Indexing and Query Optimizer (Richard Kreuter)MongoDB
 
L8 components and properties of dbms
L8  components and properties of dbmsL8  components and properties of dbms
L8 components and properties of dbmsRushdi Shams
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12Md. Mahedi Mahfuj
 
Dbms role advantages
Dbms role advantagesDbms role advantages
Dbms role advantagesjeancly
 
Database management functions
Database management functionsDatabase management functions
Database management functionsyhen06
 
17. Recovery System in DBMS
17. Recovery System in DBMS17. Recovery System in DBMS
17. Recovery System in DBMSkoolkampus
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMSkoolkampus
 

Andere mochten auch (16)

Ch2
Ch2Ch2
Ch2
 
Statistics And the Query Optimizer
Statistics And the Query OptimizerStatistics And the Query Optimizer
Statistics And the Query Optimizer
 
Copper: A high performance workflow engine
Copper: A high performance workflow engineCopper: A high performance workflow engine
Copper: A high performance workflow engine
 
Overview of stinger interactive query for hive
Overview of stinger   interactive query for hiveOverview of stinger   interactive query for hive
Overview of stinger interactive query for hive
 
Buffer management --database buffering
Buffer management --database buffering Buffer management --database buffering
Buffer management --database buffering
 
Lect 21 components_of_database_management_system
Lect 21 components_of_database_management_systemLect 21 components_of_database_management_system
Lect 21 components_of_database_management_system
 
Indexing and Query Optimizer (Richard Kreuter)
Indexing and Query Optimizer (Richard Kreuter)Indexing and Query Optimizer (Richard Kreuter)
Indexing and Query Optimizer (Richard Kreuter)
 
L8 components and properties of dbms
L8  components and properties of dbmsL8  components and properties of dbms
L8 components and properties of dbms
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12
 
Dbms role advantages
Dbms role advantagesDbms role advantages
Dbms role advantages
 
Dml and ddl
Dml and ddlDml and ddl
Dml and ddl
 
Database management functions
Database management functionsDatabase management functions
Database management functions
 
2 tier and 3 tier architecture
2 tier and 3 tier architecture2 tier and 3 tier architecture
2 tier and 3 tier architecture
 
17. Recovery System in DBMS
17. Recovery System in DBMS17. Recovery System in DBMS
17. Recovery System in DBMS
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 

Ähnlich wie Vnsispl dbms concepts_ch1

Introduction To DBMS
Introduction To DBMSIntroduction To DBMS
Introduction To DBMSrafat_mentor
 
VNSISPL_DBMS_Concepts_ch20
VNSISPL_DBMS_Concepts_ch20VNSISPL_DBMS_Concepts_ch20
VNSISPL_DBMS_Concepts_ch20sriprasoon
 
VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8sriprasoon
 
VNSISPL_DBMS_Concepts_ch9
VNSISPL_DBMS_Concepts_ch9VNSISPL_DBMS_Concepts_ch9
VNSISPL_DBMS_Concepts_ch9sriprasoon
 
VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6sriprasoon
 
VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23sriprasoon
 
VNSISPL_DBMS_Concepts_ch25
VNSISPL_DBMS_Concepts_ch25VNSISPL_DBMS_Concepts_ch25
VNSISPL_DBMS_Concepts_ch25sriprasoon
 
VNSISPL_DBMS_Concepts_ch7
VNSISPL_DBMS_Concepts_ch7VNSISPL_DBMS_Concepts_ch7
VNSISPL_DBMS_Concepts_ch7sriprasoon
 
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptxDATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptxLaxmi Pandya
 
Database Concepts 101
Database Concepts 101Database Concepts 101
Database Concepts 101Amit Garg
 
VNSISPL_DBMS_Concepts_ch12
VNSISPL_DBMS_Concepts_ch12VNSISPL_DBMS_Concepts_ch12
VNSISPL_DBMS_Concepts_ch12sriprasoon
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data baseHaqnawaz Ch
 
Vnsispl dbms concepts_ch3
Vnsispl dbms concepts_ch3Vnsispl dbms concepts_ch3
Vnsispl dbms concepts_ch3sriprasoon
 
VNSISPL_DBMS_Concepts_ch2
VNSISPL_DBMS_Concepts_ch2VNSISPL_DBMS_Concepts_ch2
VNSISPL_DBMS_Concepts_ch2sriprasoon
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfparveen204931475
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to DatabaseSiti Ismail
 

Ähnlich wie Vnsispl dbms concepts_ch1 (20)

Introduction To DBMS
Introduction To DBMSIntroduction To DBMS
Introduction To DBMS
 
VNSISPL_DBMS_Concepts_ch20
VNSISPL_DBMS_Concepts_ch20VNSISPL_DBMS_Concepts_ch20
VNSISPL_DBMS_Concepts_ch20
 
VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8VNSISPL_DBMS_Concepts_ch8
VNSISPL_DBMS_Concepts_ch8
 
VNSISPL_DBMS_Concepts_ch9
VNSISPL_DBMS_Concepts_ch9VNSISPL_DBMS_Concepts_ch9
VNSISPL_DBMS_Concepts_ch9
 
Ch1
Ch1Ch1
Ch1
 
Ch1
Ch1Ch1
Ch1
 
VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6VNSISPL_DBMS_Concepts_ch6
VNSISPL_DBMS_Concepts_ch6
 
VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23VNSISPL_DBMS_Concepts_ch23
VNSISPL_DBMS_Concepts_ch23
 
VNSISPL_DBMS_Concepts_ch25
VNSISPL_DBMS_Concepts_ch25VNSISPL_DBMS_Concepts_ch25
VNSISPL_DBMS_Concepts_ch25
 
VNSISPL_DBMS_Concepts_ch7
VNSISPL_DBMS_Concepts_ch7VNSISPL_DBMS_Concepts_ch7
VNSISPL_DBMS_Concepts_ch7
 
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptxDATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
 
Database Concepts 101
Database Concepts 101Database Concepts 101
Database Concepts 101
 
VNSISPL_DBMS_Concepts_ch12
VNSISPL_DBMS_Concepts_ch12VNSISPL_DBMS_Concepts_ch12
VNSISPL_DBMS_Concepts_ch12
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data base
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
 
Vnsispl dbms concepts_ch3
Vnsispl dbms concepts_ch3Vnsispl dbms concepts_ch3
Vnsispl dbms concepts_ch3
 
VNSISPL_DBMS_Concepts_ch2
VNSISPL_DBMS_Concepts_ch2VNSISPL_DBMS_Concepts_ch2
VNSISPL_DBMS_Concepts_ch2
 
oracle intro
oracle introoracle intro
oracle intro
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 

Mehr von sriprasoon

VNSISPL_DBMS_Concepts_AppC
VNSISPL_DBMS_Concepts_AppCVNSISPL_DBMS_Concepts_AppC
VNSISPL_DBMS_Concepts_AppCsriprasoon
 
VNSISPL_DBMS_Concepts_ch24
VNSISPL_DBMS_Concepts_ch24VNSISPL_DBMS_Concepts_ch24
VNSISPL_DBMS_Concepts_ch24sriprasoon
 
VNSISPL_DBMS_Concepts_ch21
VNSISPL_DBMS_Concepts_ch21VNSISPL_DBMS_Concepts_ch21
VNSISPL_DBMS_Concepts_ch21sriprasoon
 
VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17sriprasoon
 
VNSISPL_DBMS_Concepts_ch16
VNSISPL_DBMS_Concepts_ch16VNSISPL_DBMS_Concepts_ch16
VNSISPL_DBMS_Concepts_ch16sriprasoon
 
VNSISPL_DBMS_Concepts_ch15
VNSISPL_DBMS_Concepts_ch15VNSISPL_DBMS_Concepts_ch15
VNSISPL_DBMS_Concepts_ch15sriprasoon
 
VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14sriprasoon
 
VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11sriprasoon
 
VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5sriprasoon
 
Inventory Management
Inventory ManagementInventory Management
Inventory Managementsriprasoon
 

Mehr von sriprasoon (10)

VNSISPL_DBMS_Concepts_AppC
VNSISPL_DBMS_Concepts_AppCVNSISPL_DBMS_Concepts_AppC
VNSISPL_DBMS_Concepts_AppC
 
VNSISPL_DBMS_Concepts_ch24
VNSISPL_DBMS_Concepts_ch24VNSISPL_DBMS_Concepts_ch24
VNSISPL_DBMS_Concepts_ch24
 
VNSISPL_DBMS_Concepts_ch21
VNSISPL_DBMS_Concepts_ch21VNSISPL_DBMS_Concepts_ch21
VNSISPL_DBMS_Concepts_ch21
 
VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17VNSISPL_DBMS_Concepts_ch17
VNSISPL_DBMS_Concepts_ch17
 
VNSISPL_DBMS_Concepts_ch16
VNSISPL_DBMS_Concepts_ch16VNSISPL_DBMS_Concepts_ch16
VNSISPL_DBMS_Concepts_ch16
 
VNSISPL_DBMS_Concepts_ch15
VNSISPL_DBMS_Concepts_ch15VNSISPL_DBMS_Concepts_ch15
VNSISPL_DBMS_Concepts_ch15
 
VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14VNSISPL_DBMS_Concepts_ch14
VNSISPL_DBMS_Concepts_ch14
 
VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11VNSISPL_DBMS_Concepts_ch11
VNSISPL_DBMS_Concepts_ch11
 
VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5VNSISPL_DBMS_Concepts_ch5
VNSISPL_DBMS_Concepts_ch5
 
Inventory Management
Inventory ManagementInventory Management
Inventory Management
 

Kürzlich hochgeladen

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Vnsispl dbms concepts_ch1

  • 1. Chapter 1: Introduction Database System Concepts, 1 st Ed. ©VNS InfoSolutions Private Limited, Varanasi(UP), India 221002 See www.vnsispl.com for conditions on re-use
  • 2. Chapter 1: Introduction s Purpose of Database Systems s View of Data s Database Languages s Relational Databases s Database Design s Object-based and semistructured databases s Data Storage and Querying s Transaction Management s Database Architecture s Database Users and Administrators s Overall Structure s History of Database Systems Database System Concepts – 1 st Ed 1.2 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 3. Database Management System (DBMS) s DBMS contains information about a particular enterprise q Collection of interrelated data q Set of programs to access the data q An environment that is both convenient and efficient to use s Database Applications: q Banking: all transactions q Airlines: reservations, schedules q Universities: registration, grades q Sales: customers, products, purchases q Online retailers: order tracking, customized recommendations q Manufacturing: production, inventory, orders, supply chain q Human resources: employee records, salaries, tax deductions s Databases touch all aspects of our lives Database System Concepts – 1 st Ed 1.3 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 4. Purpose of Database Systems s In the early days, database applications were built directly on top of file systems s Drawbacks of using file systems to store data: q Data redundancy and inconsistency  Multiple file formats, duplication of information in different files q Difficulty in accessing data  Need to write a new program to carry out each new task q Data isolation — multiple files and formats q Integrity problems  Integrity constraints (e.g. account balance > 0) become “buried” in program code rather than being stated explicitly  Hard to add new constraints or change existing ones Database System Concepts – 1 st Ed 1.4 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 5. Purpose of Database Systems (Cont.) s Drawbacks of using file systems (cont.) q Atomicity of updates  Failures may leave database in an inconsistent state with partial updates carried out  Example: Transfer of funds from one account to another should either complete or not happen at all q Concurrent access by multiple users  Concurrent accessed needed for performance  Uncontrolled concurrent accesses can lead to inconsistencies – Example: Two people reading a balance and updating it at the same time q Security problems  Hard to provide user access to some, but not all, data s Database systems offer solutions to all the above problems Database System Concepts – 1 st Ed 1.5 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 6. Levels of Abstraction s Physical level: describes how a record (e.g., customer) is stored. s Logical level: describes data stored in database, and the relationships among the data. type customer = record customer_id : string; customer_name : string; customer_street : string; customer_city : integer; end; s View level: application programs hide details of data types. Views can also hide information (such as an employee’s salary) for security purposes. Database System Concepts – 1 st Ed 1.6 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 7. View of Data An architecture for a database system Database System Concepts – 1 st Ed 1.7 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 8. Instances and Schemas s Similar to types and variables in programming languages s Schema – the logical structure of the database q Example: The database consists of information about a set of customers and accounts and the relationship between them) q Analogous to type information of a variable in a program q Physical schema: database design at the physical level q Logical schema: database design at the logical level s Instance – the actual content of the database at a particular point in time q Analogous to the value of a variable s Physical Data Independence – the ability to modify the physical schema without changing the logical schema q Applications depend on the logical schema q In general, the interfaces between the various levels and components should be well defined so that changes in some parts do not seriously influence others. Database System Concepts – 1 st Ed 1.8 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 9. Data Models s A collection of tools for describing q Data q Data relationships q Data semantics q Data constraints s Relational model s Entity-Relationship data model (mainly for database design) s Object-based data models (Object-oriented and Object-relational) s Semistructured data model (XML) s Other older models: q Network model q Hierarchical model Database System Concepts – 1 st Ed 1.9 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 10. Data Manipulation Language (DML) s Language for accessing and manipulating the data organized by the appropriate data model q DML also known as query language s Two classes of languages q Procedural – user specifies what data is required and how to get those data q Declarative (nonprocedural) – user specifies what data is required without specifying how to get those data s SQL is the most widely used query language Database System Concepts – 1 st Ed 1.10 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 11. Data Definition Language (DDL) s Specification notation for defining the database schema Example: create table account ( account-number char(10), balance integer) s DDL compiler generates a set of tables stored in a data dictionary s Data dictionary contains metadata (i.e., data about data) q Database schema q Data storage and definition language  Specifies the storage structure and access methods used q Integrity constraints  Domain constraints  Referential integrity (references constraint in SQL)  Assertions q Authorization Database System Concepts – 1 st Ed 1.11 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 12. Relational Model Attributes s Example of tabular data in the relational model Database System Concepts – 1 st Ed 1.12 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 13. A Sample Relational Database Database System Concepts – 1 st Ed 1.13 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 14. SQL s SQL: widely used non-procedural language q Example: Find the name of the customer with customer-id 192-83-7465 select customer.customer_name from customer where customer.customer_id = ‘192-83-7465’ q Example: Find the balances of all accounts held by the customer with customer-id 192-83-7465 select account.balance from depositor, account where depositor.customer_id = ‘192-83-7465’ and depositor.account_number = account.account_number s Application programs generally access databases through one of q Language extensions to allow embedded SQL q Application program interface (e.g., ODBC/JDBC) which allow SQL queries to be sent to a database Database System Concepts – 1 st Ed 1.14 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 15. Database Design The process of designing the general structure of the database: s Logical Design – Deciding on the database schema. Database design requires that we find a “good” collection of relation schemas. q Business decision – What attributes should we record in the database? q Computer Science decision – What relation schemas should we have and how should the attributes be distributed among the various relation schemas? s Physical Design – Deciding on the physical layout of the database Database System Concepts – 1 st Ed 1.15 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 16. The Entity-Relationship Model s Models an enterprise as a collection of entities and relationships q Entity: a “thing” or “object” in the enterprise that is distinguishable from other objects  Described by a set of attributes q Relationship: an association among several entities s Represented diagrammatically by an entity-relationship diagram: Database System Concepts – 1 st Ed 1.16 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 17. Object-Relational Data Models s Extend the relational data model by including object orientation and constructs to deal with added data types. s Allow attributes of tuples to have complex types, including non-atomic values such as nested relations. s Preserve relational foundations, in particular the declarative access to data, while extending modeling power. s Provide upward compatibility with existing relational languages. Database System Concepts – 1 st Ed 1.17 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 18. XML: Extensible Markup Language s Defined by the WWW Consortium (W3C) s Originally intended as a document markup language not a database language s The ability to specify new tags, and to create nested tag structures made XML a great way to exchange data, not just documents s XML has become the basis for all new generation data interchange formats. s A wide variety of tools is available for parsing, browsing and querying XML documents/data Database System Concepts – 1 st Ed 1.18 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 19. Storage Management s Storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system. s The storage manager is responsible to the following tasks: q Interaction with the file manager q Efficient storing, retrieving and updating of data s Issues: q Storage access q File organization q Indexing and hashing Database System Concepts – 1 st Ed 1.19 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 20. Query Processing 1. Parsing and translation 2. Optimization 3. Evaluation Database System Concepts – 1 st Ed 1.20 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 21. Query Processing (Cont.) s Alternative ways of evaluating a given query q Equivalent expressions q Different algorithms for each operation s Cost difference between a good and a bad way of evaluating a query can be enormous s Need to estimate the cost of operations q Depends critically on statistical information about relations which the database must maintain q Need to estimate statistics for intermediate results to compute cost of complex expressions Database System Concepts – 1 st Ed 1.21 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 22. Transaction Management s A transaction is a collection of operations that performs a single logical function in a database application s Transaction-management component ensures that the database remains in a consistent (correct) state despite system failures (e.g., power failures and operating system crashes) and transaction failures. s Concurrency-control manager controls the interaction among the concurrent transactions, to ensure the consistency of the database. Database System Concepts – 1 st Ed 1.22 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 23. Database Architecture The architecture of a database systems is greatly influenced by the underlying computer system on which the database is running: s Centralized s Client-server s Parallel (multi-processor) s Distributed Database System Concepts – 1 st Ed 1.23 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 24. Database Users Users are differentiated by the way they expect to interact with the system s Application programmers – interact with system through DML calls s Sophisticated users – form requests in a database query language s Specialized users – write specialized database applications that do not fit into the traditional data processing framework s Naï ve users – invoke one of the permanent application programs that have been written previously q Examples, people accessing database over the web, bank tellers, clerical staff Database System Concepts – 1 st Ed 1.24 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 25. Database Administrator s Coordinates all the activities of the database system; the database administrator has a good understanding of the enterprise’s information resources and needs. s Database administrator's duties include: q Schema definition q Storage structure and access method definition q Schema and physical organization modification q Granting user authority to access the database q Specifying integrity constraints q Acting as liaison with users q Monitoring performance and responding to changes in requirements Database System Concepts – 1 st Ed 1.25 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 26. Overall System Structure Database System Concepts – 1 st Ed 1.26 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 27. History of Database Systems s 1950s and early 1960s: q Data processing using magnetic tapes for storage  Tapes provide only sequential access q Punched cards for input s Late 1960s and 1970s: q Hard disks allow direct access to data q Network and hierarchical data models in widespread use q Ted Codd defines the relational data model  Would win the ACM Turing Award for this work  IBM Research begins System R prototype  UC Berkeley begins Ingres prototype q High-performance (for the era) transaction processing Database System Concepts – 1 st Ed 1.27 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 28. History (cont.) s 1980s: q Research relational prototypes evolve into commercial systems  SQL becomes industrial standard q Parallel and distributed database systems q Object-oriented database systems s 1990s: q Large decision support and data-mining applications q Large multi-terabyte data warehouses q Emergence of Web commerce s 2000s: q XML and XQuery standards q Automated database administration Database System Concepts – 1 st Ed 1.28 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 29. End of Chapter 1 Database System Concepts, 1 st Ed. ©VNS InfoSolutions Private Limited, Varanasi(UP), India 221002 See www.vnsispl.com for conditions on re-use
  • 30. Figure 1.4 Database System Concepts – 1 st Ed 1.30 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100
  • 31. Figure 1.7 Database System Concepts – 1 st Ed 1.31 ©VNS InfoSolutions Private Limited, Varanasi(UP), India 22100