The Database Management System (DBMS)
הוצג
17:15
מאגרי נתונים והמודל היחסיתי
לפני מאגרי הנתונים, כל תוכנה שמרה את הקבצים הפשוטים שלה — קובץ אחד לכל תוכנה. דמיין חנות. תוכנת המכירות, תוכנת החשבונית ותוכנת המשלוח…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| computer reservation system | A computer system that manages bookings for services such as flights. |
| shared file | A file that multiple users or programs can access and use. |
| DBMS/ˌdiː biː em ˈes/ | מערכת ניהול בסיסי נתונים |
| flat files/flæt faɪlz/ | Files storing records without the relational structure and linked-table management provided by a relational database system. |
| view/vjuː/ | מראה |
| redundancy/rɪˈdʌndənsi/ | Additional or repeated data, capacity or components beyond what is strictly necessary, sometimes provided for reliability. |
| inconsistency/ˌɪnkənˈsɪstənsi/ | A difference between stored copies of the same fact, so they cannot all be correct. |
| data independence | The ability to change data storage without changing the programs that use it. |
| backup/ˈbækʌp/ | גיבוי |
| Data management/ˈdeɪtə ˈmænɪdʒmənt/ | The DBMS controlling how the data is stored, organised, retrieved and updated, so that programs never touch the files directly. |
| data dictionary/ˈdeɪtə ˈdɪkʃənəri/ | מילון נתונים |
| table/ˈteɪbl/ | A collection of data organised into rows and columns. |
| field/fiːld/ | A named component of a record, with its own value and type. |
| data type/ˈdeɪtə taɪp/ | A classification of values that determines their representation and permitted operations. |
| key/kiː/ | A value used to identify or look up an associated item, such as a key in a dictionary or database. |
| relationship/rɪˈleɪʃənʃɪp/ | A connection between data in different database tables. |
| constraint/kənˈstreɪnt/ | A rule that limits what data can be stored in a database. |
| record/ˈrekɔːd/ | A stored collection of information about an item, person or event. |
| Data modelling/ˈdeɪtə ˈmɒdəlɪŋ/ | The process of defining data structures, including entities, attributes, keys and relationships. |
| logical schema/ˈlɒdʒɪkl ˈskiːmə/ | סקימה לוגית |
| entities/ˈentɪtiz/ | Distinct objects or concepts represented in a data model, such as customers or products. |
| attributes/ˈætrɪbjuːts/ | A named property or characteristic associated with an object, element or record. |
| E-R diagram | A diagram showing entities and the relationships between them. |
| physical storage | The devices and methods used to store data as bytes. |
| indexed/ˈɪndekst/ | Describes data organised with a separate structure that helps the database find records faster. |
| Data integrity/ˈdeɪtə ɪnˈteɡrɪti/ | The quality of data being correct and consistent throughout the database. |
| Data security/ˈdeɪtə sɪˈkjʊərɪti/ | The DBMS controls who may see and change what. Access rights are given to individual users or to groups, table by table, as read-only , read and write , or no access. |
| primary keys | Fields or groups of fields that uniquely identify records in a table. |
| null/nʌl/ | A marker showing that a field has no value. |
| referential integrity/ˌrefəˈrenʃl ɪnˈteɡrɪti/ | A rule requiring every foreign-key value to match an existing primary key. |
| foreign key/ˈfɒrən kiː/ | A field or group of fields that refers to a candidate key in another or the same database table. |
| validation constraints | Rules that check whether data is allowed before it is stored. |
| range/reɪndʒ/ | The set of values between an allowed minimum and maximum. |
| Access rights/ˈækses raɪts/ | Permissions that control what a user or group can see or change. |
| read-only | Describes permission to view data without changing it. |
| read and write | Describes permission to view and change data. |
| passwords | Secret strings of characters used to check a user's identity. |
| authenticate | To check that a user is who they claim to be. |
| encrypted/enˈkrɪptɪd/ | Changed into a form that cannot be understood without the correct key. |
| log/lɒɡ/ | A record of events and actions on a computer system. |
| account/əˈkaʊnt/ | A user identity in a system, with its own login details and permissions. |
| administrator/ədˈmɪnɪstreɪtə/ | A person who manages a system and controls users' access rights. |
| transaction/trænˈsækʃn/ | עסקה |
| Concurrent access/kənˈkʌrənt ˈækses/ | The use of a database by multiple users at the same time. |
| Concurrency control/kənˈkʌrənsi kənˈtrəʊl/ | The management of simultaneous database access to keep data correct and consistent. |
| locks | Controls that temporarily prevent conflicting access to data during an operation. |
| virtual table | A table whose contents are produced from a query on stored data. |
| query/ˈkwɪərɪ/ | A request to retrieve or manipulate information, especially data in a database. |
| developer interface/dɪˈveləpə ˈɪntəfeɪs/ | ממשק למפתחים |
| programming interfaces | Methods that let programs communicate with and use another software system. |
| form builder | A tool for creating screens through which users enter or view data. |
| data entry | The process of putting data into a computer system. |
| report generator | A tool that presents database information in an organised document. |
| query builder | A tool that helps users create requests for database data. |
| SQL editor | A tool for writing and editing SQL commands. |
| data-dictionary editor | A tool for creating or changing descriptions of database structures and rules. |
| APIs | Defined ways for programs to communicate with and use a software system. |
| SQL/ˌes kjuː ˈel/ | Structured Query Language, used to define, query and manipulate data in relational databases. |
| query processor/ˈkwɪərɪ ˈprəʊsesə/ | מעבד שאלות |
| result set | The collection of records returned when a query is run. |
| parses | Checks the structure of a query against the language's rules. |
שני אנשים, מושב אחד
- בשנת 1960 American Airlines הפעילה את Sabre, מערכת ההזמנות המחשבית הראשונה. סוכנים בעשרות ערים יכלו למכור מושבים באותו טיסה בו-זמנית, והמשימה החשובה ביותר של המערכת הייתה שמעולם לא נמכר אותו מושב פעמיים.
- קובץ משותף אינו יכול לעשות זאת: שני תוכניות קוראות "מושב 14C פנוי", שתיהן כותבות "נמכר", ושני נוסעים מגיעים לדלת היריד. מישהו צריך לשמש כגשר בין כל תוכנית לבין הנתונים ולשמש כמגשר.
- הגשר הזה הוא DBMS. כל תכונה בשיעור זה היא דבר שקובצים שטוחים לא יכלו לבצע: לתאר את עצמם, לשמור על עקביות במבט של כל משתמש, להטיל את הכללים, לעמוד בפני תקלה, ולאפשר לצוות אחת לבנות אפליקציות בעוד צוות אחר מעלה שאלות.
- שיעור זה עוסק בתכונות שהסילבוס מציין ובשתי כלי התוכנה שהוא מבקש שתתארו.

