计算机数据库系统网站外文文献英文文献翻译毕业设计论文_第1页
计算机数据库系统网站外文文献英文文献翻译毕业设计论文_第2页
计算机数据库系统网站外文文献英文文献翻译毕业设计论文_第3页
计算机数据库系统网站外文文献英文文献翻译毕业设计论文_第4页
计算机数据库系统网站外文文献英文文献翻译毕业设计论文_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、外文翻译中文数据库系统1. 数据库系统引论今天,也就是比以往任何时候都更加明显,一个组织的成功取决于它准确而及时地获取关于它运营数据的能力及有效管理这些数据的能力,并用它来分析和指导其活动。一些短语诸如“超级公路信息”已随处可见,信息处理成为一个迅速增长为每年几十亿美元的产业。我们今天能得到的信息实在是爆炸性的,而数据作为一个组织资产的价值正得到广泛的认可。这种议论推动了对强大及灵活的数据库管理系统的不断增长的需要。数据库是一组数据的集合,它可典型地描绘一个或多个相关组织的活动。举例来说,一个大学的数据库可能包含如下信息:诸如学生、教职员、课程及班组等实体。实体间的关系,诸如学生课程名册、教员

2、教授课程以及课程使用教室。一个数据库管理系统(或称DBMS)是一种旨在协助维护和使用大型数据集合的软件,为这些系统所需要,同时为了它们的使用,DBMS发展很迅速;举例来说,在文件中存储数据须书写特定的应用代码来管理它。一般来说,数据库管理系统领域是计算机科学的一个缩影。它所要解决的问题及使用的技术包括了广泛的范围,这包括语言、面向对象及其他的编程变化方法、编译、操作系统、并发编程、数据结构、算法理论、并行及分布式系统、用户接口、专家系统及人工智能、统计技术以及动态编程。随着愈来愈多的数据能进入在线及通过计算机网络变得从未有过的便于存取,数据库管理系统将继续增加其重要性。今天这个领域正在为激动人

3、心的多媒体数据库、交互电视、数字图书馆及许多科学工程(诸如人类基因图工程以及NASA的地球观测工程)及许多公司为巩固它们的决策处理愿望和为了挖掘它们自己公司的有用信息的数据仓库等所推动。在商业方面,数据库管理系统代表了一个最大和最强劲的市场份额,对数据库管理系统的研究将被证明能在多个方面而不是一个方面得到丰厚的回报。2. 数据库概述一个数据库由一个文件或文件集合组成。这些文件中的信息可分解成一个个记录,每个记录有一个或多个域。域是数据存储的基本单位,每个域一般含有由数据库描述的属于实体的一个方面或一个特性的信息。用户使用键盘和各种排序命令,能够快速查找、重排、分组并在查找的许多记录中选择相应的

4、域,建立特定集上的报表。数据库记录和文件的组织必须确保能对信息进行检索。早期的系统是顺序组织的(如:字母顺序、数字顺序或时间顺序);直接访问存储设备的研制成功使得通过索引随机访问数据成为可能。用户检索数据库信息的主要方法是query(查询)。通常情况下,用户提供一个字符串,计算机在数据库中寻找相应的字符序列,并且给出字符串在何处出现。比如,用户能够在所有记录中寻找所有last name域为Smith的记录。在非结构化的数据库中,按照实体的一个简单列表组织记录;很多个人计算机的简易数据库是非结构的。层次型数据库按树型组织记录,每一层的记录分解成更小的属性集。层次型数据库在不同层的记录集之间提供一

5、个单一链接,与此不同,网络型数据库在不同记录集之间提供多个链接,这是通过设置指向其它记录集的链或指针来实现的。网络型数据库的速度及多样性使其在企业中得到广泛应用。当文件或记录间的关系不能用链表达时,使用关系型数据库。一个表或一个“关系”,就是一个简单的非结构列表。多个关系可通过数学关系提供所需信息。面向对象的数据库存储并处理更复杂的称为对象的数据结构,可组织成有层次的类,其中的每个类可以继承层次链中更高一级类的特性,这种数据库结构最灵活,最具适应性。3.关系数据库的结构关系模型是任何关系数据库管理系统(RDBMS)的基础。一个关系模型有二个核心组件:对象或关系的集合,作用于对象或关系上的操作,

