DBWR and LGWR functionalities
The Oracle database concepts document, states that:
DBWR - Database Writer is responsible for buffer cache management. The DBWR writes modified buffers (dirty buffers) to datafiles.
LGWR - Log Writer writes data from the log buffer to the online redo log files.
What I cannot understand is what type of data does the DBWR writes in the datafiles, since as it is stated, I have the idea that the DBWR and LGWR are writing the same data to the datafiles. Isn't the DBWR going against the principle of the existance of the redo logs if it writes directly to the datafiles???????
Please illuminate me as I'm stuck in trying to learn this bit. Thanks.