The Database Management System (DBMS)
도입됨
17:15
데이터베이스 및 관계 모델
데이터베이스 이전에는 각 프로그램이 자체 플랫 파일을 보관했습니다—프로그램마다 하나의 파일. 상점을 상상해 보십시오. 판매 프로그램, 청구서 생성 프로그램, 배송 프로그램…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| DBMS/ˌdiː biː em ˈes/ | Glossary {"sense": "데이터베이스 관리 시스템", "subject": "A-Level 컴퓨터 과학", "term": "DBMS"} |
| view/vjuː/ | Glossary {"sense": "뷰", "subject": "A-Level 컴퓨터 과학", "term": "view"} |
| backup/ˈbækʌp/ | 백업 |
| data management/ˈdeɪtə ˈmænɪdʒmənt/ | Glossary {"sense": "데이터 관리", "subject": "A-Level 컴퓨터 과학", "term": "data management"} |
| data dictionary/ˈdeɪtə ˈdɪkʃənəri/ | Glossary {"sense": "데이터 사전", "subject": "A-Level 컴퓨터 과학", "term": "data dictionary"} |
| data modelling/ˈdeɪtə ˈmɒdəlɪŋ/ | Glossary {"sense": "데이터 모델링", "subject": "A-Level 컴퓨터 과학", "term": "data modelling"} |
| logical schema/ˈlɒdʒɪkl ˈskiːmə/ | Glossary {"sense": "논리적 스키마", "subject": "A-Level 컴퓨터 과학", "term": "logical schema"} |
| data integrity/ˈdeɪtə ɪnˈteɡrɪti/ | Glossary {"sense": "데이터 무결성", "subject": "A-Level 컴퓨터 과학", "term": "data integrity"} |
| data security/ˈdeɪtə sɪˈkjʊərɪti/ | Glossary {"sense": "데이터 보안", "subject": "A-Level 컴퓨터 과학", "term": "data security"} |
| transaction/trænˈsækʃn/ | Glossary {"sense": "트랜잭션", "subject": "A-Level 컴퓨터 과학", "term": "transaction"} |
| concurrent access/kənˈkʌrənt ˈækses/ | Glossary {"sense": "동시 접근", "subject": "A-Level 컴퓨터 과학", "term": "concurrent access"} |
| concurrency control/kənˈkʌrənsi kənˈtrəʊl/ | Glossary {"sense": "동시성 제어", "subject": "A-Level 컴퓨터 과학", "term": "concurrency control"} |
| developer interface/dɪˈveləpə ˈɪntəfeɪs/ | Glossary {"sense": "개발자 인터페이스", "subject": "A-Level 컴퓨터 과학", "term": "developer interface"} |
| query processor/ˈkwɪərɪ ˈprəʊsesə/ | Glossary {"sense": "쿼리 프로세서", "subject": "A-Level 컴퓨터 과학", "term": "query processor"} |
Two people, one seat
- In 1960 American Airlines switched on Sabre, the first computer reservation system. Agents in dozens of cities could sell seats on the same flight at the same moment, and the system's one job that mattered was that no seat was ever sold twice.
- A shared file cannot do that: two programs read "seat 14C free", both write "sold", and two passengers arrive at the gate. Something has to sit between every program and the data and referee.
- That referee is the DBMS 数据库管理系统. Every feature in this lesson is a thing the flat files could not do: describe themselves, keep every user's view consistent, enforce the rules, survive a crash, and let one team build applications while another asks questions.
- This lesson is the features the syllabus names and the two software tools it asks you to describe.
What a DBMS is
- A database management system is the software that manages the database centrally. Every program and every user reaches the data only through it.
- It answers each file-based limitation: one copy of each fact, so no redundancy or inconsistency; data independence, so programs are not tied to the storage; central integrity, security, backup and access for many users at once.
- The syllabus names five features and two tools. Learn each one as a thing the DBMS does.
데이터베이스 서비스 실험실
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.
Data management and the data dictionary
- Data management 数据管理 is the DBMS controlling how the data is stored, organised, retrieved and updated, so that programs never touch the files directly.
- It maintains a data dictionary 数据字典: a description of every table, field, data type, key, relationship and constraint, plus who may access what. It is data about the data.
- The DBMS uses the data dictionary to check the database structure and constraints, including when it validates a new record. Programs may also use it to discover the structure.
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.
Data modelling and the logical schema
- Data modelling 数据建模 is defining the structure of the data: the entities, their attributes, the keys and the relationships, as in an E-R diagram.
- The result is the logical schema 逻辑模式: the overall logical design of the database, its tables and relationships, described independently of how the bytes are stored on disk.
- Because the logical schema is separate from the physical storage, the storage can be reorganised, indexed or moved and the programs still see the same tables.

