来源:
赛迪网
作者:
若水
2008-05-06/16:42
Sybase SQL remote 更改传输断点的方法
#`o"-@r oO%'nhXO 9s'\97uW 在sybase 的ASA与ASE数据库间通过SQL REMOTE传输数据经常会遇到传输日志点有误的现象.
YXoV,V2'f ?(87\<PK) o:~0gz 一、通过翻译日志,并对照ASA、ASE的传输日志,确定正确的ASA发送点
@*\T:2Fl RUHD~^a6O 1、在ASA中通过sa_setremoteuser存储过程,更改SYSREMOTEUSER表中的log_sent、confirm_sent字段,其它字段保留SYSREMOTEUSER表中的原值
w! tP+c c xnj|(BxZy 2、如下为sa_setremoteuser函数及其参数:
\aQQqc DII3E1O~1` sa_setremoteuser(p_user_id unsigned integer,p_log_sent numeric(20),p_confirm_sent numeric(20),p_send_count integer,p_resend_count integer,p_log_received numeric(20),p_confirm_received numeric(20),p_receive_count integer,p_rereceive_count integer)
\Xt,8jF ,zpKMsc 3、sa_setremoteuser参数与表SYSREMOTEUSER字段值的对应关系
iu@QjX=0 nME)Xr 参数 字段
wOt>z Ih p_user_id user_id
!V:Nc^e2D p_log_sent log_sent
fCubN,Y p_confirm_sent confirm_sent
hfpuXRnG% p_send_count send_count
"@Q?J^rlh p_resend_count resend_count
`X m22[( p_log_received log_received
As$ @ ! p_confirm_received confirm_received
%mZW _D#I p_receive_count receive_count
A $}!>8E) p_rereceive_count rereceive_count
{ILJ i( Jf^YHD 4、ASA SYSREMOTEUSER表与ASE sr_remoteuser表的字段的对应关系,但两边的有些字段值并不会完全相等,例如:有可ASA中刚做数据传输,但ASE还没有做数据传输,此时ASA的log_sent可能大于ASE的log_received
7#d o/ Rg\bw'F9 ASA SYSREMOTEUSER ASE sr_remoteuser
X i!xq=B v[j`Gd|V6 log_sent log_received
^SG~Jip confirm_sent confirm_received
9#$y8&,%M send_count receive_count
p &X?O resend_count rereceive_count
?(=EV.B log_received log_sent
pK=Lh|`4 confirm_received confirm_sent
['wA l`* #p#分页标题#e# receive_count send_count
) `hfE.A rereceive_count resend_count
2'O=`Y2W e D[5r\K( XDa~kU