您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > Oracle 11gR2 概念 第11章 物理存储结构
@hotmail.comPreviousNextViewPDF11PhysicalStorageStructuresPreviousNextViewPDF第11章物理存储结构ThischapterdescribestheprimaryphysicaldatabasestructuresofanOracledatabase.Physicalstructuresareviewableattheoperatingsystemlevel.本章介绍了Oracle数据库的主要物理数据库结构。物理结构可以在操作系统级别查看。Thischaptercontainsthefollowingsections:本章包含以下各节:IntroductiontoPhysicalStorageStructuresoMechanismsforStoringDatabaseFilesoOracleAutomaticStorageManagement(OracleASM)oOracleManagedFilesandUser-ManagedFilesOverviewofDataFilesoUseofDataFilesoPermanentandTemporaryDataFilesoOnlineandOfflineDataFilesoDataFileStructureOverviewofControlFilesoUseofControlFilesoMultipleControlFilesoControlFileStructureOverviewoftheOnlineRedoLogoUseoftheOnlineRedoLogoHowOracleDatabaseWritestotheOnlineRedoLogoStructureoftheOnlineRedoLog物理存储结构简介o用于存储数据库文件的机制oOracle自动存储管理(OracleASM)oOracle管理的文件和用户管理的文件数据文件的概述o使用数据文件o永久和临时数据文件o联机和脱机数据文件o数据文件结构控制文件的概述o使用控制文件o多个控制文件o控制文件结构联机重做日志概述o使用联机重做日志oOracle数据库如何写入到联机重做日志o联机重做日志的结构IntroductiontoPhysicalStorageStructures物理存储结构简介OnecharacteristicofanRDBMSistheindependenceoflogicaldatastructuressuchastables,views,andindexesfromphysicalstoragestructures.Becausephysicalandlogicalstructuresareseparate,youcanmanagephysicalstorageofdatawithoutaffectingaccesstologicalstructures.Forexample,renamingadatabasefiledoesnotrenamethetablesstoredinit.RDBMS的特点之一是逻辑数据结构(如表、视图和索引)与物理存储结构的独立性。由于物理结构和逻辑结构是分开的,您可以管理数据的物理数据存储,而不会影响对逻辑结构的访问。例如,重命名数据库文件并不会重命名存储在其中的表。AnOracledatabaseisasetoffilesthatstoreOracledatainpersistentOracle数据库是在持久性的磁盘存储中存储的一组Oracle数据文件。此部@hotmail.comdiskstorage.ThissectiondiscussesthedatabasefilesgeneratedwhenyouissueaCREATEDATABASEstatement:分讨论您发出CREATEDATABASE语句时生成的数据库文件:Datafilesandtempfiles数据文件和临时文件AdatafileisaphysicalfileondiskthatwascreatedbyOracleDatabaseandcontainsdatastructuressuchastablesandindexes.Atempfileisadatafilethatbelongstoatemporarytablespace.ThedataiswrittentothesefilesinanOracleproprietaryformatthatcannotbereadbyotherprograms.数据文件是磁盘上的一个物理文件,由Oracle数据库创建,并包含如表和索引之类的数据结构。临时文件是一个属于临时表空间的数据文件。数据按Oracle专有格式写入这些文件,且不能由其他程序读取。Controlfiles控制文件Acontrolfileisarootfilethattracksthephysicalcomponentsofthedatabase.控制文件是一个跟踪数据库的物理组件的根文件。Onlineredologfiles联机重做日志文件Theonlineredologisasetoffilescontainingrecordsofchangesmadetodata.在线重做日志是一组包含对数据所做的更改记录的文件。Adatabaseinstanceisasetofmemorystructuresthatmanagedatabasefiles.Figure11-1showstherelationshipbetweentheinstanceandthefilesthatitmanages.数据库实例是一组管理数据库文件的内存结构。图11-1显示实例和它所管理的文件之间的关系。Figure11-1DatabaseInstanceandDatabaseFiles图11-1数据库实例和数据库文件DescriptionofFigure11-1DatabaseInstanceandDatabaseFilesDescriptionofFigure11-1DatabaseInstanceandDatabaseFilesSeeAlso:另见:OracleDatabaseAdministrator'sGuidetolearnhowtocreateadatabase《Oracle数据库管理员指南》了解如何创建数据库@hotmail.comOracleDatabaseSQLLanguageReferenceforCREATEDATABASEsemanticsandsyntax《Oracle数据库SQL语言参考》有关CREATEDATABASE的语义和语法MechanismsforStoringDatabaseFiles用于存储数据库文件的机制Severalmechanismsareavailableforallocatingandmanagingthestorageofthesefiles.Themostcommonmechanismsinclude:有几种机制可用于分配和管理这些文件的存储。最常见的机制包括:OracleAutomaticStorageManagement(OracleASM)Oracle自动存储管理(OracleASM)OracleASMincludesafilesystemdesignedexclusivelyforusebyOracleDatabase.OracleAutomaticStorageManagement(OracleASM)describesOracleASM.OracleASM包括被专门设计用来供Oracle数据库使用的文件系统。Oracle自动存储管理(OracleASM)描述了OracleASM。Operatingsystemfilesystem操作系统文件系统MostOracledatabasesstorefilesinafilesystem,whichisadatastructurebuiltinsideacontiguousdiskaddressspace.Alloperatingsystemshavefilemanagersthatallocateanddeallocatediskspaceintofileswithinafilesystem.大多数Oracle数据库在文件系统中存储文件,这是建立在一个连续的磁盘地址空间内的数据结构。所有操作系统都有文件管理器,用于在文件系统中为文件分配和释放磁盘空间。Afilesystemenablesdiskspacetobeallocatedtomanyfiles.EachfilehasanameandismadetoappearasacontiguousaddressspacetoapplicationssuchasOracleDatabase.Thedatabasecancreate,read,write,resize,anddeletefiles.文件系统可以将磁盘空间分配给多个文件。每个文件都有一个名称,并对应用程序(如Oracle数据库)显示为一个连续地址空间。数据库可以创建、读取、写入、调整大小、和删除文件。Afilesystemiscommonlybuiltontopofalogicalvolumeconstructedbyasoftwarepackagecalledalogicalvolumemanager(LVM).TheLVMenablespiecesofmultiplephysicaldiskstobecombinedintoasinglecontiguousaddressspacethatappearsasonedisktohigherlayersofsoftware.文件系统通常是由称为逻辑卷管理器(LVM)的软件包创建,并建立在逻辑卷的基础上。LVM使多个物理磁盘被合并到一个单一的连续地址空间,对上层软件显示为一块磁盘。Rawdevice原始设备Rawdevicesarediskpartitionsorlogicalvolumesnotformattedwithafilesystem.TheprimarybenefitofrawdevicesistheabilitytoperformdirectI/Oandtowritelargerbuffers.IndirectI/O,applicationswritetoandreadfromthestoragedevicedirectly,bypassingtheoperatingsystembuffercache.原始设备是一些磁盘分区,或未使用文件系统格式化的逻辑卷。原始设备的主要好处是能够执行直接I/O操作,并按更大的缓冲区写入。对于直接I/O,应用程序直接向存储设备写入或从存储设备读取,绕过操作系统缓冲区高速缓存。Note:注意:ManyfilesystemsnowsupportdirectI/Ofordatabasesandother现在许多文件系统都支持数据库和其他应用程序的直接I/O,让它们
本文标题:Oracle 11gR2 概念 第11章 物理存储结构
链接地址:https://www.777doc.com/doc-5856785 .html