The intent of the guard pages is to reduce the risk of log buffer corruption. It is possible for an Oracle bug, hardware memory error or hacker stack corruption attack to cause a pointer or offset to be corrupted so that data is copied into memory at an incorrect location. The guard pages prevent such corruptions from over running the log buffer.
The following listing shows that the guard pages are included in the size of the "Redo Buffers" as shown in V$SGA,
but are excluded from the size of the "log_buffer" as shown in V$SGASTAT.
Oracle DBAs are often puzzled by this discrepancy.
SQL> select name, value from v$sga where name = 'Redo Buffers';
NAME VALUE
-------------------- ----------
Redo Buffers 532480
SQL> select name, bytes from v$sgastat where name = 'log_buffer' and pool is null;
NAME BYTES
-------------------------- ----------
log_buffer 524288
© Ixora Pty Ltd. All rights reserved.
05-Apr-2002 |
|