Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

1

好友

48

主题
1#
发表于 2013-11-20 10:47:17 | 查看: 4300| 回复: 1
db:10.2.0.5
OS:windows 2008 64 bit
在网上看到刘大的帖子,关于nologging的操作,里面是
http://www.askmaclean.com/archives/oracle%E4%B8%AD%E5%8F%AF%E4%BB%A5nologging%E6%89%A7%E8%A1%8C%E7%9A%84%E6%93%8D%E4%BD%9C.html
  1. select FORCE_LOGGING from v$database;
  2. FORCE_LOGGING
  3. -------------
  4. NO
  5. select f.force_logging from dba_tablespaces f where tablespace_name ='SYSTRAVEL'
  6. FORCE_LOGGING
  7. -------------
  8. NO
  9. create table sajet.test_nolog tablespace systravel nologging as select * from dba_users where rownum=1;

  10. alter system switch logfile;

  11. exec dbms_logmnr.add_logfile('E:\archive\ARC00012_0830619918.001');

  12. PL/SQL procedure successfully completed

  13. SQL> exec dbms_logmnr.start_logmnr;

  14. PL/SQL procedure successfully completed

  15. SQL> select SQL_REDO from v$logmnr_contents l where l.SEG_NAME='TEST_NOLOG';

  16. SQL_REDO
  17. --------------------------------------------------------------------------------
  18. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007061" TO "BIN$4AQRcks
  19. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007062" TO "BIN$yE0XDz+
  20. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007063" TO "BIN$AJGIii5
  21. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007064" TO "BIN$uSggEMX
  22. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007065" TO "BIN$+5PcbEN
  23. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007066" TO "BIN$15I6MV/
  24. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME CONSTRAINT "SYS_C007067" TO "BIN$6j1dwMQ
  25. ALTER TABLE "SAJET"."TEST_NOLOG" RENAME TO "BIN$1XgGTdtARh2/wPSgQ0hczQ==$0" ;
  26. drop table test_nolog

  27. AS "BIN$1XgGTdtARh2/wPSgQ0hczQ==$0" ;

  28. create table sajet.test_nolog tablespace systravel nologging as select * from db

  29. ;

  30. 10 rows selected
  31. SQL>
复制代码
使用logminer查看日志
但是日志里面为何还是记录了这个表的创建的redo呢
2#
发表于 2013-11-20 10:56:12
你没有理解nologging的含义 , nologging并不能避免 管理字典的基本维护生成的redo, 而是当我批量加载数据时,加载数据这个操作的 日志可以省略, 与后者相比 前者的redo 如九牛一毛

回复 只看该作者 道具 举报

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

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-21 10:33 , Processed in 0.044846 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569