
数据库设计 学时数:2学时 课程类型:理论
学时数:2学时 课程类型:理论 第五章 数据库设计

第五章数据库设计 教学目的 ·了解数据库设计的基本步骤 ·掌握数据库设计的方法 教学要求 ·牢记有关概念,掌握由需求分析开始经过概念 设计、逻辑设计到物理存储的数据库开发方法 2023/7117 天津中德职业技术学院信息工程系
2023/7/17 天津中德职业技术学院 信息工程系 2 教学目的 l 了解数据库设计的基本步骤 l 掌握数据库设计的方法 教学要求 l 牢记有关概念,掌握由需求分析开始经过概念 设计、逻辑设计到物理存储的数据库开发方法 第五章数据库设计

第五章数据库设计 教学重点 需求分析的方法 概念结构设计的工具 。 逻辑结构设计的过程 教学难点 ·数据流图 E—R图设计和优化 关系模型处理和规范化处理 2023/7/17 3 天津中德职业技术学院信息工程系
2023/7/17 天津中德职业技术学院 信息工程系 3 教学重点 • 需求分析的方法 • 概念结构设计的工具 • 逻辑结构设计的过程 教学难点 • 数据流图 • E—R图设计和优化 • 关系模型处理和规范化处理 第五章数据库设计

第五章数据库设计 课程章节 5.1需求分析 5.2概念结构设计 5.3逻辑结构设计 5.4物理设计与实施 2023/7/17 4 天津中德职业技术学院信息工程系
2023/7/17 天津中德职业技术学院 信息工程系 4 5.1 需求分析 5.2 概念结构设计 5.3 逻辑结构设计 5.4 物理设计与实施 课程章节 第五章数据库设计

§5.1需求分析 5.1.1数据库设计步骤 5.1.2需求分析
§ 5.1 需求分析 5.1.1 数据库设计步骤 5.1.2 需求分析

第五章数据库设计 5.1.1数据库设计步骤 按照规范设计的方法,考虑数据库及其应用系统开发全过 程,将数据库设计分为以下六个阶段。 ●需求分析 ●概念结构设计 ●逻辑结构设计 ●物理结构设计 ●数据库实施 ●数据库运行和维护 2023/7/17 天津中德职业技术学院信息工程系
2023/7/17 天津中德职业技术学院 信息工程系 6 5.1.1数据库设计步骤 按照规范设计的方法,考虑数据库及其应用系统开发全过 程,将数据库设计分为以下六个阶段。 ●需求分析 ●概念结构设计 ●逻辑结构设计 ●物理结构设计 ●数据库实施 ●数据库运行和维护 第五章数据库设计

第五章数据库设计 相关英文讲解: The methodology is presented as a step-by-step guide to the three main phases of database design,namely:conceptual, logical,and physical design.The main aim of each phase is as following: Conceptual database design-to build the conceptual representation of the database,which includes identification of the important entities,relationships,and attributes. Logical database design-to translate the conceptual representation to the logical structure of the database,which includes designing the relations. Physical database design-to decide how the logical structure is to be physically implemented (as relation)in the target Database Management System(DBMS) 2023/7/17 天津中德职业技术学院信息工程系
2023/7/17 天津中德职业技术学院 信息工程系 7 相关英文讲解: The methodology is presented as a step-by-step guide to the three main phases of database design, namely: conceptual, logical, and physical design. The main aim of each phase is as following: • Conceptual database design- to build the conceptual representation of the database, which includes identification of the important entities, relationships, and attributes. • Logical database design- to translate the conceptual representation to the logical structure of the database, which includes designing the relations. • Physical database design- to decide how the logical structure is to be physically implemented (as relation) in the target Database Management System (DBMS). 第五章数据库设计

第五章数据库设计 Conceptual database design:The process of constructing a model of the information used in an enterprise,independent of all physical considerations. Logical database design:The process of constructing a model of the information used in an enterprise based on a specific data model,but independence of a particular DBMS and other physical considerations. Physical database design:The process of producing a description of the implementation of the database on secondary storage;it describes the base relations,file organizations,and indexes used to achieve efficient access to the data,and any associated integrity constrains and security measures. 2023/7117 天津中德职业技术学院信息工程系
2023/7/17 天津中德职业技术学院 信息工程系 8 Conceptual database design: The process of constructing a model of the information used in an enterprise, independent of all physical considerations. Logical database design: The process of constructing a model of the information used in an enterprise based on a specific data model, but independence of a particular DBMS and other physical considerations. Physical database design: The process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organizations, and indexes used to achieve efficient access to the data, and any associated integrity constrains and security measures. 第五章数据库设计

