易截截图软件、单文件、免安装、纯绿色、仅160KB

ORACLE RBA(redo byte address)

Redo Byte Address (RBA)
Recent entries in the redo thread of an Oracle instance are addressed using a 3-part redo byte address, or RBA. An RBA is comprised of
the log file sequence number (4 bytes)
the log file block number (4 bytes)
the byte offset into the block at which the redo record starts (2 bytes)
RBAs are not necessarily unique within their thread, because the log file sequence number may be reset to 1 in all threads if a database is opened with the RESETLOGS option.
RBAs are used in the following important ways.
 
With respect to a dirty block in the buffer cache, the low RBA is the address of the redo for the first change that was applied to the block since it was last clean, and the high RBA is the address of the redo for the most recent change to have been applied to the block.
Dirty buffers are maintained on the buffer cache checkpoint queues in low RBA order. The checkpoint RBA is the point up to which DBWn has written buffers from the checkpoint queues if incremental checkpointing is enabled -- otherwise it is the RBA of last full thread checkpoint. The checkpoint RBA is copied into the checkpoint progress record of the controlfile by the checkpoint heartbeat once every 3 seconds. Instance recovery, when needed, begins from the checkpoint RBA recorded in the controlfile. The target RBA is the point up to which DBWn should seek to advance the checkpoint RBA to satisfy instance recovery objectives.
The on-disk RBA is the point up to which LGWR has flushed the redo thread to the online log files. DBWn may not write a block for which the high RBA is beyond the on-disk RBA. Otherwise transaction recovery (rollback) would not be possible, because the redo needed to undo a change is always in the same redo record as the redo for the change itself.
The term sync RBA is sometimes used to refer to the point up to which LGWR is required to sync the thread. However, this is not a full RBA -- only a redo block number is used at this poin


相关文档:

Oracle 的 Round 函數(四舍五入)函数


 
该函数用来返回一个四舍五入后的值
 
SELECT ROUND( number, [ decimalplaces ] ) from DUAL
 
參數:
必填项:number : 要处理的数值(数值表达式)
可选项:decimalplaces : 四舍五入时取的小数的位数,不填则返回整数
 
Sample :
 
select round(123.456) from dual;& ......

Oracle OS认证以及口令文件

 1.OS认证
Oracle安装之后默认情况下是启用了OS认证的,这里提到的os认证是指服务器端os认证。OS认证的意思把登录数据库的用户和口令校验放在了操作系统一级。如果以安装Oracle时的用户登录OS,那么此时在登录Oracle数据库时不需要任何验证,如:
SQL> connect /as sysdba
已连接。
SQL> connect sys/aaa@te ......

Linux下Oracle的安装详细步骤

 
1.       系统配置过程
2.1. oracle安装条件检查
2.1.1.               硬件检查
检查硬件情况是否符合oracle 10g 的安装要求。以root登录系统,用下表命令输出的值应大于或等于建议值。
检查项目
命令 ......

Oracle重做日志文件常用操作

强制切换重做日志
ALTER SYSTEM SWITCH LOGFILE; 强制产生检查点
ALTER SYSTEM CHECKPOINT; 间接产生检查点(设定实例恢复时间不超过mm秒,亦即执行检查点之后运行超过这个时间就再次执行检查点)
ALTER SYSTEM SET FAST_START_MTTR_TARGET = 秒数; 获取重做日志文件信息
SELECT group#, ......

关于oracle的表空间,分区表,以及索引的总结

 http://episode.javaeye.com/blog/183016
表空间: 
Oracle的UNDOTBS01.DBF文件太大的解决办法 
1、.禁止undo tablespace自动增长 
alter   database   datafile   'full_path\undotbs01.dbf'   autoextend   off; 
2.-- 创建一个新的小 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号