NOLOGGING是只对当前语句起作用吗?

[复制链接]
查看11 | 回复3 | 2005-10-27 20:45:16 | 显示全部楼层 |阅读模式
在创建表空间、表、索引等语句中均可加NOLOGGING参数,以便不写重做日志,现在有一个问题是,如果在创建表的时候加了NOLOGGING参数,对于以后在这个表中插入、更新、删除等操作时,是不是也不写重做日志呢?
这个问题其实就是NOLOGGING参数倒底是对本次语句的执行起作用,还是会对对象内部的数据更新也起作用。请高手回复哦
回复

使用道具 举报

千问 | 2005-10-27 20:45:16 | 显示全部楼层
Although you can set the NOLOGGING attribute for a table, index, or tablespace, Nologging mode only applies to a few operations on the object for which the attribute is set, such as:
?
CREATE TABLE ... AS SELECT
?
CREATE INDEX
?
ALTER INDEX ... REBUILD
?
DIRECT PATH INSERT
The following statements are nevertheless unaffected by the NOLOGGING attribute: UPDATE, DELETE, conventional path INSERT, and various DDL statements not listed above.
即使你在table,index,tablespace上设置了nologging属性,但对于update,delete,conventional path INSERT以及上述没有提到的ddl语句都不会受nologging属性影响。
比如你的表是nologging的,但你做insert插入,也是有redo log entries产生的。你可以自己试试看,insert,update,delete都是可以rollback的。
回复

使用道具 举报

千问 | 2005-10-27 20:45:16 | 显示全部楼层
This attribute also specifies that subsequent Direct Loader (SQL*Loader) and direct-load INSERT operations against the table, partition, or LOB storage are logged (LOGGING) or not logged (NOLOGGING).
回复

使用道具 举报

千问 | 2005-10-27 20:45:16 | 显示全部楼层
This attribute also specifies that subsequent Direct Loader (SQL*Loader) and direct-load INSERT operations against the table, partition, or LOB storage are logged (LOGGING) or not logged (NOLOGGING).
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行