《数据库系统原理》实验指导书范文

上传人:206****923 文档编号:90332337 上传时间:2019-06-11 格式:DOC 页数:20 大小:348.01KB
返回 下载 相关 举报
《数据库系统原理》实验指导书范文_第1页
第1页 / 共20页
《数据库系统原理》实验指导书范文_第2页
第2页 / 共20页
《数据库系统原理》实验指导书范文_第3页
第3页 / 共20页
《数据库系统原理》实验指导书范文_第4页
第4页 / 共20页
《数据库系统原理》实验指导书范文_第5页
第5页 / 共20页
点击查看更多>>
资源描述

《《数据库系统原理》实验指导书范文》由会员分享,可在线阅读,更多相关《《数据库系统原理》实验指导书范文(20页珍藏版)》请在金锄头文库上搜索。

1、数据库系统原理实验指导书计算机科学与技术与学院计算机科学与技术系二一二年目 录实验一 认识DBMS3实验二 交互式SQL(4小时)4实验三 数据库完整性(2小时)13实验四 数据库安全性(2小时)17勿忘国耻当思国运.抚今追昔,百感化作一念:当苦日子离去的时间越久远,当富日子光临的越急匆,我们心系国家、民族的命运the same direction of rotation 90 or 180 for; after each disc rotor when measuring position alignment of the two half coupling constant, should

2、 also be in terms of accuracy and consistency. Surface deviation measurement, must in every 180 degrees corresponding to the two radii are equal to each other in order to eliminate errors caused by movement of the rotor. Only a support bearing of the rotor, WA couplings, such as the use of temporary

3、 leave the Center, should pay attention to keep the rotor in the measuring process in the center of the bearing oil retaining the nest does not change. Steam oil block, there should be sufficient clearance between the rotor and, in rotors make sure rotor is not on the block or seal oil. At the time

4、of measurement, connections are not allowed between two rotors, each in a free State. Not allowed in case of assembled sleeve, Center work on the toothed coupling. Coupling tool should have adequate stiffness, installation must be secure and reliable. Coupling Center using a dial indicator, the tabl

5、e should be put in prison and avoid touching, to ensure correct measurement. Coupling disc after a week to return to the original position, circumference of dial gauge reading should be able to go back to the original value. When measuring the clearance of end, into the feeler of the gap should not

6、exceed four at a time, when the gap is too large, you can use the gasket with the feeler gauge measurement of gauge blocks or finishing. bearing surface, markup should be in accordance with the mounting support pads, and retest the thickness. Once the lifting cylinder measurement of surface and inte

7、rnal cylinder surface height difference, compared with the original values confirm the location. Internal vertical and horizontal cylinder under state key insertion installation complex measuring cylinder in axial position. Bottom实验一 认识DBMS一、实验目的1通过对某个商用数据库管理系统的安装使用,初步了解DBMS的工作环境和系统构架。在此推荐SQL SERVER

8、2005。2熟悉DBMS的安装、配置及使用。3搭建今后实验的平台。二、实验平台操作系统:Windows XP。数据库管理系统:SQL SERVER2005。选择安装各个数据库管理系统之前,请仔细看清硬件的配置要求。三、实验内容和要求1根据安装文件的说明安装数据库管理系统。在安装过程中记录安装的选择,并且对所作的选择进行思考,为何要进行这样的配置,对今后运行数据库管理系统会有什么影响。2学会启动和停止数据库服务。 在正确安装SQL SERVER2005后,SQL SERVER数据库引擎服务会在系统启动时自动启动。如果要手动地启动和停止数据库引擎服务,可以通过SQL SERVER配置管理器(SQL

9、SERVER CONFIGURATION MANAGER)来进行管理。SQL SERVER配置管理器综合了SQLSERVER 2000中的服务管理器、服务器网络适用工具和客户端网络实用工具的功能。打开 SQL SERVER配置管理器工具,单击“SQL SERVER2005服务”节点,其中的“SQL SERVER”服务就是我们所说的数据库引擎。与SQL SERVER 2000一样,可以通过这个配置管理器来启动、停止所安装的服务,如“SQLSERVER(MSSQLSERVER)”。3了解RDBMS系统的体系结构。 SQL SERVER2005是一款具有“客户机/服务器”架构的关系型数据库管理系统,

