SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
12/4/2013
1
Database Basics
Good database design will get you through poor 
programming better than good programming will get you 
through poor database design….
Database Systems
• A database system consists 
of
• Data (the database)
• Software
• Hardware
• Users
• We focus mainly on the 
software
• Database systems allow 
users to
• Store
• Update
• Retrieve
• Organise
• Protect
their data.
DATABASE MANAGEMENT SYSTEMS
• A database management system (DBMS) is 
software that permits an organization to centralize 
data, manage them efficiently, and provide access 
to the stored data by application programs.
• The DBMS relieves the programmer or end user 
from the task of understanding where and how 
the data are actually stored by separating the 
logical and physical views of the data
DBMS (Continued)
• The logical view presents data as they would be 
perceived by end users or business specialists, 
whereas the physical view shows how data are 
actually organized and  structured on physical 
storage media.
• The database management software makes the 
physical database available for different logical 
views required by users
12/4/2013
2
How a DBMS Solves the Problems of the Traditional
File Environment
• A DBMS reduces data redundancy and 
inconsistency by minimizing isolated files in which 
the same data are repeated. 
• The DBMS uncouples programs and data, enabling 
data to stand on their own. Access and availability 
of information will be increased and program 
development and maintenance costs reduces.
Relational DBMS
• Relational databases represent data as two‐
dimensional tables (called relations). 
• Tables may be referred to as files. 
• Each table contains data on an entity and its 
attributes.
Relational Database Definitions
• Entity: Object, Concept or event (subject)
• Attribute: a Characteristic of an entity
• Row or Record: the specific characteristics of one 
entity
• Table: a collection of records
• Database: a collection of tables
12/4/2013
3
Database Tables
• Tables represent entities
• Tables are always named in the singular, such as: 
Vehicle, Order, Grade, etc.
• Tables in database jargon are “flat files”, dBase or 
Spreadsheet like..
Attributes
• Characteristics of an entity
• Examples:
• Vehicle (VIN, color, make, model, mileage)
• Student (SSN, Fname, Lname, Address)
• Fishing License (Type, Start_date, End_date)
Database Views
• A View is an individual’s picture of a database.  It 
can be composed of many tables, unbeknownst to 
the user.
• It’s a simplification of a complex data model
• It provides a measure of database security
• Views are useful, primarily for READ‐only users and are 
not always safe for CREATE, UPDATE, and DELETE.
12/4/2013
4
Object‐Oriented DBMS
• Many applications today and in the future require 
databases that can store and retrieve not only 
structured numbers and characters but also 
drawings, images, photographs, voice, and full‐
motion video. 
• DBMS designed for organizing structured data into 
rows and columns are not well suited to handling 
graphics based or multimedia applications. 
• Object‐oriented databases are better suited
• for this purpose.
Sample Query
Find the names and street addresses of those 
MovieStars who stay in the city “Columbus”:
select MovieStar.name, 
MovieStar.address.street
from   MovieStar
where MovieStar.address.city = “Columbus”;
Databases in the Cloud
• Cloud computing providers offer database 
management services, but these services typically 
have less functionality than their on‐premises 
counterparts.
• Primary customer base for cloud‐based data 
management consists of Web focused start‐ups or 
small to medium‐sized businesses looking for 
database capabilities at a lower price than a 
standard relational DBMS.
Data Model: What’s a model?
• A data model is a representation of reality
• It’s used to define the storage and manipulation of 
a data base.
• Data Models have two components:
• Structure: the structure of the data stored within
• Operations: Facilities for manipulation of the data.
12/4/2013
5
Capabilities of database 
management systems
• DBMS includes capabilities and tools for organizing, 
managing, and accessing the data in the database. 
• The most important are its 
• data definition language,
• data dictionary, and 
• data manipulation language.
Structured Query Language
• The most prominent data manipulation language 
today is Structured Query Language SQL.
DDL,MDL,DCL
• Data Definition Language (DDL) statements are used to 
define the database structure or schema. Some examples:
• CREATE ‐ to create objects in the database
• ALTER ‐ alters the structure of the database
• DROP ‐ delete objects from the database
• TRUNCATE ‐ remove all records from a table, including all spaces 
allocated for the records are removed
• COMMENT ‐ add comments to the data dictionary
• RENAME ‐ rename an object
DDL,MDL,DCL
• Data Manipulation Language (DML) statements are used for 
managing data within schema objects. Some examples:
• SELECT ‐ retrieve data from the a database
• INSERT ‐ insert data into a table
• UPDATE ‐ updates existing data within a table
• DELETE ‐ deletes all records from a table, the space for the records 
remain
• CALL ‐ call a PL/SQL subprogram
• LOCK TABLE ‐ control concurrency
12/4/2013
6
DDL,MDL,DCL
• Data Control Language (DCL) statements. Some examples:
• GRANT ‐ gives user's access privileges to database
• REVOKE ‐ withdraw access privileges given with the GRANT 
command
CRUD !
• Refers to the most common Database Operations:
• Create 
• Read
• Update
• Delete
• Operations occur at all levels: Tables, Records, 
Columns
Types of Keys
PRIMARY KEY
 Serves as the row level addressing mechanism in the relational 
