已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Database FundamentalsIntroduction to DBMS A database management system (DBMS) is an important type of programming system, used today on the biggest and the smallest computers. As for other major forms of system software, such as compilers and operating systems, a well-understood set of principles for database management systems has developed over the years, and these concepts are useful both for understanding how to use these systems effectively and for designing and implementing DBMSs. DBMS is a collection of programs that enables you to store, modify, and extract information from a database. There are many different types of DBMSs, ranging from small systems that run on personal computers to huge systems that run on mainframes. There are two qualities that distinguish database management systems from other sorts of programming systems. 1) The ability to manage persistent data, and 2) The ability to access large amounts of data efficiently. Point 1) merely states that there is a database which exists permanently; the content of this database is the data that a DBMS accesses and manages. Point 2) distinguishes a DBMS from a file system, which also manages persistent data. A DBMSs capabilities are needed most when the amount of data is very large, because for small amounts of data, simple access techniques, such as linear scans of the data, are usually adequate. While we regard the above two properties of a DBMS as fundamental, there are a number of other capabilities that are almost universally found in commercial DBMSs. These are: (1) Support for at least one data model, or mathematical abstraction through which the user can view the data. (2) Support for certain high-level languages that allow the user to define the structure of data, access data, and manipulate data. (3) Transaction management, the capability to provide correct, concurrent access to the database by many users at once. (4) Access control, the ability to limit access to data by unauthorized users, and the ability to check the validity of data.(5) Resiliency, the ability to recover from system failures without losing data. Data Models Each DBMS provides at least one abstract model of data that allows the user to see information not as raw bits, but in more understandable terms. In fact, it is usually possible to see data at several levels of abstraction. At a relatively low level, a DBMS commonly allows us to visualize data as composed of files. Efficient File Access The ability to store a file is not remarkable: the file system associated with any operating system does that. The capability of a DBMS is seen when we access the data of a file. For example, suppose we wish to find the manager of employee Clark Kent. If the company has thousands of employees, It is very expensive to search the entire file to find the one with NAME=Clark Kent. A DBMS helps us to set up index files, or indices, that allow us to access the record for Clark Kent in essentially one stroke no matter how large the file is. Likewise, insertion of new records or deletion of old ones can be accomplished in time that is small and essentially constant, independent of the file length. Another thing a DBMS helps us do is navigate among files, that is, to combine values in two or more files to obtain the information we want. Query Languages To make access to files easier, a DBMS provides a query language, or data manipulation language, to express operations on files. Query languages differ in the level of detail they require of the user, with systems based on the relational data model generally requiring less detail than languages based on other models. Transaction Management Another important capability of a DBMS is the ability to manage simultaneously large numbers of transactions, which are procedures operating on the database. Some databases are so large that they can only be useful if they are operated upon simultaneously by many computers: often these computers are dispersed around the country or the world. The database systems use by banks, accessed almost instantaneously by hundreds or thousands of automated teller machines (ATM), as well as by an equal or greater number of employees in the bank branches, is typical of this sort of database. An airline reservation system is another good example. Sometimes, two accesses do not interfere with each other. For example, any number of transactions can be reading your bank balance at the same time, without any inconsistency. But if you are in the bank depositing your salary check at the exact instant your spouse is extracting money from an automatic teller, the result of the two transactions occurring simultaneously and without coordination is unpredictable. Thus, transactions that modify a data item must “lock out” other transactions trying to read or write that item at the same time. A DBMS must therefore provide some form of concurrency control to prevent uncoordinated access to the same data item by more than one transaction. Even more complex problems occur when the database is distributed over many different computer systems, perhaps with duplication of data to allow both faster local access and to protect against the destruction of data if one computer crashes. Security of Data A DBMS must not only protect against loss of data when crashes occur, as we just mentioned, but it must prevent unauthorized access. For example, only users with a certain clearance should have access to the salary field of an employee file, and the DBMS must be able associate with the various users their privileges to see files, fields within files, or other subsets of the data in the database. Thus a DBMS must maintain a table telling for each user known to it, what access privileges the user has for each object. For example, one user may be allowed to read a file, but not to insert or delete data; another may not be allowed to see the file at all, while a third may be allowed to read or modify the file at will.DBMS Types Designers developed three different types of database structures: hierarchical, network, and relational. Hierarchical and network were first developed but relational has become dominant. While the relational design is dominant, the older databases have not been dropped. Companies that installed a hierarchical system such as IMS in the 1970s will be using and maintaining these databases for years to come even though new development is being done on relational systems. These older systems are often referred to as legacy systems.数 据 库 基 础DBMS 简介数据库管理系统是编程系统中的重要的一种,现今可以用在最大的以及最小的电脑上。其他主要形式的系统软件,比如说汇编以及操作系统,近些年来开发出一系列容易理解的数据库管理系统原则,并且这些概念既有助于理解如何有效利用系统,又可以帮助设计和执行DBMS系统。DBMS是一个程序的集合,它使你能够存储、修改以及从数据库中提取信息。有很多种不同类型的DBMS系统,从运行在个人电脑上的小型系统到运行在大型主机上的巨型系统。DBMS的功能有两种功能使数据库管理系统区别于其他设计系统:1) 管理固有数据的能力,以及2) 高效访问大量数据的能力。第一点只是表明现有一个固定存在的数据库;而这个数据库的内容也就是DBMS所要访问和管理的那些数据。第二点将DBMS和同样能管理固有数据的文件系统区分开来。通常在数据量非常大的时候才需要用到DBMS系统的功能,因为对于小量数据而言,简单的访问技术(如对数据的线性扫描)就足够了。虽然我们将以上两点作为DBMS的基本特性,但是其他一些功能也是在商业DBMS系统中常见的,它们是:(1)支持至少一种用户可以据之浏览数据的数据模式或数学提取方式。(2)支持某种允许用户用来定义数据的结构、访问和操纵数据的高级语言。(3)事务管理,即对多个用户提供正确、同时访问数据库的能力。(4)访问控制,即限制未被授权用户对数据的访问能力,以及检测数据有效性的能力。(5)恢复功能,即能够从系统错误中恢复过来而不丢失数据的能力。数据模型 每个DBMS提供了至少一种允许用户不是以原始比特位的方式,而是以更容易理解的术语来观看信息的抽象数据模型。实际上,通常要观察以几个不同级别提取出来的数据是可能的。在相关的低级别中,DBMS一般允许我们将数据形象化为文件的组成部分。高效数据访问 存储一个文件的能力并不特别:操作系统中结合的文件系统都能够如此。DBMS的能力在我们访问文件的数据时才能显露出来。比如,假设我们希望找到员工经理“克拉克肯特”。如果这个公司有上万员工,则要通过NAME“克拉克肯特”搜索整个文件来找到这个人是非常费时的。而DBMS帮助我们建立“索引文件”或“索引”,不管文件有多大,它都使我们能够一举访问到“克拉克肯特”的记录。同样的,新记录的插入或者原有记录的删除都可以在较短并且本质上恒定的时间内完成,而不依赖于文件的长度。DBMS还可以帮助我们进行文件间的导航,即通过结合两个或更多文件的值来获得我们所需的信息。查询语言 为了使访问文件更容易,DBMS提供了查询语言(或者说数据控制语言)来表达对文件的操作。查询语言对用户所提供的细节的详细程度要求有所不同,基于关系数据模型的系统通常比基于其他模型的系统所需的细节要少。事务管理 DBMS的另外一项重要功能就是同时管理大量事务的能力。事务即是数据库中运行的进程。某些数据库是如此之大,它们只有在被多台计算机同时操作时才有用武之地:通常这些计算机分散在全国甚至世界各地。银行中
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 原油蒸馏工岗前安全防护考核试卷含答案
- 彩画作文物修复师岗前安全宣贯考核试卷含答案
- 2025年大学二年级生物信息工程专业《生物信息分析》期末考试测验卷及答案
- 甲基氯硅烷生产工岗前实操知识水平考核试卷含答案
- 《GBT 35338-2017 大豆茎褐腐病菌检疫鉴定方法》专题研究报告
- 高频电感器绕制工岗前操作技能考核试卷含答案
- 美术颜料制造工现场作业技术规程
- 《GBT 35523-2017 化学品 地表水中好氧矿化 生物降解模拟试验》专题研究报告
- 稀土储氢材料工岗位职业健康及安全技术规程
- 《GBT 34890-2017产品几何技术规范(GPS) 数字摄影三坐标测量系统的验收检测和复检检测》专题研究报告
- 2023第十一届贵州人才博览会黔西南州农业林业科学研究院引进高层次人才和急需紧缺人才8人笔试备考题库及答案解析
- 对初中地理命题的理解
- 细菌和病毒的遗传分析
- (完整word版)扣字词汇124
- 全口无牙颌解剖标志的识别
- GB/T 27548-2011移动式升降工作平台安全规则、检查、维护和操作
- GB/T 1348-1988球墨铸铁件
- 三相异步电机电气原理图
- 农民合作社的运营与管理
- 生物技术制药试题及重点
- 世界文明与世界宗教课件
评论
0/150
提交评论