מהו DBMS
- מערכת ניהול מסדי נתונים (DBMS) היא התוכנה המנהלת את מסד הנתונים בצורה מרכזית. כל תוכנית ומשתמש נגישים לנתונים רק דרכה.
- היא פותרת כל מגבלה הקשורה לקובצים: העתק יחיד לכל עובדה, לכן אין חפיפה או אי-עקביות; עצמאות נתונים, כך שתוכניות אינן קשורות לאופן האחסון; אינטגרציה, ביטחון, גיבוי ואיכות נגישות מרכזיים עבור משתמשים רבים בו-זמנית.
- הסילבוס מציין חמש תכונות ושני כלים. למדו כל אחד מהם כדבר ש-DBMS עושה.
מעבדת שירות בסיסי נתונים
Watch how a DBMS turns a query into safe shared data access.
Match each DBMS service to what it does.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
A DBMS bundles these services so programs never touch the raw files directly.
ניהול נתונים ומילון הנתונים
- ניהול נתונים הוא הבקרה של ה-DBMS על אופן אחסון, ארגון, השבתה ועדכון הנתונים, כך שתוכניות לעולם אינן פוגעות בקובצים ישירות.
- היא שומרת על מילון נתונים: תיאור של כל טבלה, שדה, סוג נתונים, מפתח, יחס ואתחול, בנוסף למי רשאי לגשת למה. זוהי מידע על המידע.
- תוכניות מבצעות שאלות על המילון במקום להכניס את המבנה באופן קשיח, כך ששינוי בטבלה אינו שובר אותן. הוא גם מה שה-DBMS בודק כאשר הוא מאמת רשומה חדשה.
A data dictionary in a DBMS holds:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
The data dictionary describes the database structure, so programs query it rather than hard-coding the layout.
דגום נתונים והסקימה הלוגית
- דגום נתונים הוא הגדרת המבנה של הנתונים: האובייקטים, המאפיינים שלהם, המפתחות והיחסים, כמו בדיאגרמת E-R.
- התוצאה היא הסקימה הלוגית: העיצוב הלוגי הכולל של מסד הנתונים, הטבלאות והיחסים שלו, המתואר ללא קשר לאופן אחסון הבייטים על הכונן.
- מכיוון שהסכמה הלוגית נפרדת מאחסון הפיזי, האחסון יכול להיות אורגן מחדש, מוארך או מועבר והתוכניות עדיין רואות את אותו טבלאות.