6、以及数据完整性规则。换句话说,关系数据库有一个存储数据的地方,一种创建和检索数据的方法,以及一种确认数据的逻辑一致性的方法。 一个关系数据库使用关系或二维表来存储支持某个事物所需的信息。让我们了解一下一个传统的关系数据库系统的基本组件并且学习如何设计一个关系数据库。一旦你对于行、列、表和关联是什么有了深刻理解,你就能够充分发挥关系数据库的强大功能。 3.1表,行和列在关系数据库中,一个表(或者说一个关系)是一个用于保存相关信息的二维结构。一个数据库由一个或者多个相关联的表组成。注意:不要混淆了关系和关联。一个关系实际上是一个表,而一个关联指的是一种连接、结合或联合两个表的方式。表中的一行是一种

7、事物的集合或实例,比如一个员工或发票上的一项。表中的一列包含了一类信息;而且行列交叉点上的数据,字段,即是能够用数据库查询语言检索到的最小片信息。举个例子来说,一个员工信息表可能有一个“名字”列,列中就包含所有员工的名字。数据是通过对行、列进行过滤而从表中检索出来的。3.2.主码,数据类型和外码关系:用来保存相关信息的一个二维结构(也就是表)。行:在一个数据库表中的一组单数据或多数据元素,用于描述一个人、地方或事物。列:列是数据库表的组件,它包含所有行中同名和同类型的所有数据。一个关系数据库能够规定列中的一个单元格是否为空。单元格:是数据库查询语言所能够检索到的最小片信息。一个单元格就是一个数

8、据库表的行和列交叉形成的。关系数据库的一个特性能够确定某列的键入值必须为单值。主码:主码即是表中的一列(或多列),使每一行能够区别于同表中的其他行。数据类型:数值型,字符型或字母型,以及日期型。外码加强了关系数据库中参考完整性的概念。外码:表中的一列(或多列),它的值来自于其他表的主码列或单值列。一个外码有助于确定表中数据的完整性。参考完整性:是关系数据库用来加强表间一对多关联的一种方式。3.3 数据建模在这个过程中,数据库创建者定义和填写数据库中所有表。有一种为数据库建模的方式叫做ERA,它可以表示出实体、实体间的关联和实体的属性。数据库设计者使用一个能够支持实体、实体属性和实体间关联的应用

9、程序。通常,一个实体对应数据库中的一个表,而实体的属性对应于表中的列。数据建模:一个定义实体、实体属性和实体间关联的过程,从而为建立物理数据库做准备。数据建模过程包括定义实体、定义实体间关联以及定义每个实体的属性的过程。一旦一个周期完成,就需要不断重复直到设计者抓住了重点,足以开始建立数据库。让我们进一步了解为数据库建模过程的步骤。3.4.定义实体首先,设计者确定数据库应用程序范围内的所有实体。实体是人、地方或事物,它们对于整个团体是重要的且需要被记录在数据库中。实体将被巧妙的转化为数据表。3.5. 定义实体间的关联一旦定义了实体,设计者就能够继续定义每个实体间是如何关联的。通常,设计者通常将

10、每个实体同其他实体配对,并目考虑:“两者之间是否存在关联呢?”实体间的某些关联是明显的,某些不是。在饰品公司数据库中,员工实体和部门实体间极可能存在关联,而依据事物间的关系原则,部门实体跟工资水平实体间似乎就没有关联了。如果事物间的关系原则是用来约束某个部门的工资水平的,就可能需要一个新的实体来说明工资水平和部门之间的关联。这个实体被称作关系表或交表,其中包含工资水平和部门之间的有效联合。关系表:是一个数据库表,其中保存着另外两个表的行(记录)间的有效结合,并且通常强调了事物间的关系原则。关联表处理的是一个多对多关联。通常,关系数据库间有二种关联方式:·一对多关联:最常见的关联是一对

