SlideShare a Scribd company logo
1 of 3
Download to read offline
(c) Instytut Informatyki Politechniki Poznańskiej 1
Rozdział 1
Wprowadzenie do baz danych
(c) Instytut Informatyki Politechniki Poznańskiej 2
Model danych
Obiekty świata Obiekty modelu danych
Relacja A
Relacja B
Klasa obiektów A
Klasa obiektów B
rzeczywistego
Klasa obiektów C
danych
?
(c) Instytut Informatyki Politechniki Poznańskiej 3
Funkcje systemu zarządzania bazą danych
Wymagania
• spójność bazy danych
po awarii
• trwałość danych
• wielodostęp
• poufność danych
• wydajność
• rozproszenie danych
Funkcje SZBD
• odtwarzanie bazy danych
• archiwizacja bazy danych
• zarządzanie współbieżnością
transakcji
• identyfikacja użytkowników,
autoryzacja dostępu,
szyfrowanie danych, kontrola
dostępu
• fizyczne struktury danych,
optymalizacja zapytań
• dwufazowe zatwierdzanie
transakcji, replikacja danych
(c) Instytut Informatyki Politechniki Poznańskiej 4
Architektura
systemu
bazy
danych
System
Zarządzania
Bazą Danych
Narzędzia
SQL*Forms
Baza danych
Schemat
Narzędzia
SQL*Report
Aplikacja
raport
Aplikacja
formatka 1
Aplikacja
formatka 2
Użytkownicy końcowi (naiwni)
Administrator
Użytkownik
zaawansowany
Programiści
SQL
4GL
Interfejs
użytkownika
Dane
Narzędzia
SQL*Plus
Serwer
aplikacji
Aplikacja
C/C++
Aplikacja
J2EE
JDBC
OCI
Aplikacja
WWW
Aplikacja
iSQL*Plus
(c) Instytut Informatyki Politechniki Poznańskiej 5
Relacyjny model danych
Historia
Podstawy teoretyczne:
• E.Codd: „A Relational Model for Large Shared Data
Banks”, rok 1970
Projekty badawcze (lata siedemdziesiąte):
• IBM System R, SEQUEL (1978)
• Berkley Ingres
Produkty komercyjne (lata osiemdziesiąte):
• Oracle (1979), Ingres (1979), DB2 (1982), Sybase, Informix,
SQL Server
• Paradox, dBase
• Postgres, MySQL
Standard:
• SQL:2003
(c) Instytut Informatyki Politechniki Poznańskiej
Model relacyjny
Baza danych
Struktury Dane
Operacje
Ograniczenia
integralnościowe
6
(c) Instytut Informatyki Politechniki Poznańskiej
Nazewnictwo
Relacja
PRACOWNICY
KONOPKA ASYSTENT 220 1-10-1993 480
NAZWISKO ETAT ZATRUDNIONY PLACA_POD
ID_PRAC
rekord/
krotka
nazwa relacji
nazwa atrybutu
atrybut
{ASYSTENT, ADIUNKT, PROFESOR}
dziedzina
7 (c) Instytut Informatyki Politechniki Poznańskiej 8
Podejście relacyjne
Własności bazy danych
• Widziana jako zbiór relacji
• Nazwy relacji nie mogą się
powtarzać
• Operatory: selekcja, projekcja,
iloczyn kartezjański, połączenie,
suma, przecięcie, różnica
• Dane nie są powiązane za pomocą
żadnych wskaźników, powiązania
między danymi tylko przez
porównywanie wartości atrybutów
• Nieproceduralny język
komunikowania się z bazą danych
• Użytkownik nie określa sposobu
dostępu do danych i nie zna ich
fizycznej organizacji
Własności relacji
• W relacji nie ma żadnych
powtarzających się krotek
• W relacji nie ma atrybutów o
powtarzających się nazwach
• Kolejność krotek w relacji
jest całkowicie nieokreślona
• Wartościami atrybutów są
dane atomowe
• Krotki są identyfikowane
tylko i wyłącznie na
podstawie wartości
atrybutów, lokalizacja krotki
nie ma żadnego wpływu na
tożsamość krotki
Schemat ćwiczebny
(c) Instytut Informatyki Politechniki Poznańskiej 9