database model. 
 It can be formed through the combination of several items.
FOREIGN KEY
 A column or set of columns within a table that are required to 
match those of a primary key of a second table.
These keys are used to form a RELATIONAL JOIN ‐ thereby 
connecting row to row across the individual tables.
Relational Database Management System
(RDBMS)
Name Address Parcel #
John Smith 18 Lawyers Dr. 756554
T. Brown 14 Summers Tr. 887419
Table A
Table B
Parcel # Assessed Value
887419 152,000
446397 100,000
12/4/2013
7
Constructing Join Relationships
• One‐to‐many relationships include the Primary Key 
of the ‘one’ table and a Foreign Key (FK) in the 
‘many’ table.
Other common terms
• Cardinality: one‐to‐one, one‐to‐many, many‐to‐
many relationships
• Optionality: the relationship is either mandatory or 
optional.
Database Normalization
• Normalization: The process of structuring data to 
minimize duplication and inconsistencies. 
• The process usually involves breaking down a single 
Table into two or more tables and defining 
relationships between those tables. 
• Normalization is usually done in stages, with each 
stage applying more rigorous rules to the types of 
information which can be stored in a table. 
Database Users
• End users 
• Use the database system to 
achieve some goal
• Application developers 
• Write software to allow end 
users to interface with the 
database system
• Database Administrator 
(DBA)
• Designs & manages the 
database system
12/4/2013
8
Common Functions of DBA
• Database Planning 
• Standards, procedures, enforcement
• Requirements Gathering and Conceptual Design
• Logical Design 
• Physical Design and Implementation
• Testing and Debugging
• Operations and Maintenance
• Training and Support
DBA’s Responsibilities
DBA Activity DBA Service
Organizing Policies, Procedures,
Standards
Testing Data Security, Privacy, Integrity
Monitoring Data backup and Recovery
Data Security, Privacy and Integrity
• User Access Management
• Define each user to the database
• Operating System Level
• Database Level
• Assign Passwords
• Define User Groups
• Assign Access Privileges
• Read
• Write
• Delete
• Physical Access Control
• View Definitions
• Protect and Control the Scope of the Data that is accessible to a user
• DBMS utilities access control
• Limit the use of query and reporting tools
• DBMS usage Monitoring
• Audit Logs
(More difficult in distributed databases)
Data Backup and Recovery
• Disaster Management 
• Periodic Data and Application Backups
• Full
• Incremental
• Concurrent
• Proper Backup Identification
• Convenient and safe backup storage
• Physical protection of hardware and software
• Personal Access Control to the software of a database 
installation

Más contenido relacionado

La actualidad más candente

Database Administrator - Job Scope
Database Administrator - Job ScopeDatabase Administrator - Job Scope
Database Administrator - Job ScopeCacheWorks©
 
DBA Tips and Tricks - Presentation
DBA Tips and Tricks - PresentationDBA Tips and Tricks - Presentation
DBA Tips and Tricks - PresentationFrancisco Alvarez
 
CH10-Managing a Database
CH10-Managing a DatabaseCH10-Managing a Database
CH10-Managing a DatabaseSukanya Ben
 
Relational
RelationalRelational
Relationaldieover
 
Document Management System Overview
Document Management System OverviewDocument Management System Overview
Document Management System OverviewSaif Enterprise
 
The Whats, Whys and Hows of Database as a Service
The Whats, Whys and Hows of Database as a ServiceThe Whats, Whys and Hows of Database as a Service
The Whats, Whys and Hows of Database as a ServicePeak 10
 