11、多关联。意思是对于每个给出的现有实体(即父实体)都有一个或多个现有的另一个实体(即子实体)与之相关联。举个例子来说,在饰品公司数据库中,部门实体是一个父实体,而每个部门中,都有一个或多个员工属于该部门。这样,部门实体和员工实体间的关联就是一对多关联。·一对一关联:在一个一对一关联中,表中的一行只关联另一个表中的一行甚至0行。这种关联类型通常用于子类型数据中。例如,一个员工表可能保存了所有员工的信息,而全职表、兼职表和承包人表则分别保存全职员工、兼职员工和承包人的信息。这些实体被认为是员工表的子表,并且同员工表维持一对一关联。这种关系不像一对多关联那么常见,因为如果一个实体与另一个实体

12、总有对应行,在大多数情况下,两个实体中的属性只在一个实体内出现就可以了。 ·多对多关联:在多对多关联中,表的一行可能对应另一个表的许多行,反之亦然。通常,当这些关联在数据库中被执行时,往往再定义第三个实体用来保存前两个实体间的所有关联。例如,在一个学籍注册数据库中,学生表与班级表之间有一个多对多关联一个学生可能听一门或多门课程,并目一个班级也可能有一个或多个学生。而学生_班级关系表中就包含了学生和班级之间的关系,以表明哪个学生在哪个班。. DBMS简介 数据库这个词经常用来描述一堆相关文件,这些文件被编成一个完整的复杂结构,这个结构对于相同的数据可针对不同的人提供不同的渠道

13、。例如,在一个特定的州的所有县和城市,汽车部门有关所有司机执照信息的一个数据库。文件中的一些信息例如一个过去犯罪 记录,证明有罪记录等等警察部门可以得到,其它信息(例如,对于超速行驶所支付的余额报酬),许可证局可以得到。还有其它信息 (例如犯罪的数量和类型)保险公司会有记录。数据库管理系统是一个一套极其复杂的软件程序。在数据库中,它控制着数据(字段、记录和文件)的组织、存储和检索。它也控制着数据库的安全性和整体性。数据库管理系统从应用程序处接受数据的要求并指示操作系统转移相应 的数据。 用计算机来协助完成那些用手工完成很费时的工作是很实际的一种方法。原则上讲,存于计算机牛 的数据库与记录在纸上

14、存于档案粗中的数据库没什么两样。但用计算 机完成数据库的维护和信息的获取不但省事且速度很快。能够完成所有这些工作的计算机化的数据库即称作数据库管理系统,简称DBMS。将信息储存在计算机里有若干种方式,但这些方式并非全部都是 真正的数据库管理系统。 当使用数据库时,随着组织的信息要求的变化,信息系统通常容易地被改变。数据的新的分类能够加入到数据库中而不破坏现存的系统。4.1. 数据库管理信息系统DBMS可综合几个文件的数据项以回答用户对信息的查询,这就意味着DBMS能够访问和检索非关键记录字段的数据,即DBMS能够将几个大文件中逻辑相关的数据组织并连接在一起。4.2.逻辑结构确定这些逻辑关系是数

15、据管理者的任务,由数据定义语言完成。DBMS在存储、访问和检索操作过程中可选用以下逻辑构造技术:1.链表结构。在该逻辑方式中,记录通过指针链接在一起。指针是记录中的一个数据项,它指出另一个逻辑相关的记录的存储位置,例如,顾客主文件中的记录将包含每个顾客的姓名和地址,而且该文件中的每个记录都由一个账号标识。在记账期间,顾客可在不同时间购买许多东西,公司保存一个发票文件以反映这些交易。这种情况下可使用链表结构,以显示给定时间内未支付的发票。顾客文件中的每个记录都包含这样一个字段,该字段指向发票文件中该顾客的第一个发票的记录位置,该发票记录又依次与该顾客的下一个发票记录相连,此链接的最后一个发票记录