More Related Content

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

01Wstep.pdf

  • 1. (c) Instytut Informatyki Politechniki Poznańskiej 1 Rozdział 1 Wprowadzenie do baz danych (c) Instytut Informatyki Politechniki Poznańskiej 2 Model danych Obiekty świata Obiekty modelu danych Relacja A Relacja B Klasa obiektów A Klasa obiektów B rzeczywistego Klasa obiektów C danych ? (c) Instytut Informatyki Politechniki Poznańskiej 3 Funkcje systemu zarządzania bazą danych Wymagania • spójność bazy danych po awarii • trwałość danych • wielodostęp • poufność danych • wydajność • rozproszenie danych Funkcje SZBD • odtwarzanie bazy danych • archiwizacja bazy danych • zarządzanie współbieżnością transakcji • identyfikacja użytkowników, autoryzacja dostępu, szyfrowanie danych, kontrola dostępu • fizyczne struktury danych, optymalizacja zapytań • dwufazowe zatwierdzanie transakcji, replikacja danych (c) Instytut Informatyki Politechniki Poznańskiej 4 Architektura systemu bazy danych System Zarządzania Bazą Danych Narzędzia SQL*Forms Baza danych Schemat Narzędzia SQL*Report Aplikacja raport Aplikacja formatka 1 Aplikacja formatka 2 Użytkownicy końcowi (naiwni) Administrator Użytkownik zaawansowany Programiści SQL 4GL Interfejs użytkownika Dane Narzędzia SQL*Plus Serwer aplikacji Aplikacja C/C++ Aplikacja J2EE JDBC OCI Aplikacja WWW Aplikacja iSQL*Plus
  • 2. (c) Instytut Informatyki Politechniki Poznańskiej 5 Relacyjny model danych Historia Podstawy teoretyczne: • E.Codd: „A Relational Model for Large Shared Data Banks”, rok 1970 Projekty badawcze (lata siedemdziesiąte): • IBM System R, SEQUEL (1978) • Berkley Ingres Produkty komercyjne (lata osiemdziesiąte): • Oracle (1979), Ingres (1979), DB2 (1982), Sybase, Informix, SQL Server • Paradox, dBase • Postgres, MySQL Standard: • SQL:2003 (c) Instytut Informatyki Politechniki Poznańskiej Model relacyjny Baza danych Struktury Dane Operacje Ograniczenia integralnościowe 6 (c) Instytut Informatyki Politechniki Poznańskiej Nazewnictwo Relacja PRACOWNICY KONOPKA ASYSTENT 220 1-10-1993 480 NAZWISKO ETAT ZATRUDNIONY PLACA_POD ID_PRAC rekord/ krotka nazwa relacji nazwa atrybutu atrybut {ASYSTENT, ADIUNKT, PROFESOR} dziedzina 7 (c) Instytut Informatyki Politechniki Poznańskiej 8 Podejście relacyjne Własności bazy danych • Widziana jako zbiór relacji • Nazwy relacji nie mogą się powtarzać • Operatory: selekcja, projekcja, iloczyn kartezjański, połączenie, suma, przecięcie, różnica • Dane nie są powiązane za pomocą żadnych wskaźników, powiązania między danymi tylko przez porównywanie wartości atrybutów • Nieproceduralny język komunikowania się z bazą danych • Użytkownik nie określa sposobu dostępu do danych i nie zna ich fizycznej organizacji Własności relacji • W relacji nie ma żadnych powtarzających się krotek • W relacji nie ma atrybutów o powtarzających się nazwach • Kolejność krotek w relacji jest całkowicie nieokreślona • Wartościami atrybutów są dane atomowe • Krotki są identyfikowane tylko i wyłącznie na podstawie wartości atrybutów, lokalizacja krotki nie ma żadnego wpływu na tożsamość krotki
  • 3. Schemat ćwiczebny (c) Instytut Informatyki Politechniki Poznańskiej 9