书上说:checkpoints可以用log_checkpoint_interval及log_checkpoint_timeout这两个参数进行调整,请教各位大虾:log_checkpoint_interval及log_checkpoint_timeout是如何对checkpoints起作用的呢?
解决方案 »
- 存储过程创建出错,等......
- 想了解下oracle个人版
- 在UNIX环境下怎样查看某用户在某时做过某种DDL操作
- 条件判断中的 IN 的使用
- 怎样查询执行 Oracle update操作的操作系统用户名
- 请教各位兄弟:oracle使用存储过程查询的语句怎么写啊,总是搞不定,求各位帮忙!
- 请问我想取出记录集的第30之60条记录,应该怎么写呢?我写成where rownum>30 and rownum<60为什么选不出来纪录呢?
- 菜鸟请教,如何使现在oracle中对表进行加锁?
- 关于数据库导入慢的问题~!!100分!急
- Oracle数据导入问题
- 请高手帮忙,关于数据库迁移的问题,从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.
哪位大虾可以帮助解释一下上面这段话的含义?