-
Uncommited data in datafiles ?
hi,
When an instance is up and running is there any situation
where in uncommited data can be present in datafiles (Except when oracle is doing istance recover)
Regards
sonia
-
Yes, uncommited data can be on datafiles.
Sanjay G.
Oracle Certified Professional 8i, 9i.
"The degree of normality in a database is inversely proportional to that of its DBA"
-
hi sanjay,
can u explain me...in what situation..
-
Hi sonia
In many many situations..whenever dbwr is signalled to write dirty block to the database it just does that..and that dirty blocks will contain uncomitted data..now there are many conditions under which the dbwr flushes dirty buffers to disk and under these conditions dbwr will not check wheather the blocks contain comitted data or not it just flushes..
regards
Hrishy
-
Originally posted by hrishy
Hi sonia
In many many situations..whenever dbwr is signalled to write dirty block to the database it just does that..and that dirty blocks will contain uncomitted data..now there are many conditions under which the dbwr flushes dirty buffers to disk and under these conditions dbwr will not check wheather the blocks contain comitted data or not it just flushes..
regards
Hrishy
Hrishy is right. For instance, DBWR wakes up every three seconds and writes all the dirty buffers to the data files (in Oracle 8i).
During instance recovery, SMON Rollsback all the uncommitted transactions.
-
well you can try it your self...
1. Create a small tablespace with 1M datafile(or what ever is the smallest possible for you);
2. Alter the datafile of this tablespace to autoextend on;
3. create a table in this tablespace and start inserting rows(say 80000 or more). Do not Commit;
4. Watch your datafile grow with uncommited data.
HTH
Amar
"There is a difference between knowing the path and walking the path."
-
hello sonia
yes uncommited data can be store in data files of the database . it is like this . when the dirty data buffer . is full .and there no free buffer space in the database buffer cache .and the checkpoint . indicate the dbwn to write the dirty to write in the datafile.
abdulkhadeer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|