התוכניות רואות טבלאות; ה-DBMS רואה דיסקים

The logical schema of a database describes:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
The logical design is separate from the physical storage, which is what lets the storage change without the programs noticing.
שלמות נתונים ובטיחות נתונים
- שלמות נתונים: ה-DBMS שומר על נכונות וקונסיסטנטיות הנתונים על ידי הפעלת כללים במרכז: מקדמים ראשיים ייחודיים ולא ריקים, שלמות ייחוס בכל מקדם זר, סוגי נתונים וצמצומי אימות כמו טווח או ערך מרשימה.
- בטיחות נתונים: ה-DBMS שולט מי רשאי לראות ולשנות מה. זכויות גישה ניתנות למשתמשים בודדים או לקבוצות, טבלה לפי טבלה, כקריאה בלבד, קריאה וכתיבה, או ללא גישה; סיסמאות מאמתות כל משתמש; נתונים מאובנים יכולים להיות מוצפנים.
- בטיחות כוללת גם תהליכי גיבוי: העתקים תקופתיים של מסד הנתונים, עם יומן שינויים מאז, כך שהנתונים יוכלו לשקום לאחר תקלה.

Which are data-security features of a DBMS? Select כולם that apply.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
Who may access, and recovery after loss, are security. Normalisation is a design step against redundancy.
דוגמה פותרת: כיצד ה-DBMS שומר על בטיחות הנתונים
- הסבר כיצד ה-DBMS מספק בטיחות נתונים. [4]
- למשתמש יש חשבון וסיסמה, כך רק אנשים מורשים נכנסים. המנהל מעניק למשתמש או לקבוצה כלשהם זכויות גישה לכל טבלה: קלרק יוכל לקרוא מחירים אך לא לשנות אותם; לקוח לא יוכל לראות את טבלת העובדים כלל. תצוגה יכולה להציג למשתמש רק את השדות שהוא צריך.
- ה-DBMS מפעיל תהליכי גיבוי: העתק תקופתי של מסד הנתונים לתווך נפרד, עם יומן עסקאות מאז ההעתקה, כך שתקלה או התקפה לא יאבדו נתונים.
- בטיחות עוסקת ב-מי רשאי לגשת; שלמות עוסקת בנתונים being נכונים. שמור עליהם נפרד כאשר השאלה מציינה אחד מהם.
הרבה משתמשים בו-זמנית
- גישה מקבילה: הרבה משתמשים עובדים על מסד הנתונים באותו זמן. בקרת קונקוררנטיות משתמשת בנעילות כדי ששני משתמשים לא יוכלו לעדכן את אותו רישום בו-זמנית ולהפסיד אותו: השני מחכה עד שהראשון סיים.
- עסקה היא קבוצת פעולות שאחת מהן מצליחות או כולן נכשלות, כך שביקוע באמצע העברה לעולם לא ישאיר כסף חסר משני החשבונות.
- תצוגה היא טבלה וירטואלית, שנבנתה מתוך שאילתה, המציגה למשתמש כל אחד רק את החלק שלו מהנתונים.

