moperyblue 发表于 2016-12-30 20:19

sybase iq如何查询Load Insert时间?

请教.sybase iq如何查询Load Insert时间?

Eisen 发表于 2017-01-03 10:01

这个是没有的。除非你自己在load时记log

moperyblue 发表于 2017-01-03 11:32

回复 2# Eisen


可以有.

1、先通过 sp_iqcontext 查询 出 IQconnID
如 :57300

2、cd /opt/sybiq/xxx_iq

more xxx_iq.iqmsg |grep "01/07 .*57300"
-- 上面是查询 1月7号 IQconnID 为 57300 的记录
-- 下面是日志返回

I. 01/07 04:23:17. 0000057300 Insert Started.
I. 01/07 04:23:17. 0000057300 tbx_y11m12
I. 01/07 04:23:17. 0000057300 TeamBase: SExecute::Team W 41; G 2
I. 01/07 04:24:13. 0000057300 :500000 Rows, 56 Seconds
I. 01/07 04:24:58. 0000057300 :1000000 Rows, 45 Seconds
I. 01/07 04:25:47. 0000057300 :1500000 Rows, 49 Seconds

Eisen 发表于 2017-01-03 15:45

这不就是你在load的时候记下conn Handle?

moperyblue 发表于 2017-01-03 15:52

回复 4# Eisen


这是默认配置产生的日志
你指的"在load时记log"是什么意思? 我是没有手工指定
页: [1]
查看完整版本: sybase iq如何查询Load Insert时间?