日期:2014-05-16  浏览次数:20776 次

清空supplemental log?
我在select * from dba_log_groups;可以查到数据,但是我想清空这个表里面的数据,但是我使用了alter table test
add supplemental log data(all,primary key,unique,foreign key) columns;没有成功.
我是通过ogg内的trandata命令把表放入supplemental log日志内的!
请老鸟指导

------解决方案--------------------
有试过使用drop或者delete

------解决方案--------------------
4. 重新添加表的附加日志,并重新同步该表 
删除旧的表附加日志: 
SYS@crmdep1 SQL> select 'alter table '||dba_log_groups.owner|| '.' ||dba_log_groups.table_name|| ' drop supplemental log group '|| dba_log_groups.log_group_name||';'
2 from dba_log_groups
3 where owner = '&OWNER' and table_name='&tablename'; 
Enter value for owner: CRM_CONF 
Enter value for tablename: TB_MS_EXPRESSION_PARAM 
old 3: where owner = '&OWNER' and table_name='&tablename' 
new 3: where owner = 'CRM_CONF' and table_name='TB_MS_EXPRESSION_PARAM' 
 
'AlterTABLE'||DBA_LOG_GROUPS.OWNER||'.'||DBA_LOG_GROUPS.TABLE_NAME||'DropSUPPLEMENTALLOGGROUP'||DBA_LOG_GROUPS.LOG_GROUP_NAME||';' 
------------------------------------------------------------- 
alter table CRM_CONF.TB_MS_EXPRESSION_PARAM drop supplemental log group GGS_TB_MS_EXPRESSIO_96566; 
 
在GG中添加 表的trandata: 
dblogin userid ggs@crmdep1, password ggs321 
add trandata CRM_CONF.TB_MS_EXPRESSION_PARAM 
 
重启E进程,目标端新建R进程单独同步该表,停止P进程,合并R进程。