10、它使用T-SQL语言在客户机和服务器之间传递客户机的请求和服务器的响应。 数据库体系结构:又划分为数据库逻辑结构和数据库物理结构。数据库逻辑结构主要应用于面向用户的数据组织和管理,如表、视图、存储过程和触发器、约束等。数据库物理结构主要应用于面向计算机的数据组织和管理,如数据以表文件的形式存放在硬盘上。4了解RDBMS的管理和使用。例如SQL SERVER Management Studio是SQL SERVER 2005种最重要的管理工具,它融合了SQL SERVER2000的查询分析器和企业管理器、OLAP分析器等多种工具的功能,为管理人员提供了一个简单的实用工具,使用这个工具既可以用图形

11、化的方法,也可以通过编写SQL语句来实现数据库的操作。5初步了解RDBMS的安全性,这里主要是服务器用户的登录和服务器预定义角色。可以尝试建立一个新的登录名,赋予其数据库管理员的角色,今后的实验可以用该登录名来创建数据库用户。实验二 交互式SQL(4小时)一、实验目的熟悉通过SQL对数据库进行操作。二、实验工具利用实验一中安装的RDBMS及其交互查询工具来操作SQL语言。三、实验内容和要求1在RDBMS中建立一个学生-课程数据库,进行实验所要求的各种操作,所有的SQL操作均在此建立的新库里进行。2根据以下要求认真进行实验,记录所有的实验用例及执行结果。数据定义:基本表的创建、修改及删除;索引的

12、创建和删除。数据操作:完成各类查询操作(单表查询,连接查询,嵌套查询,集合查询);完成各类更新操作(插入数据,修改数据,删除数据)。视图的操作:视图的定义(创建和删除),查询,更新(注意更新的条件)。特别说明:实验中注意特定数据库系统(如SQL SERVER)的SQL语句格式与SQL-3标准的区别。参考实验用例:(一)数据定义:一基本表的操作1建立基本表1)创建学生表Student,由以下属性组成:学号Sno(char型,长度为9,主码),姓名Sname(char型,长度为20,唯一),性别Ssex(char型,长度为2),年龄(smallint),所在系(char型,长度为20)。 crea

13、te table Student (Sno char(9) primary key,Sname char(20) unique,Ssex char(2),Sage smallint,Sdept char(20);2)创建课程表Course,由以下属性组成:课程号Cno(char型,主码,长度为4),课程名Cname(char型,长度为40),先行课Cpno(char型,长度为4,外码),学分Ccredit(smallint)。 create table Course(Cno char(4) primary key,Cname char(40),Cpno char(4),Ccredit smal

14、lint);3)创建学生选课表SC,由以下属性组成:学号Sno(char型,长度为9),课程号Cno(char型,长度为4),成绩Grade(smallint),其中Sno和Cno构成主码。create table sc(Sno char(9),Cno char(4),Grade smallint,primary key(Sno,Cno),foreign key (Sno) references student(Sno),foreign key (Cno) references course(Cno);2修改基本表:1)向Student表增加“入学时间列”,其数据类型为日期型。 alter t

15、able Student add S_entrance date;2)将年龄的数据类型由字符型(假设原来的数据类型是字符型)改为整数。 alter table Student alter column Sage int;3)增加课程名称必须取唯一值的约束条件。 alter table Course add unique(Cname);3删除基本表:1)在所有的操作结束后删除Student表。 drop table Student;2)在所有的操作结束后删除Course表。 drop table Course;3)在所有的操作结束后删除SC表。 drop table SC;二索引操作1建立索引1)为学生课程数据库中的Student,Course,SC 3个表建立索引。其中Student表按学号升序建唯一索引,Course表按课程号升序建唯一索引,SC表按学号升序和课程号降序建唯一索引。create unique index Stusno on Student(Sno);create unique index Coucno on Course(Cno);create unique index SCno on SC(Sno ASC,Cno DE

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号