书上说:checkpoints可以用log_checkpoint_interval及log_checkpoint_timeout这两个参数进行调整,请教各位大虾:log_checkpoint_interval及log_checkpoint_timeout是如何对checkpoints起作用的呢?
解决方案 »
- oracle大量数据导入
- Oracle中怎么用触发器实现一个表中不能存在两个PRESIDENT职业
- windows 下 如何設定oracle 自動啟動時選指定的ora文件
- 同样的语句不同写法 差别很大 不知道为什么?
- 我在安装oracle9i后一切正常,能通过delphi(BDE)连接到oracle,但重新启动时报错啊19011
- 手工建立oracle数据库的详细步骤?
- 大家都从事oracle多久了
- oracle 怎么创建实际的关系数据库?
- 请问,怎么用net8连接另一台机器上的数据库?
- 请问SQLLDR导null空值,一直提示不是ora01722无效数字,向各位求助!
- 请高手帮忙,关于数据库迁移的问题,从sqrserver到oracle
- 如何在插入记录时同时把生成的序列也取出来?SQL语句。
一般UNIX操作系统的数据块为512bytes。
从性能优化来说log_checkpoint_interval=redologfilesizebytes/512bytes3、log_checkpoint_timeoutOracle8.1版本后log_checkpoint_timeout指的是两次checkpoint之间时间秒数。
Oracle建议不用这个参数来控制,因为事务(transaction)大小不是按时间等量分布的。用log_checkpoint_interval参数控制会好一些。
禁用此参数或者按默认的900。log_checkpoint_timeout=0
TO welyngj(平平淡淡) :
对于这句话:"从性能优化来说log_checkpoint_interval=redologfilesizebytes/512bytes"
我可以这样理解吗? 就是说通过调整log_checkpoint_interval的大小,来改变redologfilesize,进而影响checkpoint的发生频度, 最后影响实例恢复时所需要的时间, 这样理解对吗?
log_checkpoint_interval=redologfilesizebytes/操作系统块大小
所以设置log_checkpoint_interval的时候,要避免不必要的检查点
log_checkpoint_interval的大小,改变不了redologfilesize但redologfilesize也是影响检查点的间隔
Checkpoints can be adjusted using the following initialization parameters:
LOG_CHECKPOINT_INTERVAL The checkpoint position in the redo log files cannot lag behind the end of the log file by more than the number of OS blocks specified by this parameter(--唉,光这句话我就犯晕了). (In release 8 and earlier, this parameter specified the frequency of checkpoints in terms of operating system blocks; after the LGWR writes a specified number of blocks to the redo log file, a checkpoint is initiated). This ensures that no more than a fixed number of blocks are read during instance recovery. For example, if the redo log file size is 1MB, that is 2000 OS blocks; if the OS block size is 512KB, then setting the parameter to 500 will initiate a checkpoint when the redo log file is 1500 blocks full. If this parameter value exceeds the actual redo log file size or is set to zero, then checkpoints occur only when a log switch occurs. The default value for this parameter is OS dependent.
哪位大虾可以帮助解释一下上面这段话的含义?