




已閱讀5頁,還剩1頁未讀, 繼續免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
DatabaseFundamentalsIntroductiontoDBMSAdatabasemanagementsystem(DBMS)isanimportanttypeofprogrammingsystem,usedtodayonthebiggestandthesmallestcomputers.Asforothermajorformsofsystemsoftware,suchascompilersandoperatingsystems,awell-understoodsetofprinciplesfordatabasemanagementsystemshasdevelopedovertheyears,andtheseconceptsareusefulbothforunderstandinghowtousethesesystemseffectivelyandfordesigningandimplementingDBMSs.DBMSisacollectionofprogramsthatenablesyoutostore,modify,andextractinformationfromadatabase.TherearemanydifferenttypesofDBMSs,rangingfromsmallsystemsthatrunonpersonalcomputerstohugesystemsthatrunonmainframes.Therearetwoqualitiesthatdistinguishdatabasemanagementsystemsfromothersortsofprogrammingsystems.1)Theabilitytomanagepersistentdata,and2)Theabilitytoaccesslargeamountsofdataefficiently.Point1)merelystatesthatthereisadatabasewhichexistspermanently;thecontentofthisdatabaseisthedatathataDBMSaccessesandmanages.Point2)distinguishesaDBMSfromafilesystem,whichalsomanagespersistentdata.ADBMSscapabilitiesareneededmostwhentheamountofdataisverylarge,becauseforsmallamountsofdata,simpleaccesstechniques,suchaslinearscansofthedata,areusuallyadequate.WhileweregardtheabovetwopropertiesofaDBMSasfundamental,thereareanumberofothercapabilitiesthatarealmostuniversallyfoundincommercialDBMSs.Theseare:(1)Supportforatleastonedatamodel,ormathematicalabstractionthroughwhichtheusercanviewthedata.(2)Supportforcertainhigh-levellanguagesthatallowtheusertodefinethestructureofdata,accessdata,andmanipulatedata.(3)Transactionmanagement,thecapabilitytoprovidecorrect,concurrentaccesstothedatabasebymanyusersatonce.(4)Accesscontrol,theabilitytolimitaccesstodatabyunauthorizedusers,andtheabilitytocheckthevalidityofdata.(5)Resiliency,theabilitytorecoverfromsystemfailureswithoutlosingdata.DataModelsEachDBMSprovidesatleastoneabstractmodelofdatathatallowstheusertoseeinformationnotasrawbits,butinmoreunderstandableterms.Infact,itisusuallypossibletoseedataatseverallevelsofabstraction.Atarelativelylowlevel,aDBMScommonlyallowsustovisualizedataascomposedoffiles.EfficientFileAccessTheabilitytostoreafileisnotremarkable:thefilesystemassociatedwithanyoperatingsystemdoesthat.ThecapabilityofaDBMSisseenwhenweaccessthedataofafile.Forexample,supposewewishtofindthemanagerofemployeeClarkKent.Ifthecompanyhasthousandsofemployees,ItisveryexpensivetosearchtheentirefiletofindtheonewithNAME=ClarkKent.ADBMShelpsustosetupindexfiles,orindices,thatallowustoaccesstherecordforClarkKentinessentiallyonestrokenomatterhowlargethefileis.Likewise,insertionofnewrecordsordeletionofoldonescanbeaccomplishedintimethatissmallandessentiallyconstant,independentofthefilelength.AnotherthingaDBMShelpsusdoisnavigateamongfiles,thatis,tocombinevaluesintwoormorefilestoobtaintheinformationwewant.QueryLanguagesTomakeaccesstofileseasier,aDBMSprovidesaquerylanguage,ordatamanipulationlanguage,toexpressoperationsonfiles.Querylanguagesdifferinthelevelofdetailtheyrequireoftheuser,withsystemsbasedontherelationaldatamodelgenerallyrequiringlessdetailthanlanguagesbasedonothermodels.TransactionManagementAnotherimportantcapabilityofaDBMSistheabilitytomanagesimultaneouslylargenumbersoftransactions,whichareproceduresoperatingonthedatabase.Somedatabasesaresolargethattheycanonlybeusefuliftheyareoperateduponsimultaneouslybymanycomputers:oftenthesecomputersaredispersedaroundthecountryortheworld.Thedatabasesystemsusebybanks,accessedalmostinstantaneouslybyhundredsorthousandsofautomatedtellermachines(ATM),aswellasbyanequalorgreaternumberofemployeesinthebankbranches,istypicalofthissortofdatabase.Anairlinereservationsystemisanothergoodexample.Sometimes,twoaccessesdonotinterferewitheachother.Forexample,anynumberoftransactionscanbereadingyourbankbalanceatthesametime,withoutanyinconsistency.Butifyouareinthebankdepositingyoursalarycheckattheexactinstantyourspouseisextractingmoneyfromanautomaticteller,theresultofthetwotransactionsoccurringsimultaneouslyandwithoutcoordinationisunpredictable.Thus,transactionsthatmodifyadataitemmust“lockout”othertransactionstryingtoreadorwritethatitematthesametime.ADBMSmustthereforeprovidesomeformofconcurrencycontroltopreventuncoordinatedaccesstothesamedataitembymorethanonetransaction.Evenmorecomplexproblemsoccurwhenthedatabaseisdistributedovermanydifferentcomputersystems,perhapswithduplicationofdatatoallowbothfasterlocalaccessandtoprotectagainstthedestructionofdataifonecomputercrashes.SecurityofDataADBMSmustnotonlyprotectagainstlossofdatawhencrashesoccur,aswejustmentioned,butitmustpreventunauthorizedaccess.Forexample,onlyuserswithacertainclearanceshouldhaveaccesstothesalaryfieldofanemployeefile,andtheDBMSmustbeableassociatewiththevarioususerstheirprivilegestoseefiles,fieldswithinfiles,orothersubsetsofthedatainthedatabase.ThusaDBMSmustmaintainatabletellingforeachuserknowntoit,whataccessprivilegestheuserhasforeachobject.Forexample,oneusermaybeallowedtoreadafile,butnottoinsertordeletedata;anothermaynotbeallowedtoseethefileatall,whileathirdmaybeallowedtoreadormodifythefileatwill.DBMSTypesDesignersdevelopedthreedifferenttypesofdatabasestructures:hierarchical,network,andrelational.Hierarchicalandnetworkwerefirstdevelopedbutrelationalhasbecomedominant.Whiletherelationaldesignisdominant,theolderdatabaseshavenotbeendropped.CompaniesthatinstalledahierarchicalsystemsuchasIMSinthe1970swillbeusingandmaintainingthesedatabasesforyearstocomeeventhoughnewdevelopmentisbeingdoneonrelationalsystems.Theseoldersystemsareoftenreferredtoaslegacysystems.數據庫基礎DBMS簡介數據庫管理系統是編程系統中的重要的一種,現今可以用在最大的以及最小的電腦上。其他主要形式的系統軟件,比如說匯編以及操作系統,近些年來開發出一系列容易理解的數據庫管理系統原則,并且這些概念既有助于理解如何有效利用系統,又可以幫助設計和執行DBMS系統。DBMS是一個程序的集合,它使你能夠存儲、修改以及從數據庫中提取信息。有很多種不同類型的DBMS系統,從運行在個人電腦上的小型系統到運行在大型主機上的巨型系統。DBMS的功能有兩種功能使數據庫管理系統區別于其他設計系統:1)管理固有數據的能力,以及2)高效訪問大量數據的能力。第一點只是表明現有一個固定存在的數據庫;而這個數據庫的內容也就是DBMS所要訪問和管
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 高中生自我反思與評估范文
- 小微企業服務的銀行業務部計劃
- 人教部編版三年級語文閱讀理解教學計劃
- 2024年山東省濟南市槐蔭區中考二模語文試卷
- 幼兒園安全教育消防安全
- 湖南文藝出版社小學音樂二年級下冊教學計劃
- 六年級上冊班主任課外活動計劃
- 九年級下冊體育實驗教學計劃
- 2025年第六屆全國安全生產知識競賽題庫及答案(共140題)
- 急診科車禍的急救與護理
- 廣東省2024-2025學年佛山市普通高中教學質量檢測政治試卷及答案(二)高三試卷(佛山二模)
- 11.1 杠桿 課件 2024-2025學年教科版物理八年級下學期
- 搶救工作制度課件
- LOGO更換普通夾板作業課件
- 2025年415全民國家安全教育日主題班會課件
- 美容師考試與法律法規相關知識及試題答案
- 山東省東營市東營區勝利第一初級中學2024-2025學年九年級下學期一模英語試卷(含答案無聽力原文及音頻)
- 臨床決策支持系統在路徑優化中的實踐案例
- 推動研究生教育高質量發展方案
- 2025-2030中國藥用活性炭行業市場現狀供需分析及投資評估規劃分析研究報告
- 漢服實體店創業計劃書
評論
0/150
提交評論