The programs see tables; the DBMS sees disks
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.
Data integrity and data security
- Data integrity 数据完整性: the DBMS keeps the data correct and consistent by enforcing the rules centrally: primary keys unique and not null, referential integrity on every foreign key, data types, and validation constraints such as a range or a value from a list.
- Data security 数据安全: 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; passwords authenticate each user; stored data can be encrypted.
- Security also means backup 备份 procedures: regular copies of the database, with a log of changes since, so the data can be recovered after a failure.
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.
Worked example: how the DBMS keeps the data secure
- Describe how a DBMS provides data security. [4]
- Each user has an account and password, so only authorised people log in. The administrator gives each user or group access rights to each table: a clerk may read the prices but not change them; a customer cannot see the staff table at all. A view can present a user with only the fields they need.
- The DBMS runs backup procedures: a regular copy of the database to a separate medium, with a log of transactions since the copy, so a failure or an attack loses no data.
- Security is about who may access; integrity is about the data being correct. Keep them apart when the question names one.
Many users at once
- Concurrent access 并发访问: many users work on the database at the same time. Concurrency control 并发控制 uses locks so two users cannot update the same record at once and corrupt it: the second waits until the first has finished.
- A transaction 事务 is a group of operations that either all succeed or all fail, so a crash halfway through a transfer never leaves money missing from both accounts.
- A view 视图 is a virtual table, built from a query, that shows each user only their slice of the data.
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.
The software tools
- The developer interface 开发者接口 is the set of tools and programming interfaces for building applications on the database: a form builder for data entry, a report generator, a query builder, an SQL editor, a data-dictionary editor, and APIs that let a program in Python or Java send SQL and receive results.
- The query processor 查询处理器 takes a query written in SQL, checks it against the data dictionary, works out the most efficient way to run it, executes it and returns the result set.
- The user who types a query and the programmer who builds the booking form are both using the DBMS; one through the query processor, the other through the developer interface.
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.
Worked example: the two tools in use
- A shop's database is used by the manager, who needs sales totals, and by a programmer writing a stock-control application. Explain how the query processor and the developer interface are used.
- The manager writes or builds a query for the sales totals; the query processor parses it, uses the data dictionary to check the tables and fields exist, chooses the fastest way to run it, executes it and returns the results.
- The programmer uses the developer interface: the form and report builders to make the stock screens, and the API so the application's code can send SQL to the DBMS and receive the records back.
- Two marks each: what the tool is, and what this person does with it.
Marks that slip away
- The DBMS is the software, not the data. "The DBMS holds the customer records" is wrong; it manages them.
- The data dictionary holds data about the data: structures, types, keys, rights. Not the records themselves.
- The logical schema is the design independent of physical storage. Say that phrase.
- Security is who may access; integrity is the data being correct. Backup belongs to security.
You've got it
- a DBMS is the software every program goes through: one copy of each fact, data independence, central rules
- data management with a data dictionary (data about the data) · data modelling producing the logical schema (the design independent of storage) · data integrity (rules enforced) · data security (access rights to users and groups, passwords, encryption, backups)
- concurrency control with locks, transactions that are all-or-nothing, views that show a user their slice
- tools: the developer interface for building applications, the query processor for running SQL
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.