重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2099|回复: 0
打印 上一主题 下一主题

[参考文档] How To Completely Disable Supplemental Logging At Table/ DB/ Schema Level (Do...

[复制链接]
跳转到指定楼层
楼主
发表于 2019-10-11 23:49:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Applies to:  
Oracle GoldenGate - Version 11.2.1.0.0 and later

Information in this document applies to any platform.


Goal
How to cleanly  delete trandata  and drop supplemental log?
Solution
When  supplemental logging has been disabled at the db level, the following statement should give the result below:

select supplemental_log_data_min
,supplemental_log_data_all
,supplemental_log_data_pk
,supplemental_log_data_ui
,supplemental_log_data_pl
from v$database

SUPPLEMENTAL_LOG_DATA_MIN|SUPPLEMENTAL_LOG_DATA_ALL|SUPPLEMENTAL_LOG_DATA_PK|SUPPLEMENTAL_LOG_DATA_UI|SUPPLEMENTAL_LOG_DATA_PL
NO|NO|NO|NO|NO

To disable supplemental logging at the db level, we must execute following statements in the same order :

ALTER DATABASE DROP SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
ALTER DATABASE DROP SUPPLEMENTAL LOG DATA;

Please read the documentation:
===>http://docs.oracle.com/cd/E11882 ... gminer.htm#i1021068
====>19 Using LogMiner to Analyze Redo Log Files
========>•Supplemental Logging
=============>Disabling Database-Level Supplemental Logging
To disable supplemental logging at the table level we need to execute GGSCI command DELETE TRANDATA.
GGSCI> DBLOGIN USERID <id> PASSWORD <pw>
GGSCI> DELETE TRANDATA <schema.table name>
This would delete the records from  DBA_LOG_GROUP_COLUMNS and DBA_LOG_GROUPS.
The command  DELETE TRANDATA is supposed to be equivalent to the following SQL statement:
alter table [TABLE_NAME] drop supplemental log group [GROUP_NAME]

So after the DELETE TRANDATA,  records would be removed from DBA_LOG_GROUP_COLUMNS and DBA_LOG_GROUPS.
To disable supplemental logging at the schema level we need to execute GGSCI command DELETE SCHEMATRANDATA
Presence of schema level logging can be verified by using the INFO SCHEMATRANDATA command
GGSCI> INFO SCHEMATRANDATA <schema name>
GGSCI> DELETE SCHEMATRANDATA <schema name>

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-29 23:42 , Processed in 0.083900 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表