The Database Management System (DBMS)
導入済み
17:15
データベースとリレーショナルモデル
データベース以前は、各プログラムが独自のフラットファイルを保持していました。各プログラムごとに1つのファイルです。店舗を想像してみてください。販売プログラム、請求書作成プログラム、配送プログラム…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| 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/ | 開発者用API |
| 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. |
2人の利用者と1つの座席
- 1960年、アメリカン航空はSabreという最初のコンピュータ予約システムを稼働させました。多数の都市にある代理店が、同じフライトの同一時刻に座席を販売できるため、このシステムの最も重要な役割は「同一个座席が二度販売されないようにする」ことでした。
- 共有ファイルではこれを達成できません:2つのプログラムが「座席14Cは空」と読み取り、どちらも「販売済み」と書き込み、2名の乗客がゲートに到着することになります。プログラムとデータの間には常に裁判役となるものが介在し、調整を行う必要があります。
- その裁判役こそがDBMSです。本レッスンのすべての機能は、平坦なファイルでは不可能だったことです:自身を記述する、全ユーザーのビューを整合性を保つ、ルールを強制する、クラッシュに耐える、チームAがアプリを構築している間にチームBが質問を行えるようにする。
- このレッスンは、カリキュラムで指定されている機能と、説明を求められる2つのソフトウェアツールに関するものです。

DBMSとは何か
- データベース管理システムとは、データベースを中央集権的に管理するソフトウェアです。すべてのプログラムとユーザーは、これを通じてのみデータにアクセスします。
- これはファイルベースの限界をすべて解決します:事実のコピーを1つだけ保持するため重複や不整合がなく、データ独立性によりプログラムはストレージに紐付けられず、多くのユーザーが同時にアクセスできる中央的な整合性、セキュリティ、バックアップ、アクセス制御を提供します。
- カリキュラムでは5つの機能と2つのツールを列挙しています。それぞれを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は中央集権的にルールを強制することで、データを正確かつ整合性のある状態に保ちます:主キーは一意かつNOT NULL、すべての外部キーに対する参照整合性、データ型、範囲やリストからの値などの検証制約。
- データセキュリティ: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.
worked example: how the DBMS keeps the data secure
- DBMSがデータセキュリティを提供する方法を説明せよ。 [4]
- 各ユーザーにはアカウントとパスワードがあり、承認された人物のみがログインします。管理者は各ユーザーまたはグループに対して各テーブルへのアクセス権限を付与します:係員は価格を読み取れるが変更できない、顧客はスタッフテーブルを一切見ることができないなど。ビューを用いることで、ユーザーに必要なフィールドのみを表示できます。
- DBMSはバックアップ手順を実行します:データベースの定期コピーを別の媒体へ保存し、その後のトランザクションログを保持することで、故障や攻撃によるデータ損失を防ぎます。
- セキュリティは「誰がアクセスできるか」に関わり、整合性はデータが正しいことに関わります。質問で一方のみを指定している場合は、区別して回答してください。
複数のユーザーが同時にアクセス
- 同時アクセス:多くのユーザーが同時にデータベースを操作します。コンカレンシー制御はロックを使用して、2人のユーザーが同一レコードを同時に更新して破損することを防ぎます:2番目のユーザーは1番目が完了するまで待機します。
- トランザクションは、すべて成功するかすべて失敗するかという一連の操作のグループであり、送金途中のクラッシュで両方のアカウントからお金が失われることを防ぎます。
- ビューとは、クエリに基づいて構築された仮想テーブルであり、各ユーザーに自分のデータスライスのみを表示します。

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エディタ、データ辞書エディタ、そしてPythonやJavaのプログラムがSQLを送信して結果を受け取ることを可能にするAPIが含まれます。
- クエリプロセッサは、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.
演習例:使用されている2つのツール
- ある店舗のデータベースは、売上合計が必要なマネージャーによって利用され、同時に在庫管理アプリケーションを書くプログラマーにも使われています。クエリプロセッサと開発者インターフェースがどのように使われるかを説明しなさい。
- マネージャーは売上合計のためのクエリを作成・記述します。クエリプロセッサはこれを解析し、データ辞書を使ってテーブルとフィールドが存在するか確認し、最も高速な実行方法を選択して実行し、結果を返します。
- プログラマーは開発者インターフェースを使用します。フォームビルダーとレポートビルダーを使って在庫スクリーンを作成し、APIを使ってアプリケーションのコードがDBMSにSQLを送信し、レコードを受け取ります。
- 各2点:それぞれのツールの名称、およびその人物がそれを用いて行う作業内容。
見落としやすいポイント
- DBMSはソフトウェアであり、データそのものではありません。「DBMSが顧客レコードを保持している」という表現は誤りであり、「管理している」とするのが適切です。
- データ辞書には、データそのものではなくデータに関する情報(構造、型、キー、権限など)が格納されています。実際のレコード自体ではありません。
- 論理スキーマとは、物理的なストレージに依存しない設計のことです。この表現を必ず使ってください。
- セキュリティはアクセス権の管理を指し、インテグリティはデータの正確性を指します。バックアップはセキュリティの範疇に含まれます。
理解できましたか
- DBMSとは、すべてのプログラムが通るソフトウェアであり、事実の単一コピー、データ独立性、集中ルールを備えています。
- データ辞書(データに関するデータ)を用いたデータ管理 · 物理ストレージに依存しない設計である論理スキーマを生み出すデータモデリング · 強制されるルールとしてのデータインテグリティ · ユーザーやグループへのアクセス権、パスワード、暗号化、バックアップを含むデータセキュリティ
- ロックによる並列制御、全か無かのトランザクション、ユーザーに自身のスライスを表示するビュー
- ツール:開発者インターフェース(アプリケーション構築用)、クエリプロセッサ(SQL実行用)
何が問題でしたか?この内容はサイトの運営チームだけが確認します。