博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于集成抽取进程重启后的现象分析
阅读量:6261 次
发布时间:2019-06-22

本文共 2732 字,大约阅读时间需要 9 分钟。

当执行一个大的事务或数据量比较大时,停止集成抽取进程ex1,发现不能停止,然后直接kill,此时,再start ex1,发现ex1是running状态,但checkpoint lag一直在增加,也获取不到SCN。然后再

kill ex1,

alter ex1, begin now,

start ex1,

info ex1

查看之后,仍然是相同的情况。

GGSCI (WIN7ora as src_ogg@orcl) 407> info ex1

EXTRACT EX1 Last Started 2017-11-29 09:23 Status RUNNING

Checkpoint Lag 00:00:10 (updated 00:00:08 ago)

Process ID 3854

Log Read Checkpoint Oracle Integrated Redo Logs

2017-11-29 09:24:02

SCN 0. (0)

经分析,应该是集成抽取的读取点有记录在DB的某个系统表里,造成,即使修改begin now,也不起作用。经查找ogg reference文档,有看到如下一段说明

发现即使alter ex1, begin now之后,上面的first scn也未变化,所以此参数无法调整抽取进程的读取点,即不能跳过某些日志或事务。

简单的delete进程之后,重新add extract,结果相同。

最终,将进程unregister extract ex1 database之后,再重新register,first scn有发生变化。

GGSCI (WIN7ora as src_ogg@orcl) 407> info ex1

EXTRACT EX1 Last Started 2017-11-29 10:23 Status RUNNING

Checkpoint Lag 00:00:10 (updated 00:00:08 ago)

Process ID 3856

Log Read Checkpoint Oracle Integrated Redo Logs

2017-11-29 14:58:42

SCN 0.6794325 (6794325)

停止进程提示处于recovery状态

GGSCI (WIN7ora as src_ogg@orcl) 408> stop ex1

Sending STOP request to EXTRACT EX1 ...

STOP request pending. Recovery is not complete.

This normal stop will wait and checkpoint recovery's work when recovery has finished.

To force Extract to stop now, use the SEND EXTRACT EX1, FORCESTOP command..

GGSCI (WIN7ora as src_ogg@orcl) 409> info ex1

EXTRACT EX1 Last Started 2017-11-29 10:23 Status RUNNING

Checkpoint Lag 00:00:09 (updated 00:00:01 ago)

Process ID 3856

Log Read Checkpoint Oracle Integrated Redo Logs

2017-11-29 14:59:04

SCN 0.6794344 (6794344)

GGSCI (WIN7ora as src_ogg@orcl) 406> send ex1, status

Sending STATUS request to EXTRACT EX1 ...

EXTRACT EX1 (PID 3856)

Current status: In recovery[1]: Processing data

Current read position:

Redo thread #: 1

Sequence #: 0

RBA: 0

Timestamp: 2017-11-29 09:50:36.000000

SCN: 0.0 (0)

Current write position:

Sequence #: 0

RBA: 0

Timestamp: 2017-11-29 10:23:14.560000

Extract Trail: ./dirdat/ea

GGSCI (WIN7ora as src_ogg@orcl) 432> send ex1, status

Sending STATUS request to EXTRACT EX1 ...

EXTRACT EX1 (PID 1304)

Current status: In recovery[1]: Processing data

Current read position:

Redo thread #: 1

Sequence #: 3221

RBA: 7516312

Timestamp: 2017-11-29 14:59:13.000000

SCN: 0.6794348 (6794348)

Current write position:

Sequence #: 0

RBA: 0

Timestamp: 2017-11-29 10:23:14.560000

Extract Trail: ./dirdat/ea

GGSCI (WIN7ora as src_ogg@orcl) 439> send ex1, status

Sending STATUS request to EXTRACT EX1 ...

EXTRACT EX1 (PID 2528)

Current status: Recovery complete: Processing data

Current read position:

Redo thread #: 1

Sequence #: 3221

RBA: 9566584

Timestamp: 2017-11-29 15:01:06.000000

SCN: 0.6794877 (6794877)

Current write position:

Sequence #: 45

RBA: 3074

Timestamp: 2017-11-29 15:01:05.188000

Extract Trail: ./dirdat/ea

Ref:

转载地址:http://wrqsa.baihongyu.com/

你可能感兴趣的文章
bash脚本case与函数
查看>>
我的学习计划
查看>>
理解 Go 语言中的方法和接收者
查看>>
iView 发布 2.0.0-rc.16 版本
查看>>
React表单组件
查看>>
从0到1学习node(八)之异步控制工具async
查看>>
Android 运行时权限库
查看>>
网易漫画Swift混编实践
查看>>
如何针对业务设计架构?——QCon热点专题前瞻
查看>>
你的可用性达标了吗?云端业务性能高可用的深度实践
查看>>
Mozilla开发全新的公开网络API WebXR 来实现增强现实
查看>>
用户超5亿,三年投10亿,开发者如何抢滩支付宝小程序蓝海?
查看>>
[使用 Weex 和 Vue 开发原生应用] 2 编写独立页面
查看>>
Cosmos DB:全球分布式数据库
查看>>
Scrum联盟的新任全球营销副总裁访谈
查看>>
从把事做对到做对的事
查看>>
悟空:用Go语言编写的全文搜索引擎
查看>>
.NET 4.6的RyuJIT编译器中又发现两个严重的Bug
查看>>
Rust发布1.32版本,跟踪、模块化、宏等方面均有改进
查看>>
Go语言开源这九年:它是不是你最喜欢的语言?
查看>>