Capitalizing on the New Era of In-memory Computing
Capitalizing on the New Era of In-memory ComputingCapitalizing on the New Era of In-memory Computing
Capitalizing on the New Era of In-memory ComputingInfosys
 
Fluid Data Storage:Driving Flexibility in the Data Center
Fluid Data Storage:Driving Flexibility in the Data Center Fluid Data Storage:Driving Flexibility in the Data Center
Fluid Data Storage:Driving Flexibility in the Data Center Kingfin Enterprises Limited
 
CH005
CH005CH005
CH005JUC
 
Ten Ways For DBA's To Save Time
Ten Ways For DBA's To Save TimeTen Ways For DBA's To Save Time
Ten Ways For DBA's To Save TimeMichael Findling
 
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...Christoph Adler
 

La actualidad más candente (19)

Database Administrator - Job Scope
Database Administrator - Job ScopeDatabase Administrator - Job Scope
Database Administrator - Job Scope
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
DBA Tips and Tricks - Presentation
DBA Tips and Tricks - PresentationDBA Tips and Tricks - Presentation
DBA Tips and Tricks - Presentation
 
CH10-Managing a Database
CH10-Managing a DatabaseCH10-Managing a Database
CH10-Managing a Database
 
Relational
RelationalRelational
Relational
 
Document Management System Overview
Document Management System OverviewDocument Management System Overview
Document Management System Overview
 
The Whats, Whys and Hows of Database as a Service
The Whats, Whys and Hows of Database as a ServiceThe Whats, Whys and Hows of Database as a Service
The Whats, Whys and Hows of Database as a Service
 
Capitalizing on the New Era of In-memory Computing
Capitalizing on the New Era of In-memory ComputingCapitalizing on the New Era of In-memory Computing
Capitalizing on the New Era of In-memory Computing
 
Case mis ch05
Case mis ch05Case mis ch05
Case mis ch05
 
Fluid Data Storage:Driving Flexibility in the Data Center
Fluid Data Storage:Driving Flexibility in the Data Center Fluid Data Storage:Driving Flexibility in the Data Center
Fluid Data Storage:Driving Flexibility in the Data Center
 
Case mis ch02
Case mis ch02Case mis ch02
Case mis ch02
 
Csc 303
Csc 303 Csc 303
Csc 303
 
DBArtisan XE6 Datasheet
DBArtisan XE6 DatasheetDBArtisan XE6 Datasheet
DBArtisan XE6 Datasheet
 
CH005
CH005CH005
CH005
 
Ten Ways For DBA's To Save Time
Ten Ways For DBA's To Save TimeTen Ways For DBA's To Save Time
Ten Ways For DBA's To Save Time
 
Data ware house
Data ware houseData ware house
Data ware house
 
Mirroring and replications
Mirroring and replicationsMirroring and replications
Mirroring and replications
 
AD ChildDomains.ppt
AD ChildDomains.pptAD ChildDomains.ppt
AD ChildDomains.ppt
 
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
 

Destacado

Database Introduction by Luke Lonergan
Database Introduction by Luke LonerganDatabase Introduction by Luke Lonergan
Database Introduction by Luke LonerganLuke Lonergan
 
Microsoft SQL Server Seven Deadly Sins of Database Design
Microsoft SQL Server Seven Deadly Sins of Database DesignMicrosoft SQL Server Seven Deadly Sins of Database Design
Microsoft SQL Server Seven Deadly Sins of Database DesignMark Ginnebaugh
 
5 g wireless technology
5 g wireless technology5 g wireless technology
5 g wireless technologynandhini anbu
 
5 g wireless_technology
5 g wireless_technology5 g wireless_technology
5 g wireless_technologycswati
 
Networking devices
Networking devicesNetworking devices
Networking devicesRavi KC
 
Telecommunication trends in 2013 and beyond
Telecommunication trends in 2013 and beyondTelecommunication trends in 2013 and beyond
Telecommunication trends in 2013 and beyondAhmad Yokasano
 
Trends In Telecommunication Services
Trends In Telecommunication ServicesTrends In Telecommunication Services
Trends In Telecommunication ServicesChetan Kumar S
 
Trends In Telecommunications
Trends In TelecommunicationsTrends In Telecommunications
Trends In TelecommunicationsMarlon Jamera
 