16、由一个作为指针的特殊字符标识。2.层次(树型)结构。该逻辑方式中,数据单元的多级结构类似一棵“倒立”的树,该树的树根在顶部,而树枝向下延伸。在层次(树型)结构中存在主-从关系,唯一的根数据下是从属的元或节点,而每个从属的元或节点又依次“拥有”一个或多个其它元(或者没有) 。该结构中根下面的每个元或树枝都只有一个所有者,这样,一个customer(顾客)拥有一个invoice(发票),而invoice(发票)又有从属项。在树型结构中,树枝不能相连。3.网状结构。网状结构不像树型结构那样不允许树枝相连,它允许节点间多个方向连接,这样,每个节点都可能有几个所有者,而它又可能拥有任意多个其它数据单元。

17、数据管理软件允许从文件的任一记录开始提取该结构中的所需信息。5. 数据库管理系统(DBMS)和管理信息系统(MIS) 众所周知,数据库是逻辑上相关的数据元的汇集。这些数据元可以按不同的结构组织起来,以满足单位和个人的多种处理和检索的需要。数据库本身不是什么新鲜事一早期的数据库凿在石头上,记在名册上,以及写在索引卡中。而现在,数据库普遍记录在可磁化的介质上,并且需要用计算机程序来执行必需的存储和检索操作。如下所述,所有数据库(最简单的除外)中都有复杂的数据关系及其链接。处理与创建、访问以及维护数据库记录有关的复杂任务的系统软件包叫做数据库管理系统(DBMS)。DBMS软件包中的程序在数据库与其用

18、户间建立接口。(这些用户可以是应用程序员、管理员、及其他需要信息的人员和各种操作系统程序)。DBMS可组织、处理和表示从数据库中选出的数据元。该功能使决策者能搜索、探查和查询数据库的内容,从而对在正规报告中没有的、不再出现的且无法预料的问题作出回答。这些问题最初可能是模糊的并且(或者)是定义不恰当的,但是人们可以浏览数据库直到获得所需的信息。简言之,DBMS将“管理”存储的数据项,并从公共数据库中汇集所需的数据项以回答非程序员的询问。在面向文件的系统中,需要特定信息的用户应将他们的要求传送给程序员。该程序员在时间允许时,将编写一个或多个程序以提取数据和准备信息。然而,DBMS的可用性为用户提供

19、了一个更快的替代通信通道.管理信息系统(MIS)的概念已经用数十种方式定义过。因为MIS的组织模型可能各不相同,所以MIS的定义随应用范围和广度而变化就不奇怪了。本文认为MIS系统可定义为基于计算机的数据处理过程的网络系统,它是一个机构为了支持决策及其他必需的管理功能提供及时有效的信息而开发的,并且可按需要把人工和其他过程结合在一起。MIS模型不同,除了横向管理结构如何命名之外,一个机构从纵向也可分成需要独立信息流的不同职能部门。综合横同管理级和纵向特长产生了复杂组织结构。这个结构的基础是数据库,该数据库理想的方式是由内部和外部产生的,与过去、现在及预见到的将来事件相关的数据组成。MIS设计者

20、的一个棘手的问题是开发支持决策所需的信息流。一般而言,不同级别与不同职责的管理者所需的信息大多来自现有信息系统(或子系统)的汇集,这些系统在MIS中可紧密地结合在一起,但是,更经常的情况是松散耦合的。外文资料原文 Database Systems1. Introduction to Database System Today more than at any previous time the success of anorganization depends on its ability to acquire accurate and timely dataabout its operati

21、on to manage this data effectively and to use it toanalyze and guide its activities. Phrases such as the informationsuperhighway have become ubiquitous and information processing is arapidly growing multibillion dollar industry. The amount of information available to us is literally exploding andthe

22、 value of data as an organizational asset is being widely recognized.This paradox drives the need for increasingly powerful and flexible datamanagement systems. A database is a collection of data typically describing the activitiesof one or more related organizations. For example a university databa

23、semight contain information about the following. Entities such as students faculty courses and classrooms. Relationships between entities such as students enrollment incourses faculty teaching courses and the use of rooms for courses. A database management system or DBMS is software designed toassis

