Home » RDBMS Server » Server Administration » Tables created with NOLOGGING
Tables created with NOLOGGING [message #54965] Fri, 20 December 2002 10:46 Go to next message
jack
Messages: 123
Registered: September 2000
Senior Member
Our database is in Archive Log Mode. If I create a table specifying NOLOGGING will any log entries be made when the tables is created? Also will any logging occur on insert, update, and deletes for this table?

Example:

CREATE TABLE EAST_EMP NOLOGGING AS
SELECT * FROM EMP WHERE LOC = 'E';
Re: Tables created with NOLOGGING [message #54992 is a reply to message #54965] Mon, 23 December 2002 13:01 Go to previous messageGo to next message
ctg
Messages: 146
Registered: July 2002
Senior Member
the create table statement will not be logged, but the inserts, updates and deletes will.
Re: Tables created with NOLOGGING [message #54998 is a reply to message #54965] Mon, 23 December 2002 13:42 Go to previous message
Trifon Anguelov
Messages: 514
Registered: June 2002
Senior Member
When you issue CREATE TABLE ... you will be changing the data dictionary tables, and since all the dictionary changes are always logged the answer to your first question is YES - CREATE TABLE.. will generate redo logs. That's because when you create a table, Oracle issues update and insert statements to the dictionary which go into the redo logfiles. So during recovery,Oracle encounters these statements and succeeds in creating the table.

when you use UNRECOVERABLE and NOLOGGING in Oracle8 you will only avoid the redolog entries generation for certain operation that can be easily recovered without using the database recovery mechanism. In this case the actual DDL statements will sent to the redo logs the information needed to modify the data dictionary but all rows loaded into the table during the "create as select" statement are not sent to the redo logs.

For the INSERT, UPDATE, DELETE with NOLOGGING clause enabled, you can read This and This . That will help you understand how NOLOGGING clause works.

Hope that helps,

clio_usa
OCP - DBA

Visit our Web site

Previous Topic: Personal Oracle 8.0.4 on W2K or XP?
Next Topic: Help! Oracle Error 27062 - AIO wait timeout
Goto Forum:
  


Current Time: Sat Dec 28 04:44:01 CST 2024