第五章数据库设计 5.1.2需求分析 1.收集资料 收集资料是数据库设计人员和用户共同完成的任务。必须强调用户 的参与,这是数据库应用系统设计的特点。通过调查、收集与分析,获 得用户对数据库如下要求: (1)信息要求。指用户需要从数据库中获得信息的内容与性质。信 息需求定义了新系统应该提供的所有信息,应描述清楚系统数据的性质 及其联系。由信息要求可以导出数据要求,即在数据库中需要存储哪些 数据。 (2)处理要求。指用户要完成什么处理功能,对处理的响应时间有 什么要求,处理方式是批处理还是联机处理。处理需求定义了新系统数 据处理的操作,应描述操作执行的场合、频率、操作对数据的影响等。 (3)安全性与完整性要求。在定义信息需求和处理需求的同时必须 相应确定安全性和完整性的约束。 2023/7117 天津中德职业技术学院信息工程系 9
2023/7/17 天津中德职业技术学院 信息工程系 9 5.1.2 需求分析 1.收集资料 收集资料是数据库设计人员和用户共同完成的任务。必须强调用户 的参与,这是数据库应用系统设计的特点。通过调查、收集与分析,获 得用户对数据库如下要求: (1)信息要求。指用户需要从数据库中获得信息的内容与性质。信 息需求定义了新系统应该提供的所有信息,应描述清楚系统数据的性质 及其联系。由信息要求可以导出数据要求,即在数据库中需要存储哪些 数据。 (2)处理要求。指用户要完成什么处理功能,对处理的响应时间有 什么要求,处理方式是批处理还是联机处理。处理需求定义了新系统数 据处理的操作,应描述操作执行的场合、频率、操作对数据的影响等。 (3)安全性与完整性要求。在定义信息需求和处理需求的同时必须 相应确定安全性和完整性的约束。 第五章数据库设计

第五章数据库设计 2.分析整理 分析的过程是对所集到的数据进行抽象的过程。抽象是对实 际事物或事件的认为处理,抽取共同的本质特性,忽略细节,并 用各种概念精确的加以描述,这些概念组成某种模型。 3.数据流图(DFD:Data Flow Diagram) 一般采用数据流图DFD(Data Flow Diagram)来描述系统的功 能。DFD可以形象地描述事务处理与所需数据的关联,便于用结构 化数据分析方法,自顶向下、逐层分解,步步细化。 在数据流图中,用命名的箭头表示数据流,用圆圈表示处理, 用矩形或其他形状表示数据存储。图5-1就是一个简单的DFD图。 数据流图可以作为自顶向下,分层逐步细化的描述工具。顶层的 一个处理圆圈可以进一步分为第二层、第三层..的DFD图,直到 最底层、一个圆圈表示一个基本的操作为止。 2023/7/17 天津中德职业技术学院信息工程系 10
2023/7/17 天津中德职业技术学院 信息工程系 10 2.分析整理 分析的过程是对所集到的数据进行抽象的过程。抽象是对实 际事物或事件的认为处理,抽取共同的本质特性,忽略细节,并 用各种概念精确的加以描述,这些概念组成某种模型。 3.数据流图(DFD:Data Flow Diagram) 一般采用数据流图DFD(Data Flow Diagram )来描述系统的功 能。DFD可以形象地描述事务处理与所需数据的关联,便于用结构 化数据分析方法,自顶向下、逐层分解,步步细化。 在数据流图中,用命名的箭头表示数据流,用圆圈表示处理, 用矩形或其他形状表示数据存储。图5-1就是一个简单的DFD图。 数据流图可以作为自顶向下,分层逐步细化的描述工具。顶层的 一个处理圆圈可以进一步分为第二层、第三层……的DFD图,直到 最底层、一个圆圈表示一个基本的操作为止。 第五章数据库设计