24、t in maintaining and utilizing large collections of data and the needfor such systems as well as their use is growing rapidly. The alternativeto using a DBMS is to use ad hoc approaches that do not carry over fromone application to another for example to store the data in files and writeapplication-

25、specific code to manage it. The area of database management systems is a microcosm ofcomputer science in general. The issues addressed and the techniquesused span a wide spectrum including languages object-orientation andother programming paradigms compilation operating systemsconcurrent programming

26、 data structures algorithms theory paralleland distributed systems user interfaces expert systems and artificialintelligence statistical techniques and dynamic programming . Database management continues to gain importance as more andmore data is brought on-line and made ever more accessible through

27、computer networking. Today the field is being driven by exciting visionssuch as multimedia databases interactive video digital libraries and ahost of scientific projects such as the human genome mapping effort andNASAs Earth Observation System project and the desire of companiesto consolidate their

28、decision-making processes and mine their datarepositories for useful information about their business. Commerciallydatabase management systems represent one of the largest and mostvigorous market segments. Thus the study of database systems couldprove to be richly rewarding in more ways than one.2.

29、Database consists A database consists of a file or a set of files. The information in thesefiles may be broken down into records each of which consists of one ormore fields. Fields are the basic units of data storage and each fieldtypically contains information pertaining to one aspect or attribute

30、of theentity described by the database. Using keywords and various sortingcommands users can rapidly search rearrange group and select thefields in many records to retrieve or create reports on particularaggregates of data. Database records and files must be organized to allow retrieval of theinform

31、ation. Early systems were arranged sequentially i.e.alphabetically numerically or chronologically the development ofdirect-access storage devices made possible random access to data viaindexes. Queries are the main way users retrieve database information.Typically the user provides a string of chara

32、cters and the computersearches the database for a corresponding sequence and provides thesource materials in which those characters appear. A user can request forexample all records in which the content of the field for a persons lastname is the word Smith. In flat databases records are organized ac

33、cording to a simple list ofentities many simple databases for personal computers are flat instructure. The records in hierarchical databases are organized in a treelikestructure with each level of records branching off into a set of smallercategories. Unlike hierarchical databases which provide sing

34、le linksbetween sets of records at different levels network databases createmultiple linkages between sets by placing links or pointers to one set ofrecords in another the speed and versatility of network databases haveled to their wide use in business. Relational databases are used where associatio

35、ns among files orrecords cannot be expressed by links a simple flat list becomes one tableor “relation” and multiple relations can be mathematically associated toyield desired information. Object-oriented databases store and manipulatemore complex data structures called “objects” which are organized

36、 intohierarchical classes that may inherit properties from classes higher in thechain this database structure is the most flexible and adaptable.3. Structure of the Relational database The relational model is the basis for any relational databasemanagement system RDBMS.A relational model has three c

37、orecomponents: a collection of objects or relations operators that act on theobjects or relations and data integrity methods. In other words it has aplace to store the data a way to create and retrieve the data and a way tomake sure that the data is logically consistent. A relational database uses r

38、elations or two-dimensional tables tostore the information needed to support a business.3.1. Tables Row and Columns A table in a relational database alternatively known as a relation isa two-dimensional structure used to hold related information. A databaseconsists of one or more related tables. Not

39、e: Dont confuse a relation with relationships. A relation isessentially a table and a relationship is a way to correlate join orassociate two tables. A row in a table is a collection or instance of one thing such as oneemployee or one line item on an invoice. A column contains all theinformation of

40、a single type and the piece of data at the intersection of arow and a column a field is the smallest piece of information that can beretrieved with the databases query language. For example a table withinformation about employees might have a column called LAST_NAMEthat contains all of the employees

41、 last names. Data is retrieved from atable by filtering on both the row and the column.3.2. Primary Keys Data types and Foreign Keys Relation: A two-dimensional structure used to hold relatedinformation also known as a table. Row: A group of one or more data elements in a database table thatdescribe

42、s a person place or thing. Column: The component of a database table that contains all of thedata of the same name and type across all rows. Primary Key: A column or columns in a table that makes the rowin the table distinguishable from every other row in the same table. Data types: numeric values c