Basics of telecommunication and networking
Basics of telecommunication and networkingBasics of telecommunication and networking
Basics of telecommunication and networkingMilan Padariya
 
5 g –wireless technology
5 g –wireless technology5 g –wireless technology
5 g –wireless technologySushil Sudake
 
Cyber security
Cyber securityCyber security
Cyber securitySiblu28
 
Cyber security presentation
Cyber security presentationCyber security presentation
Cyber security presentationBijay Bhandari
 
Cybercrime.ppt
Cybercrime.pptCybercrime.ppt
Cybercrime.pptAeman Khan
 

Destacado (17)

H base key design
H base key designH base key design
H base key design
 
Database Introduction by Luke Lonergan
Database Introduction by Luke LonerganDatabase Introduction by Luke Lonergan
Database Introduction by Luke Lonergan
 
Database intro
Database introDatabase intro
Database intro
 
Microsoft SQL Server Seven Deadly Sins of Database Design
Microsoft SQL Server Seven Deadly Sins of Database DesignMicrosoft SQL Server Seven Deadly Sins of Database Design
Microsoft SQL Server Seven Deadly Sins of Database Design
 
5 g wireless technology
5 g wireless technology5 g wireless technology
5 g wireless technology
 
5 g wireless_technology
5 g wireless_technology5 g wireless_technology
5 g wireless_technology
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Telecommunication trends in 2013 and beyond
Telecommunication trends in 2013 and beyondTelecommunication trends in 2013 and beyond
Telecommunication trends in 2013 and beyond
 
Trends In Telecommunication Services
Trends In Telecommunication ServicesTrends In Telecommunication Services
Trends In Telecommunication Services
 
Trends In Telecommunications
Trends In TelecommunicationsTrends In Telecommunications
Trends In Telecommunications
 
Basics of telecommunication and networking
Basics of telecommunication and networkingBasics of telecommunication and networking
Basics of telecommunication and networking
 
5 g –wireless technology
5 g –wireless technology5 g –wireless technology
5 g –wireless technology
 
Cyber security
Cyber securityCyber security
Cyber security
 
Cyber security presentation
Cyber security presentationCyber security presentation
Cyber security presentation
 
5g ppt new
5g ppt new5g ppt new
5g ppt new
 
5G tecnology
5G tecnology5G tecnology
5G tecnology
 
Cybercrime.ppt
Cybercrime.pptCybercrime.ppt
Cybercrime.ppt
 

Similar a Data base

Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01ITNet
 
Unit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptUnit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptDeepakShakya39
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)Dilawar Khan
 
Chapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxChapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxMaxamedAbiib1
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdfMuniraALmogren
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDivyaKS12
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsKunal Anand
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.pptChSheraz3
 
databas (2).pdf
databas (2).pdfdatabas (2).pdf
databas (2).pdfJanoakre
 
Databases And Database Management System
Databases And Database Management  SystemDatabases And Database Management  System
Databases And Database Management SystemGhanshyam Patel
 
Difference between File system and DBMS.pptx
Difference between File system and DBMS.pptxDifference between File system and DBMS.pptx
Difference between File system and DBMS.pptxMuhammadHamzaKhan58
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMSSarmad Ali
 
Database management system1
Database management system1Database management system1
Database management system1jamwal85
 

Similar a Data base (20)

Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01
 
Unit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .pptUnit-I mech for studendts for btech .ppt
Unit-I mech for studendts for btech .ppt
 
dbms
dbmsdbms
dbms
 
Database
DatabaseDatabase
Database
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
Chapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptxChapter 1 Database Systems.pptx
Chapter 1 Database Systems.pptx
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdf
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptx
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
databas (2).pdf
databas (2).pdfdatabas (2).pdf
databas (2).pdf
 
Chapter1
Chapter1Chapter1
Chapter1
 
Databases And Database Management System
Databases And Database Management  SystemDatabases And Database Management  System
Databases And Database Management System
 
Difference between File system and DBMS.pptx
Difference between File system and DBMS.pptxDifference between File system and DBMS.pptx
Difference between File system and DBMS.pptx
 
Assign 1
Assign 1Assign 1
Assign 1
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
Dbms9
Dbms9Dbms9
Dbms9
 
Database management system1
Database management system1Database management system1
Database management system1
 
Lecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.pptLecture 1 =Unit 1 Part 1.ppt
Lecture 1 =Unit 1 Part 1.ppt
 

Data base