Solved

nologging

Posted on 2010-11-28
6
844 Views
Last Modified: 2012-06-27
When we create table we use nologging attribute.
Could you please explain why we use that?
0
Comment
Question by:nobleit
6 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34225103
0
 

Author Comment

by:nobleit
ID: 34228263
Could you explain in a simple way..
Thanks..
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34228269
it means that IF you have the table in NOLOGGING mode AND you run the INSERT in "APPEND" mode (hint /*+APPEND*/, then the insert (data) is not logged in the redo log, but only the statement as such.
normally, all DML statements are logged along with the data they modify. this can, escecially for large data updates/deletes/insert result in big archive logs.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Accepted Solution

by:
fhsyed earned 500 total points
ID: 34236276
There are many uses in verity of different ways for LOGGING/NOLOGGING
Exert is from Tom .

<quote>
LOGGING|NOLOGGING

LOGGING|NOLOGGING specifies that subsequent Direct Loader (SQL*Loader) and direct-load
INSERT operations against a nonpartitioned index, a range or hash index partition, or
all partitions or subpartitions of a composite-partitioned index will be logged (LOGGING)
or not logged (NOLOGGING) in the redo log file.

In NOLOGGING mode, data is modified with minimal logging (to mark new extents invalid
and to record dictionary changes). When applied during media recovery, the extent
invalidation records mark a range of blocks as logically corrupt, because the redo data
is not logged. Therefore, if you cannot afford to lose this index, you must take a backup
after the operation in NOLOGGING mode.

If the database is run in ARCHIVELOG mode, media recovery from a backup taken before an
operation in LOGGING mode will re-create the index. However, media recovery from a backup
taken before an operation in NOLOGGING mode will not re-create the index.
An index segment can have logging attributes different from those of the base table and
different from those of other index segments for the same base table.
</quote>

0
 
LVL 5

Expert Comment

by:anand_20703
ID: 34282429
DBA's tend to look at nologging options for tables to reduce the overhaed on archive logging process.
In environments like bulk data loading, dataware house environments, because of the huge data pumped in to the database, check point tuning and archiver tuning will always be a challenge to the DBA's. If business can afford to reload the data to certain hot tables incase of crash/failure, then it is wonderful opportunity for DBA's to enable no logging on those tables.So data will not flow through the redologs/archive logs, burden on archiver writing will be reduced which will improve the response time of the database. Majority of the times, log file sync, log file parallel write are the top events wainting in the databases where high data loading takes places.
NoLogging is one quick/calculated risk method to quickly tackle the CheckPoint/Archiver tuning.
0
 

Author Comment

by:nobleit
ID: 34432598
Sorry for the delay. The issue is solved. Thank you for all your support..
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question