When log switch occurs in oracle 9i, DBWn writes contents of Database buffer cache to Data files.

Is both uncommitted and committed data written to data files at this time or only committed data is writted to data files on checkpoints.