Skip to Main Content
  • Questions
  • diff between export parameters CONSISTENT & OBJECT_CONSISTENT

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question.

Asked: May 27, 2008 - 10:17 pm UTC

Last updated: May 28, 2008 - 11:10 am UTC

Version: 9.2.1

Viewed 1000+ times

You Asked

Hi Tom,

I have read the documentation and confused that does it have the same effect when u set CONSISTENT=N and OBJECT_CONSISTENT=Y. What is the diff between these 2 settings. Please explain.

Ashu.

and Tom said...

who is "U" and how come they would be setting anything for you?


http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm#sthref2313

http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm#CEGIIHCE


documentation states:

... . If OBJECT_CONSISTENT is set to y, each object is exported in its own read-only transaction, even if it is partitioned. In contrast, i
f you use the CONSISTENT parameter, then there is only one read-only transaction.
...


so, object_consistent is like this:


loop over all objects
set transaction read only - begin transaction
export current object in it's entirety (partitioned table - all partitions)
commit - end transaction
end loop


consistent is like this:

set transaction read only - begin transaction
loop over all objects
export current object
end loop
commit - end transaction



consistent = y would give you a dmp file as of a single point in time.

object_consistent = y would give you a dmp flie consisting of individual objects, each as of their own individual points in time.

Is this answer out of date? If it is, please let us know via a Comment