




已阅读5页,还剩23页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
数据库系统概论 实验报告册姓名: momo 学号: 教师: 实验一 需求分析(一)业务流程调查一、实验目的:掌握需求分析的步骤和业务流程调查的方法;掌握应用Powerbuilder绘制BPM模型二、学时:6H(课内4H,课外2H)三、实验软件平台:Windows 2k或Windows XP, Powerduilder9.5,Visio四、实验内容:根据该VCD连锁店的业务需求调查文字,利用PD绘制该VCD连锁店管理系统的BPM模型。五、实验结果:出售租借:根据购买人或租借人提供的VCD租借单,查阅库存,如果有,则办理销售或租借并登记销售或租借流水帐;如果没有相应的VCD,则可根据购买人或租借人的要求办理预约登记,当有VCD时,及时通知购买人或租借人。 归还:根据租借人提供的所还VCD,检查VCD是否完好,如果完好,则办理归还登记,如果有损坏的VCD,办理赔偿登记。并把赔偿通知单通知给租借人。逾期罚款通知:查询逾期未还的VCD,及时通知租借人,并进行相应的罚款登记。六、思考题1、数据库设计为什么需要进行详细的需求分析? 答:需求分析简单地说就是分析用户的要求。需求分析是设计数据库的起点,需求分析的结果是不是准确的反映了用户的实际要求,将直接影响到后面各个阶段的设计,并影响到设计结果是不是合理使用情况。2、需求分析的目标是什么?其调查步骤是什么?常用的调查方法有哪些?答:(1)需求分析的目标:1.通过详细调查现实世界要处理的对象,充分了解原系统(手工系统或计算机系统)工作概况,明确用户的各种需求。2.在此基础上确定新系统的功能。新系统必须充分考虑今后可能的扩充和改变,不能仅仅按当前应用需求来设计数据库。 (2) 调查步骤: 1. 了解组织机构。2. 调查部门的数据输入、处理、输出。(调查重点之一)3. 在熟悉业务活动的基础上,协助用户明确对新系统的各种要求。(调查重点之二)4. 确定新系统的边界(3)常用的调查方法:跟班作业 开调查会请专人介绍询问设计调查表请用户填写查阅记录3、数据库设计的特点是什么?答: 特点一:三分技术,七分管理,十二分基础数据 。 特点二:结构(数据)设计和行为(处理)设计相结合 。实验二 需求分析(二)数据流程调查一、实验目的:掌握需求分析的步骤和数据流程调查的方法;掌握应用VISIO绘制数据流程图(DFD),掌握数据流程图分层次的绘制方法。掌握编写数据字典的方法和步骤。二、实验学时:8H(课内6H,课外2H)三、实验软件平台:Windows 2k或Windows XP, Visio四、实验内容:1、掌握数据流程调查和分析的方法;2、利用Visio绘制分层次的数据流程图并在绘制的过程中建立标准、统一的编码;3、根据该VCD连锁店的业务需求调查文字以及第一次作业所完成的内容,利用VISIO,绘制该连锁店管理系统的DFD模型。4、编写详细正确的数据字典。五、实验步骤1、数据流程图的层次绘制方法复习数据流程图分层次绘制模型:数据流程图是按照“自顶向下、逐层细化”的原则进行,在绘制整个数据流程图的过程中,一定要建立标准、统一的编码,并建立相应的数据字典。数据流程图的详细绘制过程可参见上课过程中的PPT案例(陪送系统数据流程图)。2、根据该VCD连锁店的业务需求调查文字以及第一次作业所完成的内容,利用VISIO,绘制该连锁店管理系统的DFD模型。六、实验结果: 1、绘制数据流程图 说明:这是总的vcd租借系统。说明:这是租售卡办理流程说明:vcd出租流程说明:这是预约流程说明:上图是归还流程说明:这是逾期还款流程2、编写相应的正确的数据字典表3-1 数据流的描述数据流编号数据流名称简 述数据流来源数据流去向数据流组成数据流量高峰流量F1租借申请对vcd的租借的一个申请客户客户身份审合购买人卡号、购买日期、VCD编码、数量、单价 1000条/月1500条/月F2赔偿记录对vcd损坏进行赔偿客户赔偿数据库租借人卡号、租借日期、VCD编码、数量、归还日期,经办员工号1000条/月1500条/月F3VCD出租信息出租信息客户Vcd审合租借记录单号、租借人卡号、租借日期、VCD编码、数量、归还日期,经办员工号1000条/月1500条/月F4VCD归还信息归还信息Vcd审合结果商店租借记录单号、租借人卡号、租借日期、VCD编码、数量、归还日期,经办员工号1000条/月1500条/月表3-2 处理逻辑的描述处理逻辑编号处理逻辑名称简述输入的数据流处理输出的数据流处理频率P1.3.2查阅库存对库存进行查阅F1接收查询信息,并作回复F11100条/次P1.3.3办理销售登记办理销售登记F11接收信息,并且登记F13100条/次P1.3.5预约答复预约信息的答复F12,F15接收信息,处理答复客户答复100条/次 表3-3 数据存储的描述数据存储编号数据存储名称简 述数据存储组成相关联的处理D1VCD出租库对vcd进行出租购买人卡号、购买日期、VCD编码、数量、单价P1D2Vcd归还数据库对vcd进行归还租借记录单号、租借人卡号、租借日期、VCD编码、数量、归还日期,经办员工号P2表3-4 外部实体的描述外部实体编号外部实体名称简述外部实体组成输入的数据流输出的数据流S1客户Vcd租借用户客户没有租借请求S2商店Vcd租借老板商店 F4事不是同意租借表4-5 数据项的定义数据项编号数据项名称简述类型及宽度取值范围I1购买人卡号购买vcd的人的卡号字符型 ,8位“00000000”-“99999999”I2租借记录单号租借了vcd后,所产生的租借单号字符型 ,8位“00000000”-“99999999”I3租借人卡号已经租借了人的卡号字符型 ,8位“00000000”-“99999999”七、思考题 1、数据流程图的特点有哪三方面?答:数据流程图是一个分层的概念模型,分为三个层次,分别是总体图、中层数据流图、细节图2、数据字典的内容和作用是什么?答:(1)数据字典的用途数据字典是系统中各类数据描述的集合。(2)数据字典的内容数据项数据结构数据流数据存储处理过程实验三 概念结构设计一、实验目的:掌握概念结构模型绘制的方法和步骤,掌握利用PD绘制和管理CDM的方法。二、实验学时:6H(课内3H,课外3H)三、实验软件平台: Windows 2k或Windows XP, Powerduilder9.5,Visio四、实验内容:1、掌握概念结构设计的方法;2、利用PD绘制并管理CDM;3、根据该VCD连锁店的业务需求调查文字以及前两次作业所完成的内容,利用PD,设计该连锁店管理系统合理的CDM模型。五、实验结果图例说明:说明:vc的总流程说明:vcd租借说明:vcd归还 说明:vcd赔偿说明:逾期还款六、思考题1、 什么是数据库的概念结构?式述其特点和设计策略。答:(1)概念结构的特点1.能真实、充分地反映现实世界2.易于理解3.易于更改4易于向关系、网状、层次等各种数据模型转换(2)概念结构是各种数据模型的共同基础,它比数据模型更独立于机器、更抽象,从而更加稳定 (3)设计策略:自顶向下、自底向上、逐步扩张、混合策略。2、 什么叫数据抽象?答:数据抽象是对实际的人、物、事、概念进行人为处理,抽取所关心的共同特性,策略飞本质的细节,并把这些特性用各种概念精确地加以描述。3、 数据库概念结构设计的重要性和设计步骤答: 步骤: 一般先画出组织的局部E-R图,然后将其合并,在此基础进行优化和美化。概念结构的重要性:概念数据模型,主要在系统开发的数据库设计阶段使用,是按照用户的观点来对数据和信息进行建模,利用实体关系图来实现.它描述系统中的各个实体以及相关实体之间的关系,是系统特性和静态描述.数据字典也将是系统进一步开发的基础.4、 为什么要视图集成?有哪些方法?答: 视图集成是消除各分E-R图中的冲突是合并分E-R图的主要工作与关键所在。方法:(1)多个分E-R图一次集成。(2)逐步集成,用累加的方式一次集成两个分E-R图。5、 试述在PD中设计数据项并把数据项关联到某一实体的操作步骤答: 6、 试述在PD中设计域并把它关联到某一实体属性上的操作步骤实验四 逻辑结构设计一、实验目的:掌握概念结构模型向逻辑模型转换的规则方法;掌握在PD环境中把CDM正确转换为PDM,并对PDM进行必要的管理和修改。二、实验学时:6H(课内3H,课外3H)三、实验软件平台: Windows 2k或Windows XP, Powerduilder9.5,Visio四、实验内容:1、掌握概念结构模型向逻辑模型转换的规则方法;2、掌握在PD环境中把CDM正确转换为PDM,并对PDM进行必要的管理和修改;3、掌握利用创建PDM的四种方法;4、根据该VCD连锁店的业务需求调查文字以及前三次实验所完成的内容,利用PD,设计该连锁店管理系统合理的PDM模型。五、实验结果 实验五 数据库的物理设计与实施一、实验目的:掌握PD中利用PDM生成物理数据库的操作步骤;掌握在PD环境中把PDM正确转换为数据库文件和生成数据库文件的SQL脚本。二、实验学时:4H(课内2H,课外2H)三、实验软件平台: Windows 2k或Windows XP, Powerduilder9.5,MS SQL Server 2000或Anywhere四、实验内容:1、 掌握PD中利用PDM生成物理数据库的操作步骤;2、 掌握在PD环境中把PDM正确转换为数据库文件和生成数据库文件的SQL脚本。3、根据第四次实验所得到的PDM模型,完成该VCD连锁店管理系统数据库的物理设计,保留生成数据库的SQL脚本和数据库文件。五、实验结果/*=*/* DBMS name: mohaoying */* Created on: 2012/4/25 12:53:44 */*=*/if exists(select 1 from sys.sysforeignkey where role=FK_ASSOCIAT_ASSOCIATI_商店管理员) then alter table Association_4 delete foreign key FK_ASSOCIAT_ASSOCIATI_商店管理员end if;if exists(select 1 from sys.sysforeignkey where role=FK_ASSOCIAT_ASSOCIATI_逾期罚款通知) then alter table Association_4 delete foreign key FK_ASSOCIAT_ASSOCIATI_逾期罚款通知end if;if exists(select 1 from sys.sysforeignkey where role=FK_同意租借_同意租借_商店管理员) then alter table 同意租借 delete foreign key FK_同意租借_同意租借_商店管理员end if;if exists(select 1 from sys.sysforeignkey where role=FK_同意租借_同意租借2_租借流水帐) then alter table 同意租借 delete foreign key FK_同意租借_同意租借2_租借流水帐end if;if exists(select 1 from sys.sysforeignkey where role=FK_没有库存_没有库存_商店管理员) then alter table 没有库存 delete foreign key FK_没有库存_没有库存_商店管理员end if;if exists(select 1 from sys.sysforeignkey where role=FK_没有库存_没有库存2_预约登记) then alter table 没有库存 delete foreign key FK_没有库存_没有库存2_预约登记end if;if exists(select 1 from sys.sysforeignkey where role=FK_登记_登记_商店管理员) then alter table 登记 delete foreign key FK_登记_登记_商店管理员end if;if exists(select 1 from sys.sysforeignkey where role=FK_登记_登记2_归还登记) then alter table 登记 delete foreign key FK_登记_登记2_归还登记end if;if exists(select 1 from sys.sysforeignkey where role=FK_租借_租借_客户) then alter table 租借 delete foreign key FK_租借_租借_客户end if;if exists(select 1 from sys.sysforeignkey where role=FK_租借_租借2_商店管理员) then alter table 租借 delete foreign key FK_租借_租借2_商店管理员end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=Association_5_FK and t.table_name=Association_4) then drop index Association_4.Association_5_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=Association_4_FK and t.table_name=Association_4) then drop index Association_4.Association_4_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=Association_4_PK and t.table_name=Association_4) then drop index Association_4.Association_4_PKend if;if exists( select 1 from sys.systable where table_name=Association_4 and table_type in (BASE, GBL TEMP) then drop table Association_4end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=同意租借2_FK and t.table_name=同意租借) then drop index 同意租借.同意租借2_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=同意租借_FK and t.table_name=同意租借) then drop index 同意租借.同意租借_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=同意租借_PK and t.table_name=同意租借) then drop index 同意租借.同意租借_PKend if;if exists( select 1 from sys.systable where table_name=同意租借 and table_type in (BASE, GBL TEMP) then drop table 同意租借end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=商店管理员_PK and t.table_name=商店管理员) then drop index 商店管理员.商店管理员_PKend if;if exists( select 1 from sys.systable where table_name=商店管理员 and table_type in (BASE, GBL TEMP) then drop table 商店管理员end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=客户_PK and t.table_name=客户) then drop index 客户.客户_PKend if;if exists( select 1 from sys.systable where table_name=客户 and table_type in (BASE, GBL TEMP) then drop table 客户end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=归还登记_PK and t.table_name=归还登记) then drop index 归还登记.归还登记_PKend if;if exists( select 1 from sys.systable where table_name=归还登记 and table_type in (BASE, GBL TEMP) then drop table 归还登记end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=没有库存2_FK and t.table_name=没有库存) then drop index 没有库存.没有库存2_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=没有库存_FK and t.table_name=没有库存) then drop index 没有库存.没有库存_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=没有库存_PK and t.table_name=没有库存) then drop index 没有库存.没有库存_PKend if;if exists( select 1 from sys.systable where table_name=没有库存 and table_type in (BASE, GBL TEMP) then drop table 没有库存end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=登记2_FK and t.table_name=登记) then drop index 登记.登记2_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=登记_FK and t.table_name=登记) then drop index 登记.登记_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=登记_PK and t.table_name=登记) then drop index 登记.登记_PKend if;if exists( select 1 from sys.systable where table_name=登记 and table_type in (BASE, GBL TEMP) then drop table 登记end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=租借2_FK and t.table_name=租借) then drop index 租借.租借2_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=租借_FK and t.table_name=租借) then drop index 租借.租借_FKend if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=租借_PK and t.table_name=租借) then drop index 租借.租借_PKend if;if exists( select 1 from sys.systable where table_name=租借 and table_type in (BASE, GBL TEMP) then drop table 租借end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=租借流水帐_PK and t.table_name=租借流水帐) then drop index 租借流水帐.租借流水帐_PKend if;if exists( select 1 from sys.systable where table_name=租借流水帐 and table_type in (BASE, GBL TEMP) then drop table 租借流水帐end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=逾期罚款通知_PK and t.table_name=逾期罚款通知) then drop index 逾期罚款通知.逾期罚款通知_PKend if;if exists( select 1 from sys.systable where table_name=逾期罚款通知 and table_type in (BASE, GBL TEMP) then drop table 逾期罚款通知end if;if exists( select 1 from sys.sysindex i, sys.systable t where i.table_id=t.table_id and i.index_name=预约登记_PK and t.table_name=预约登记) then drop index 预约登记.预约登记_PKend if;if exists( select 1 from sys.systable where table_name=预约登记 and table_type in (BASE, GBL TEMP) then drop table 预约登记end if;/*=*/* Table: Association_4 */*=*/create table Association_4 ( 工号 tinyint not null, 记录罚款单号 char(20) not null, 罚款日期 date null, 、经办员工号 char(256) null, Attribute_30 char(10) null, constraint PK_ASSOCIATION_4 primary key clustered (工号, 记录罚款单号);/*=*/* Index: Association_4_PK */*=*/create unique clustered index Association_4_PK on Association_4 (工号 ASC,记录罚款单号 ASC);/*=*/* Index: Association_4_FK */*=*/create index Association_4_FK on Association_4 (工号 ASC);/*=*/* Index: Association_5_FK */*=*/create index Association_5_FK on Association_4 (记录罚款单号 ASC);/*=*/* Table: 同意租借 */*=*/create table 同意租借 ( 工号 tinyint not null, 租借记录单号 char(20) not null, 数量 tinyint null, constraint PK_同意租借 primary key clustered (工号, 租借记录单号);/*=*/* Index: 同意租借_PK */*=*/create unique clustered index 同意租借_PK on 同意租借 (工号 ASC,租借记录单号 ASC);/*=*/* Index: 同意租借_FK */*=*/create index 同意租借_FK on 同意租借 (工号 ASC);/*=*/* Index: 同意租借2_FK */*=*/create index 同意租借2_FK on 同意租借 (租借记录单号 ASC);/*=*/* Table: 商店管理员 */*=*/create table 商店管理员 ( 姓名 char(20) null, 性别 char(4) null, 工号 tinyint
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 公众号送流量活动方案
- 2025至2030年中国仿古琉璃压瓦机行业投资前景及策略咨询报告
- 2025至2030年中国不锈钢长蒸箱行业投资前景及策略咨询报告
- 人工智能基础概念应用题
- 公司书画活动方案
- 公司元宵节创新活动方案
- 公司党史活动方案
- 公司内部唱歌小活动方案
- 公司十一游戏活动方案
- 公司十周年部门策划方案
- (2025)全国“安全生产月活动”《安全知识》竞赛试题库(附含答案)
- 贷款后管理与客户满意度提升
- 自动生成的文档-202504081202-99
- 五下音乐测试题及答案
- 考评员考试题及答案
- 中医骨科试题及答案
- 杭州市上城区2025年下半年下半年招考50名专职社区工作者易考易错模拟试题(共500题)试卷后附参考答案
- 2024年湖南省普通高中学业水平合格性考试地理试题(原卷版)
- T/CECS 10400-2024固废基胶凝材料
- 2025春季学期国开电大本科《理工英语3》一平台在线形考综合测试(形考任务)试题及答案
- 2025年中国SUV帐篷行业市场前景预测及投资价值评估分析报告
评论
0/150
提交评论