Database Systems versus File Systems
Consider part of a savings-bank enterprise that keeps information about all customers and savings accounts. One way to keep the information on a computer is to store it in operating system files. To allow users to manipulate the information,the system has a number of application programs that manipulate the files,including
-A program to debit or credit an account
-A program to add a new account
-A program to find the balannce of an account
-A program to ganerate monthly statements
System programmers wrote these application programs to meet the needs of the bank.
New application programs are added to system as the need arises.For example,suppose that the savings bank decides to offer checking accounts. As a result,the bank creates new permanent files that contian information about all the checking accounts maintained in the bank, and it may have to write new application programs to deal with situations that do not arise in savings accounts, such as overdrafts. Thus,as time goes by,the system acquires more files and more application programs.
This typical file-processing system is supported by a conventional operating system. The system stores permanent records in various files,and it needs different application programs to extract records from, and add records to, the appropriate files.Before database management systems(DBMSs) came along, organizations usually stored information in such systems.
Keeping organizational information in a file-processing systems has a number of major disadvantages:
Data redundancy and inconsistancy. Since different programmers create the files and application programs over a long period,the various files are likely to have different formats and the programs may be written in several programming languages. Moreover, the same information may be duplicated in several places(files). For example,the address and telephone number of a particular customer may appear in a file that consists of savings-account records and in a file that consists of checking-account records. This redundancy leads to higher storage and access cost. In addition,it may lead to data inconsistancy; that is, the various copies of the same data may no longer agree. For example, a changed customer address may be reflected in savings-account records but not elsewhere in the system.
Difficulty in accessing data. Suppose that one of the bank officers needs to find out the names of all customers who live within a particular postal-code area. The officer asks the data-processing department to generate such a list. Because the designers of the original system did not anticipate this request,there is no application program on hand to meet it.There is,however,an application program to generate the list of all customers. The bank officer has
ระบบฐานข้อมูลและระบบแฟ้มพิจารณาเป็นส่วนหนึ่งขององค์กรธนาคารออมสินที่เก็บข้อมูลเกี่ยวกับลูกค้าและบัญชีออมทรัพย์ทั้งหมด วิธีหนึ่งในการเก็บข้อมูลในคอมพิวเตอร์จะเก็บไว้ในแฟ้มระบบปฏิบัติการ เพื่อให้ผู้ใช้จัดการข้อมูล ระบบมีหมายเลขของโปรแกรมประยุกต์ที่จัดการกับไฟล์ รวมทั้ง-โปรแกรมการเดบิต หรือเครดิตบัญชี-A โปรแกรมเพื่อเพิ่มบัญชีใหม่-A โปรแกรมจะค้นหา balannce ของบัญชีผู้ใช้-A โปรแกรม ganerate งบรายเดือนระบบโปรแกรมเมอร์เขียนโปรแกรมประยุกต์เหล่านี้เพื่อตอบสนองความต้องการของธนาคารโปรแกรมประยุกต์ใหม่จะเพิ่มระบบ ตามต้อง ตัวอย่างเช่น สมมติว่า ธนาคารออมสินตัดสินใจที่จะเสนอบัญชีการตรวจสอบ ดัง ธนาคารสร้างแฟ้มถาวรใหม่ที่ contian ข้อมูลเกี่ยวกับบัญชีตรวจสอบทั้งหมดที่เก็บไว้ในธนาคาร และอาจมีการเขียนโปรแกรมประยุกต์ใหม่เพื่อจัดการกับสถานการณ์ที่เกิดขึ้นในบัญชีออมทรัพย์ เช่นเงินเบิกเกินบัญชีไม่ ดังนั้น เวลาเป็นไปตาม ระบบการรับแฟ้มและโปรแกรมประยุกต์อื่น ๆระบบการประมวลผลแฟ้มนี้โดยทั่วไปได้รับการสนับสนุน โดยระบบปฏิบัติการทั่วไป ระบบเก็บบันทึกถาวรในไฟล์ต่าง ๆ และต้องการโปรแกรมประยุกต์ที่แตกต่างกันเพื่อแยกระเบียนจาก และเพิ่มระเบียน แฟ้มเหมาะสม ก่อนมา systems(DBMSs) การจัดการฐานข้อมูล องค์กรมักจะเก็บข้อมูลในระบบดังกล่าวKeeping organizational information in a file-processing systems has a number of major disadvantages:Data redundancy and inconsistancy. Since different programmers create the files and application programs over a long period,the various files are likely to have different formats and the programs may be written in several programming languages. Moreover, the same information may be duplicated in several places(files). For example,the address and telephone number of a particular customer may appear in a file that consists of savings-account records and in a file that consists of checking-account records. This redundancy leads to higher storage and access cost. In addition,it may lead to data inconsistancy; that is, the various copies of the same data may no longer agree. For example, a changed customer address may be reflected in savings-account records but not elsewhere in the system.Difficulty in accessing data. Suppose that one of the bank officers needs to find out the names of all customers who live within a particular postal-code area. The officer asks the data-processing department to generate such a list. Because the designers of the original system did not anticipate this request,there is no application program on hand to meet it.There is,however,an application program to generate the list of all customers. The bank officer has
การแปล กรุณารอสักครู่..
