这种修改是不是可以理解为我的sql操作,可是数据库又是怎么利用日志进行恢复的呢?-----原始数据从哪儿来的?

解决方案 »

  1.   

    我认为只是记了update语句和要修改的值,不会记块的整个数据信息.因为恢复的时候因为有数据文件 备份系统可以根据每条语句倒推回去.只有保持读一致性的时候才会把前象数据(修改的块的整个数据信息)放到回滚段去.
      

  2.   

    oracle文档的话
    Online redo log files are filled with redo records. A redo record, also called a redo entry, is made up of a group of change vectors, each of which is a description of a change made to a single block in the database. For example, if you change a salary value in an employee table, you generate a redo record containing change vectors that describe changes to the data segment block for the table, the rollback segment data block, and the transaction table of the rollback segments