43、haracter or alphabetic values and datevalues. A foreign key enforces the concept of referential integrity in arelational database. Foreign Key: A column or columns in a table that draws its valuesfrom a primary or unique key column in another table. A foreign keyassists in ensuring the data integrit

44、y of a table. Referential Integrity Amethod employed by a relational database system that enforcesone-to-many relationships between tables.3.3. Data Modeling In this process the developer conceptualizes and documents all thetables for the database. One of the common methods for modeling adatabase is

45、 called ERA which stands for entities relationships andattributes. The database designer uses an application that can maintainentities their attributes and their relationships. In general an entitycorresponds to a table in the database and the attributes of the entitycorrespond to columns of the tab

46、le. Data Modeling: A process of defining the entities attributes andrelationships between the entities in preparation for creating the physicaldatabase. The data-modeling process involves defining the entities definingthe relationships between those entities and then defining the attributesfor each

47、of the entities. Once a cycle is complete it is repeated as manytimes as necessary to ensure that the designer is capturing what isimportant enough to go into the database. Lets take a closer look at eachstep in the data-modeling process.3.4. Defining the Entities First the designer identifies all o

48、f the entities within the scope of thedatabase application. The entities are the persons places or things that are important tothe organization and need to be tracked in the database. Entities will mostlikely translate neatly to database tables.3.5. Defining the Relationships Between EntitiesOnce th

49、e entities are defined the designer can proceed with defining howeach of the entities is related. Often the designer will pair each entitywith every other entity and ask quotIs there a relationship between these twoentitiesquot Some relationships are obvious some are not.In the widget company databa

50、se there is most likely a relationshipbetween EMP and DEPT but depending on the business rules it isunlikely that the DEPT and SALGRADE entities are related. If thebusiness rules were to restrict certain salary grades to certain departmentsthere would most likely be a new entity that defines the rel

51、ationshipbetween salary grades and departments. This entity would be known as anassociative or intersection table and would contain the valid combinationsof salary grades and departments.Associative Table: A database table that stores the valid combinations ofrows from two other tables and usually e

52、nforces a business rule. Anassociative table resolves a many-to-many relationship.In general there are three types of relationships in a relational database:One-to-many the most common type of relationship is one-to-many. Thismeans that for each occurrence in a given entity the parent entity therema

53、y be one or more occurrences in a second entity the child entity towhich it is related. For example in the widget company database theDEPT entity is a parent entity and for each department there could beone or more employees associated with that department. The relationshipbetween DEPT and EMP is on

54、e-to-many.One-to-one In a one-to-one relationship a row in a table is related to onlyone or none of the rows in a second table. This relationship type is oftenused for sub typing . For example an EMPLOYEE table may hold theinformation common to all employees while the FULLTIMEPARTTIME and CONTRACTOR

55、 tables hold information unique tofull-time employees part-time employees and contractors respectively.These entities would be considered subtypes of an EMPLOYEE andmaintain a one-to-one relationship with the EMPLOYEE table. Theserelationships are not as common as one-to-many relationships because i

56、fone entity has an occurrence for a corresponding row in another entity inmost cases the attributes from both entities should be in a single entity.Many-to-many in a many-to-many relationship one row of a table maybe related to many rows of another table and vice versa. Usually whenthis relationship

57、 is implemented in the database a third entity is definedas an intersection table to contain the associations between the twoentities in the relationship. For example in a database used for schoolclass enrollment the STUDENT table has a many-to-many relationshipwith the CLASS tableone student may ta

58、ke one or more classes and agiven class may have one or more students. The intersection tableSTUDENT_CLASS would contain the combinations of STUDENT andCLASS to track which students are in which classes.4.DBMS Introduction The term database is often to describe a collect: on of related filesthat is

59、organized into an inte-.7ated structure that provides differentpeople variances to the same data. For example the department motorvehicles has a data base of all the informal:on drivers licenses in allcounties and cities in state. Some of the information in the files e.g.past criminal record convictions,and the like may be made available topolice departments other information e.g. a balance due on a speedingticket maybe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论