oracle++OCP+1Z0052认证考试重点部分Word文件下载.docx
《oracle++OCP+1Z0052认证考试重点部分Word文件下载.docx》由会员分享,可在线阅读,更多相关《oracle++OCP+1Z0052认证考试重点部分Word文件下载.docx(20页珍藏版)》请在冰豆网上搜索。
Writesmodified(dirty)buffersinthedatabasebuffercachetodisk:
•Asynchronouslywhileperformingotherprocessing
•Toadvancethecheckpoint
将数据库缓冲区高速缓存中经过修改的缓冲区(灰数据缓冲区)写入磁盘有两种方式:
•在执行其它处理时异步执行
•推进检查点(DBW1到DBW9以及DBWa到DBWz)
将缓冲区的内容写入数据文件;
LGWR:
Writestheredologbuffertoaredologfileondisk
•Writes:
–Whenauserprocesscommitsatransaction–Whentheredologbufferisone-thirdfull
–BeforeaDBWnprocesswritesmodifiedbufferstodisk–Every3seconds
将重做日志缓冲区写入磁盘上的重做日志文件中
•在以下情况下执行写操作:
–用户进程提交事务处理时;
–重做日志缓冲区的三分之一已满时;
–DBWn进程将经过修改的缓冲区写入磁盘之前;
–每隔3秒
SMON:
TheSystemMonitorprocess(SMON)performsrecoveryatinstancestartupifnecessary.•Performsrecoveryatinstancestartup•Cleansupunusedtemporarysegments
系统监视器进程(SMON)可在实例启动时执行恢复(如果需要)•在实例启动时执行恢复•清除不使用的临时段
PMON:
Performsprocessrecoverywhenauserprocessfails–Cleansupthedatabasebuffercache–Freesresourcesthatareusedbytheuserprocess;
•Monitorssessionsforidlesessiontimeout•DynamicallyregistersdatabaseserviceswithlistenersTheProcessMonitorprocess(PMON)performsprocessrecoverywhenauserprocessfails.
在用户进程失败时执行进程恢复–清除数据库缓冲区高速缓存–释放该用户进程使用的资源•监视会话,查看是否发生空闲会话超时•在监听程序中动态注册数据库服务
进程监视器进程(PMON)在用户进程失败时执行进程恢复。
3.请解释检查点进程(CKPT)的作用,并说明检查点的用途。
Recordscheckpointinformationin–Controlfile–Eachdatafileheader
Acheckpointisadatastructurethatdefinesasystemchangenumber(SCN)intheredothreadofadatabase.Theyareacrucialelementofrecovery.
检查点信息记录在以下位置–控制文件–每个数据文件头
“检查点”是一种数据结构,它定义了数据库的重做线程中的系统更改号(SCN)。
它们是恢复操作的关键元素。
4.Oracle数据库存储结构中共包含有8种不同类型的文件,它们分别是控制文件、数据
文件、联机重做日志文件、参数文件、备份文件、归档重做日志文件、口令文件、预警
日志和跟踪文件,请分别对这些文件的特征和用途加以说明。
Controlfiles:
Containdataaboutthedatabaseitself(thatis,physicaldatabasestructureinformation).Itcanalsocontainmetadatarelatedtobackups.
控制文件:
包含与数据库本身相关的数据,即物理数据库结构信息。
这些文件对数据库至关重要。
控制文件还可以包含与备份相关的元数据。
Datafiles:
Containtheuserorapplicationdataofthedatabase,aswellasmetadataandthedatadictionary
•数据文件:
包含数据库的用户或应用程序数据,以及元数据和数据字典。
Onlineredologfiles:
Allowforinstancerecoveryofthedatabase.Ifthedatabaseservercrashesanddoesnotloseanydatafiles,theinstancecanrecoverthedatabasewiththeinformationinthesefiles
•联机重做日志文件:
用于进行数据库的实例恢复。
如果数据库服务器发生崩溃,但未丢失任何数据文件,实例便可使用这些文件中的信息恢复数据库。
Parameterfile:
Isusedtodefinehowtheinstanceisconfiguredwhenitstartsup
•参数文件:
用于定义实例启动时的配置。
•Passwordfile:
Allowsusersusingthesysdba,sysoper,andsysasmrolestoconnectremotelytotheinstanceandperformadministrativetasks
•口令文件:
允许用户使用sysdba、sysoper和sysasm角色远程连接到实例并执行管理任务。
Backupfiles:
Areusedfordatabaserecovery.Youtypicallyrestoreabackupfilewhenamediafailureorusererrorhasdamagedordeletedtheoriginalfile.
•备份文件:
用于进行数据库恢复。
介质出现故障或因用户错误而损坏或删除原始文件时,通常会还原备份文件。
•Archivedredologfiles:
Containanongoinghistoryofthedatachanges(redo)thataregeneratedbytheinstance.Usingthesefilesandabackupofthedatabase,youcanrecoveralostdatafile.Thatis,archivelogsenabletherecoveryofrestoreddatafiles.
•归档重做日志文件:
包含实例发生的数据更改(重做)的实时历史记录。
使用这些文件和数据库备份,可以恢复丢失的数据文件。
也就是说,使用归档日志可以恢复还原的数据文件
•Alertlogfile:
Thesearespecialtraceentries.Thealertlogofadatabaseisachronologicallogofmessagesanderrors.Oraclerecommendsthatyoureviewthealertlogperiodically.
预警日志文件:
这些文件包含特殊的跟踪条目。
数据库的预警日志是一个按时间顺序记录消息和错误的日志。
Oracle建议您定期检查此预警日志。
5.请解释Oracle数据库的逻辑存储结构,并说明逻辑结构和物理结构是如何关联的。
Logical逻辑机构:
DatabaseTablespaceSegmentExtentdatablock5部分。
Segmentsexistinatablespace.•Segmentsarecollectionsofextents.•Extentsarecollectionsofdatablocks.•Datablocksaremappedtodiskblocks.
数据库、表空间、段、区、数据块
段存在于表空间中。
•
段是区的集合。
区是数据块的集合。
数据块映射到磁盘块
Physical物理结构:
Datafile数据文件
物理结构和逻辑结构的关系:
Eachdatabaseislogicallydividedintotwoormoretablespaces:
theSYSTEMandSYSAUXtablespaces.Oneormoredatafilesareexplicitlycreatedforeachtablespacetophysicallystorethedataofalllogicalstructuresinatablespace.
每个数据库都在逻辑上分为两个或多个表空间:
SYSTEM和SYSAUX表空间。
在每个表空间均显式创建一个或多个数据文件,以在物理上存储表空间中所有逻辑结构的数据。
6.使用DBCA创建数据库时,按照教材上给出的步骤与设置,会默认创建出几个表空间?
请分别给出这些表空间的名称,并说明各自的用途。
theSYSTEMandSYSAUXtablespaces.
TheSYSTEMtablespaceisalwaysonlinewhenthedatabaseisopen.Itstorestablesthatsupportthecorefunctionalityofthedatabase,suchasthedatadictionarytables.
SYSTEM表空间始终处于联机状态。
这个表空间存储了支持数据库核心功能的表,如数据字典表。
TheSYSAUXtablespaceisanauxiliarytablespacetotheSYSTEMtablespace.TheSYSAUXtablespacestoresmanydatabasecomponents,and