码迷,mamicode.com
首页 > 其他好文 > 详细

OGG时延问题记录

时间:2021-07-13 17:42:29      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:ima   creat   ext   log   OLE   init   def   str   nod   

1.抽取进程延时

技术图片

 

 

 

 

2.过程时间分析脚本

[oracle@node2 dirdat]$ cat test01.sh 
#!/bin/bash
echo "sql before time is "`date`>> test.log
sqlplus / as sysdba <<EOF
@1.sql
EOF
echo "sql after time is "`date`>> test.log
while true
do
	echo `stat st000000033 |grep Modify` >>test.log
done

  

insert into test07 (BIGINT_FIELD, DOUBLE_FIELD, BOOLEAN_FIELD, TIMESTAMP_FIELD, STRING_FIELD, START_TIME)
values (1, 3, ‘‘, null, ‘‘, sysdate);
truncate table test07;


select * from test07
select * from ogg12t.test07;
truncate table ogg12t.test07;

select arr_time-start_time from ogg12t.test07;

 

源端

-- Create table
create table TEST07
(
  BIGINT_FIELD    INTEGER,
  DOUBLE_FIELD    NUMBER,
  BOOLEAN_FIELD   VARCHAR2(2),
  TIMESTAMP_FIELD DATE,
  STRING_FIELD    VARCHAR2(1024),
  START_TIME      TIMESTAMP(6) default sysdate
)
tablespace USERS
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 64
    next 8
    minextents 1
    maxextents unlimited
  );  

 目标端:

create table OGG12T.TEST07
(
  BIGINT_FIELD    INTEGER,
  DOUBLE_FIELD    NUMBER,
  BOOLEAN_FIELD   VARCHAR2(2),
  TIMESTAMP_FIELD DATE,
  STRING_FIELD    VARCHAR2(1024),
  START_TIME      TIMESTAMP(6),
  ARR_TIME        TIMESTAMP(6) default sysdate
)

  

 

OGG时延问题记录

标签:ima   creat   ext   log   OLE   init   def   str   nod   

原文地址:https://www.cnblogs.com/jycjy/p/15005623.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!