Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5281623
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: Oracle

2011-06-24 01:33:48

select table_name,logging from user_tables where table_name=UPPER('mx_mta_ip_log')

 

ALTER table MX_MTA_LOG NOLOGGING

 

SQL>
SQL>
SQL> create table big_table as select from all_objects where 1=0;

Table created.

SQL>
SQL> set autotrace on statistics;
SQL>
SQL> insert into big_table select from all_objects where rownum < 50;

SQL> insert /*+ APPEND */ into big_table select from all_objects where rownum < 50;


SQL> commit;

Commit complete.

SQL> alter table big_table nologging;

Table altered.

SQL> insert into big_table
  2  select from all_objects  where rownum < 50;

49 rows created.



SQL> insert /*+ APPEND */ into big_table
  2  select from all_objects  where rownum < 50;

49 rows created.


SQL> commit;

Commit complete.

SQL>
SQL> drop table big_table;

Table dropped.

SQL>
SQL>
阅读(752) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~