A database transaction is:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Transactions are all-or-nothing, so the database is never left half-updated.
Concurrency control (locking) is needed so that:
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Locks stop two simultaneous updates from clashing and corrupting shared data.
A transaction is all-or-nothing: it either fully completes (commit) or fully undoes itself (rollback), so the database is never left half-updated.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
This atomicity is why a bank transfer can never debit one account without crediting the other.
A virtual table (often a saved query) that shows a user only their relevant slice of the data is called a ______.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
A view presents a tailored, often restricted, slice of the data without copying it.
Put the events of two users updating the same record under concurrency control in order.
רמת קושי 3/5 · 200 מטבעות + בונוס קטן בהשלמה הראשונה היום
The lock serialises the two updates so neither overwrites the other's change.
כלי התוכנה
- ממשק המפתח הוא סט הכלים וממשקי התכנות לבניית אפליקציות על מסד הנתונים: בונה טפסים להקלטת נתונים, יוצר דוחות, בונה שאילתות, עורך SQL, עורך מילון נתונים, ו-APIs שמאפשרים לתוכנית ב-Python או Java לשלוח SQL ולקבל תוצאות.
- מעבד השאילתות לוקח שאילתה שכתובה ב-SQL, בודק אותה מול מילון הנתונים, מחשב את הדרך היעילה ביותר לביצועה, מבצע אותה ומחזיר את קבוצת התוצאות.
- המשתמש שמקליד שאילתה והמפתח שבונה את טופס ההזמנה משתמשים בשנייהם ב-DBMS; האחד דרך מעבד השאילתות, והשני דרך ממשק המפתח.

Match each DBMS component to its job.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
Running queries, building applications, describing the structure, and the design itself: four different things the exam names separately.
דוגמה מופת: שני הכלים בשימוש
- מאגר הנתונים של חנות משמש את המנהל, הזקוק לסכומי מכירות, ואת מתכנת שכותב אפליקציית ניהול מלאי. הסבר כיצד מעבד השאלות והממשק למפתחים משמשים.
- המנהל כותב או בונה שאלה עבור סכומי המכירות; מעבד השאלות פרסם אותה, השתמש במילון הנתונים לבדיקת קיום הטבלאות והשדות, בחר בדרך המהירה ביותר לביצועה, ביצע אותה והחזיר תוצאות.
- המפתח משתמש ב-ממשק המפתח: בניית הטפסים והדוחות ליצירת מסכי המלאי, ו-API כדי שהקוד של האפליקציה ישלח SQL ל-DBMS וקבל את הרקורדים בחזרה.
- ציון אחד לכל כלי, וציון אחד על מה שאותו אדם עושה עם הכלי.
סימונים נופלים מהיד
- ה-DBMS הוא התוכנה, לא הנתונים. הביטוי "ה-DBMS מחזיק את רקורדי הלקוחות" שגוי; הוא מנהל אותם.
- מילון הנתונים אחראי על נתונים על הנתונים: מבנים, סוגים, מקדים, זכויות. לא על הרקורדים עצמם.
- הסקימה הלוגית היא העיצוב הנפרד מאחסון פיזי. אמור ביטוי זה.
- אבטחה היא מי רשאי לגשת; שלמות היא הנכונות של הנתונים. גיבוי שייך לאבטחה.
הבנתך מושלמת
- DBMS הוא התוכנה שכל תוכנית עוברת דרכה: העתקה אחת לכל עובדה, עצמאות נתונים, כללים מרכזיים
- ניהול נתונים עם מילון נתונים (נתונים על הנתונים) · מודל נתונים המייצר את הסקימה הלוגית (העיצוב הנפרד מאחסון) · שלמות נתונים (כללים שנכופפים) · אבטחת נתונים (זכויות גישה למשתמשים ולקבוצות, סיסמאות, הצפנה, גיבויים)
- בקרת תחרותיות עם נעילה, עסקאות שיכולות להיות או כולן או כלום, תצוגות שמציגות למשתמש את החלק שלו
- כלים: הממשק למפתחים לבניית אפליקציות, מעבד השאלות לריצת SQL
מה השתבש? רק צוות האתר רואה זאת.