第二章 体系结构[align=center][/align]
2.2.3Temp Files
1.Oracle will use temporary files to store the intermediate results of a large sort operation, or result set,when there is insufficient memory to hold it all in RAM.
当内存不足以在RAM中保存一个大规模排序操作的中间结果或结果集,Oracle使用临时文件来存储它们。
2.Permanent data objects, such as a table or an index, will never be stored in a temporaty file, but the contents of a temporary table or index would be.
3.Each and every change you make to an object will be recorded in the redo logs-these transaction logs can be replayed at a later date in order to 'redo a transaction'. Temporary files are exclueded from this process. Temporary files never have redo generated for them, although they do have UNDO generated.
2.2.4Control Files
1.The control file is a fairly small file that contains a directory of the other files Oracle needs. The parameter file tells the instance where the control files are, the control files tell the instance where the database and online redo log files are.
2.Control files should be multiplexed either by hardware or by Oracle when RAID or mirroring is not available-more than one copy of them should exist and they should be stored on separate disks, to avoid losing them in the event you hav a disk failure.
2.2.5Redo Log Files
2.2.5.1.Online redo log
1.Every Oracle database has at least two online redo log files. These online redo log files are fixed in size and are used in a circular fashion. Oracle will write to log file1, and when it gets to the end of this file, it will switch to log file2, and rewrite the contents of that file from start to end.
2.Since the redo logs are used to recover transactions in the event of a failure, we must assure ourselves that we won't need the contents of a redo log file in the event of a failure before we reuse it.
因为重做日志是用来在失败时进行恢复处理用的,必须保证,在重用之前,不需要在失败时重做日志的内容。
3.数据库缓冲区高速缓存是数据库块临时存储数据的地方。这是Oracle的SGA的结构。当块被读取时,它们就存储于这个缓存区高速缓存中——希望将来会允许不必物理地重读它们。缓冲区高速缓存是第一个,也是最重要的性能优化设备,它单独存在,以便使非常慢的物理I/O进程显得更快一些。当通过更新块中的一行来修改一个块时,这些修改在内存中,对缓冲区高速缓存中的块进行操作。重做这个修改的足够信息存储在重做日志缓冲器,即另一个SGA数据结构中。当提交修改,将修改永久化时,Oracle不会再任何SGA中修改块,并将它们写到磁盘上。相反,它只是将重做日志缓冲器中的内容写到联机重做日志中。
4.只要修改的块在缓冲区高速缓存中而不在磁盘上,就需要联机重做日志的内容,以防止数据库失败。
5.这是DBWn开始活动的地方。它是Oracle后台进程,负责在缓冲区高速缓存溢出的时候创造空间,最重要的是,执行检查点。检查点是缓冲区高速缓存到磁盘上脏(修改过的)块的刷新。
2.2.5.2Archived Redo log
1.The Oracle database can run in one of two modes-NoArchiveLog mode and ArchiverLog mode. A system is not a production system unless it is in ArchiveLog mode.
2.A database that is not in ArchiveLog mode will, some day, lose data.
3.The difference between these two modes is simply what happens to a redo log file when Oracle goest to reuse it. 'Will we keep a copy of that redo or should Oracle just overwrite it, losing it forever?'
分享到:
相关推荐
物联网技术已经引起国内学术界、工业界和新闻媒体的高度重视,当前物联网的定义、内在原理、体系结构 和系统模型等方面还存在许多值得探讨的问题,通过对现有物联网技术文献和应用实例的分析,探讨了物联网与 下一代网...
计算机体系结构授课的第二章的课件,希望对大家有帮助
计算机体系结构是指那些对程序员可见的系统属性,还包括设计思想与体系结构。
第二章 Web搜索引擎工作原理和体系结构.pdf第二章 Web搜索引擎工作原理和体系结构.pdf第二章 Web搜索引擎工作原理和体系结构.pdf第二章 Web搜索引擎工作原理和体系结构.pdf第二章 Web搜索引擎工作原理和体系结构.pdf...
第二章 Oracle体系结构.ppt,不错的课件,欢迎下载.
介绍软件体系结构的基本原理、方法和实践。
计算机系统结构第二章作业及答案.pdf
全书共4篇22章,第一篇“基础篇:软件体系结构的理论”,第二篇“软件复用与构件库的设计”,第三篇“软件规模的度量”,第四篇“软件的性能抗衰”。第一篇分为8章,介绍了软件体系结构的基础理论,包括软件体系结构...
第二章 Oracle体系结构.pptx
计算机研究生课程,《计算机体系结构》习题答案,从第二章到第十二章有全部答案,不包括星号习题。答案可作为参考,还是要自己思考啊
第二章Asterisk体系结构.pdf中文版
第二章分布式数据库系统体系结构.ppt
计算机体系结构第2版第三章课后习题答案 计算机体系结构第2版第三章课后习题答案 计算机体系结构第2版第三章课后习题答案
计算机体系结构金星第一章体系结构基本概念之二.ppt
微机原理:第二章 8086体系结构.ppt
计算机网络课件第二章网络体系结构.ppt
计算机体系结构第六章PPT课件.pptx
第二章面向服务体系结构SOA.ppt