添加进程,启动进程报错
1.0添加进程
GGSCI (t2) > add ext exta,tranlog,begin now
EXTRACT added.
--添加exta(ext标准命名规则a),读取日志,从当前开始
GGSCI (t2) > info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXTA :: ::
当配置EXTRACT进程时,捕获DML(受支持的数据库且配置DDL)
--extract捕获事务已trail文件形式存储在文件系统中,每个事务中记录的是有序的保证了速度及数据的完整性。
--可以配置多个extract提取进程,可以对不同的对象进行操作,例如两个extract可以与两个replicat进程并行提取和传输
配置本地文件系统配置tar文件
GGSCI (t2) > add exttrail /home/ogg/ogg/dirdat/ab,ext exta,MEGABYTES
EXTTRAIL added.
目录,及名称名称,会存在多个tar文件,命名自动后续增加; 进程传输 ext进程;tar文件大小20M
为何源端配置本地存储tar文件,如果没有data pump,则Extract必须将捕获的数据操作发送至远程目标端。如果目标端系统或网络不可用,则源端捕获的变更无法传送至目标端,目标端恢复则数据同步耗时过长。
配置本地存储tar文件后,只要源端存在捕获记录,目标端短时间故障恢复后,数据泵可以将源端捕获的数据传送至目标端。 提取进程组
GGSCI (t2) > add extract dpea,EXTTRAILSOURCE /home/ogg/ogg/dirdat/ab
EXTRACT added.
对提取进程进行追踪
GGSCI (t2) > add rmttrail C:\win_oracle_11_database\ogg\ab,ext dpea,MEGABYTES
RMTTRAIL added. 启动捕获进程exta
GGSCI (t2) > info all –根据进程名称,配置参数
EXTRACT STOPPED EXTA :: ::
GGSCI (t2) > edit param exta
extract exta
setenv (NLS_LANG=AMERICAN_AMERICA.ZHS16GBK)
setenv (ORACLE_SID=t2)
USERID ogg,PASSWORD ogg
EXTTRAIL /home/ogg/ogg/dirdat/ab
dynamicresolution
table test001.t1;
2.0 排查
GGSCI (t2) >start exta GGSCI (enmo) > info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING
EXTRACT STOPPED DPEA :: ::
EXTRACT STOPPED EXTA :: :: 错误排查
GGSCI (t2) > view report exta
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited
setenv (ORACLE_SID=t2)
Set environment variable (ORACLE_SID=t2)
USERID ogg,PASSWORD ***
2019-01-27 22:10:57 ERROR OGG-00664 OCI Error beginning session (status = 1034-ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory).
2019-01-27 22:10:57 ERROR OGG-01668 PROCESS ABENDING.
修改参数
[ogg@t2 dirprm]$ vi /home/ogg/ogg/dirprm/exta.prm
setenv (ORACLE_SID=t2)
--替换为 a11204
[ogg@t2 ogg]$ vi ggserr.log
GGSCI (enmo) 19> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED DPEA 00:00:00 21:57:06
EXTRACT STOPPED EXTA 00:00:00 21:57:27
GGSCI (enmo) 20> start exta
Sending START request to MANAGER ...
EXTRACT EXTA starting
GGSCI (enmo) 22> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING EXTA 21:57:30 00:00:05