官方网站建设账务处理,软件定制开发公司的商业模式,米读小说哪个网站开发的,wordpress如何更改文章链接地址一些达梦回滚段是使用情况的查询SQL#xff0c;供排查“回滚记录版本太旧#xff0c;无法获取用户记录” 等类似问题时使用 视图名说明主库备库v$pseg_items显示回滚系统中当前回滚项信息#xff08;回滚线程的工作信息#xff09;总行数WORKER_THREADS1查询 no rowsv$pseg… 一些达梦回滚段是使用情况的查询SQL供排查“回滚记录版本太旧无法获取用户记录” 等类似问题时使用 视图名说明主库备库v$pseg_items显示回滚系统中当前回滚项信息回滚线程的工作信息总行数WORKER_THREADS1查询 no rowsv$pseg_sys显示当前回滚段信息概览总行数为1总行数为1 只有extent_size tab_hash_size obj_hash_size 非0v$pseg_commit_trx显示回滚项中已提交但未 PURGE 的事务信息(需要PSEG 的事务信息)需要排除fpa_file_id -1 and fpa_page_no -1 的情况屏蔽没有修改数据的事务查询 no rowsV$PSEG_PAGE_INFOV$PURGE显示当前 PURGE 回滚段信息待PURGE 的事务总个数V$PURGE.obj_num v$pseg_sys.obj_countobj_num 0V$PURGE_PSEG_OBJ显示 PURGE 系统中待 PURGE 的所有 PSEG 对象信息待PURGE 的事务号总行数 V$PURGE.obj_num v$pseg_sys.obj_count查询 no rowsV$PURGE_PSEG_TAB显示待 PURGE 表信息待PURGE 的事务和表的关联信息查询 no rows
/* 查回滚信息 用于回滚记录版本太旧无法获取用户记录排查 */
select pseg_trx.*,item.* from v$pseg_items item join (
select item_nth,substr(wm_Concat(trx_id),0,100) trx_ids,count(trx_id) trx_count,min(cmt_time) min_commit_time,max(cmt_time) max_commit_time from v$pseg_commit_trx where fpa_file_id0 and fpa_page_no0 group by item_nth) pseg_trx
on item.nthpseg_trx.item_nth;/* 统计 insert/delete 操作影响表行数*/
select item_nth,substr(wm_Concat(trx.trx_id),0,100) trx_ids,substr(wm_Concat(TAB.tab_ids),0,100) tab_ids,count(trx.trx_id) trx_count,min(cmt_time),max(cmt_time),sum(tab.row_affect) row_affect from v$pseg_commit_trx trx join (select trx_id,SUBSTR(wm_concat(tab_id)) tab_ids,sum(abs(row_count) row_affect from V$PURGE_PSEG_TAB group by trx_id) TAB on tab.trx_idtrx.trx_idwhere fpa_file_id0 and fpa_page_no0 group by item_nth;select * from sysobjects where id?;select item_nth,substr(wm_Concat(trx.trx_id),0,100) trx_ids,substr(wm_Concat(TAB.tab_ids),0,100) tab_ids,count(trx.trx_id) trx_count,min(cmt_time),max(cmt_time),sum(tab.row_affect) row_affect from v$pseg_commit_trx trx join (select trx_id,SUBSTR(wm_concat(tab_id)) tab_ids,sum(abs(row_count) row_affect from V$PURGE_PSEG_TAB where tab_id? group by trx_id) TAB on tab.trx_idtrx.trx_idwhere fpa_file_id0 and fpa_page_no0 group by item_nth;