Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: ORA-1578...block corrupted...error is normal...a block...had a NOLOGGING...operation performed against
I just found this in the documentation which seems to confirm my understanding that direct-path inserts will be controlled by NOLOGGING whether it is specified with the CREATE or ALTER ( http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c21dlins.htm#10666):
Direct-Path INSERT and Logging Mode
Direct-path INSERT lets you choose whether to log redo and undo information during the insert operation.
Now, the question is whether the documentation is correct, or, as Jared's tests seem to indicate - incorrect.
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Allen, Brandon
Sent: Tuesday, August 23, 2005 2:05 PM
To: Hemant K Chitale
Cc: oracle-l_at_freelists.org
Subject: RE: ORA-1578...block corrupted...error is normal...a block...had a NOLOGGING...operation performed against
Hemant,
Where in the documentation do you see a description of this different treatment of the NOLOGGING clause for CREATE vs. ALTER statements?
My understanding from the documentation, including that which you have included in your email below, is that when specifying NOLOGGING during either the CREATE or ALTER of an object, the creation/alteration of the object as well as any future direct loads/inserts are minimally logged. If you see something contrary to this in the documentation, please provide a link.
Thanks,
Brandon
P.S. in case anyone else tries to look it up - the correct Metalink note # is 147474.1
-----Original Message-----
From: Hemant K Chitale [mailto:hkchital_at_singnet.com.sg]
Sent: Tuesday, August 23, 2005 8:56 AM
To: jkstill_at_gmail.com; Allen, Brandon
Cc: cmarquez_at_collegeboard.org; oracle-l_at_freelists.org
Subject: Re: ORA-1578...block corrupted...error is normal...a block...had a NOLOGGING...operation performed against
Jared,
You ARE right. You really don't need to retest it.
When an object is NOLOGGING is used in the CREATE statement, it is the actual first load that the create does
that is NOLOGGING. All subsequent DML is logged.
When an object is ALTERed to NOLOGGING, only certain statements (eg APPEND) that support NOLOGGING
are NOLOGGed.
Read the extract that Allen has quoted "Direct Loader .. and direct path insert". It specifically talks of Direct
operations NOT regular DML. Regular DML is always always LOGged.
Again, quoting from the 9i SQL Reference on the logging clause : This also says " .. subseqent direct .. direct ..." NOT regular DML.
logging_clause
Purpose
The logging_clause lets you specify whether creation of a database object will be logged in the redo log file (LOGGING) or not (NOLOGGING).
This clause also specifies whether subsequent Direct Loader (SQL*Loader) and direct-path INSERT operations against the object are logged (LOGGING) or not logged (NOLOGGING).
You can specify the logging_clause in the following statements:
You can also specify LOGGING or NOLOGGING for the following operations:
Data Dictionary Updates are always logged. Regular DML is always logged.
Note 17474.1 , from Oracle7 and Oracle8 days is still the best reference.
The following operations can make use of no-logging mode:
direct load (SQL*Loader) direct-load INSERT CREATE TABLE ... AS SELECT CREATE INDEX ALTER TABLE ... MOVE PARTITION ALTER TABLE ... SPLIT PARTITION ALTER INDEX ... SPLIT PARTITION ALTER INDEX ... REBUILD ALTER INDEX ... REBUILD PARTITION INSERT, UPDATE, and DELETE on LOBs in NOCACHE NOLOGGING mode stored out of line
At 11:40 PM Tuesday, Jared Still wrote:
I will rerun my tests and post the results to the list.
If there is a flaw in my testing procedure someone here is sure to spot it.
Won't be able to do so until this afternoon however.
Jared
Hemant K Chitale
http://web.singnet.com.sg/~hkchital
Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Aug 23 2005 - 16:30:40 CDT
![]() |
![]() |