| English | 意味 |
|---|---|
| DBMS/ˌdiː biː em ˈes/ | データベース管理システム |
| view/vjuː/ | ビュー |
| backup/ˈbækʌp/ | バックアップ |
| data management/ˈdeɪtə ˈmænɪdʒmənt/ | データ管理 |
| data dictionary/ˈdeɪtə ˈdɪkʃənəri/ | データ辞書 |
| data modelling/ˈdeɪtə ˈmɒdəlɪŋ/ | データモデリング |
| logical schema/ˈlɒdʒɪkl ˈskiːmə/ | 論理スキーマ |
| data integrity/ˈdeɪtə ɪnˈteɡrɪti/ | データ整合性 |
| data security/ˈdeɪtə sɪˈkjʊərɪti/ | データセキュリティ |
| transaction/trænˈsækʃn/ | トランザクション |
| concurrent access/kənˈkʌrənt ˈækses/ | 並列アクセス |
| concurrency control/kənˈkʌrənsi kənˈtrəʊl/ | 並発制御 |
| developer interface/dɪˈveləpə ˈɪntəfeɪs/ | 開発者用API |
| query processor/ˈkwɪərɪ ˈprəʊsesə/ | クエリプロセッサー |
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.
データベースサービスラボ
DBMSがクエリを安全な共有データアクセスに変換する様子を見よ。
各DBMSサービスをその機能に照らしてマッチさせなさい。
難易度 2/5 · 140 コイン + 今日初回完了時に小ボーナス付与
DBMSはこれらのサービス bundle しており、プログラムが生ファイルに直接触れることはありません。
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.
- Programs query the dictionary instead of hard-coding the structure, so a change to a table does not break them. It is also what the DBMS checks when it validates a new record.
DBMSにおけるデータディクショナリには以下のものが含まれます:
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
データディクショナリはデータベースの構造を記述するため、プログラムはレイアウトをハードコーディングせず、これに対してクエリを実行します。
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
データベースの論理スキャマ(論理設計)は以下を記述します:
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
論理設計は物理的な保存から独立しており、これが保存方法の変更をプログラムが検知せずに許容しています。
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.
DBMSのデータセキュリティ機能はどれですか?すべて選択してください。
難易度 2/5 · 140 コイン + 今日初回完了時に小ボーナス付与
アクセス許可や損失後の復旧はセキュリティであり、正規化は重複に対する設計ステップです。
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.
データベーストランザクションとは:
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
トランザクションは全有か全无かの原則であるため、データベースが部分的に更新された状態で残ることはありません。
並発制御(ロック)が必要なのは、次のような場合です:
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
ロックは二つの同時更新が競合して共有データを破損することを防ぎます。
トランザクションは全有か全无です:完全に完了(コミット)するか、完全に取り消し(ロールバック)するため、データベースが部分的に更新された状態で残ることはありません。
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
この原子性が、銀行送金で一方のアカウントを借方した際に他方のアカウントを必ず貸方にする必要がある理由です。
ユーザーに pertinent なデータの断片のみを表示する仮想テーブル(通常は保存済みのクエリ)を ______ と呼ぶ。
難易度 1/5 · 100 コイン + 今日初回完了時に小ボーナス付与
ビューはデータをコピーすることなく、調整され、制限された断片として提示します。
二つのユーザーが同じレコードを更新する一連の出来事を、並発制御の下で順序立てて示しなさい。
難易度 3/5 · 200 コイン + 今日初回完了時に小ボーナス付与
ロックにより二つの更新が直列化され、互いの更新が上書きされないようにする。
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.
各DBMSコンポーネントをその役割に照らしてマッチさせなさい。
難易度 2/5 · 140 コイン + 今日初回完了時に小ボーナス付与
クエリの実行、アプリケーションの構築、構造の説明、そして設計自体:これらは試験で別々に名付けられる4つの異なるものです。
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