亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2808 | 回復(fù): 6
打印 上一主題 下一主題

RS到IQ之間的復(fù)制能不能實現(xiàn)? [復(fù)制鏈接]

論壇徽章:
2
數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-09-21 06:20:00
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-06-04 16:25 |只看該作者 |倒序瀏覽
replication server 到 IQ之間的復(fù)制能不能實現(xiàn)?

如果能如何實現(xiàn)的?

論壇徽章:
0
2 [報告]
發(fā)表于 2009-06-07 22:56 |只看該作者
可以,和ase一樣

論壇徽章:
2
數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-09-21 06:20:00
3 [報告]
發(fā)表于 2009-06-08 10:28 |只看該作者
在add server時選那個選項?
ASE?

論壇徽章:
0
4 [報告]
發(fā)表于 2009-06-08 11:40 |只看該作者
你可以通過腳本的方式在RS中創(chuàng)建連接,方式和ASE一樣。
另外:
小數(shù)據(jù)量的復(fù)制可以通過RS,但是對一些大數(shù)據(jù)量復(fù)制,則不推薦直接復(fù)制,因為IQ的插入操作比ASE慢兩個數(shù)量級。推薦用中間暫存庫load數(shù)據(jù)。

論壇徽章:
2
數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-09-21 06:20:00
5 [報告]
發(fā)表于 2009-06-08 17:40 |只看該作者
創(chuàng)建了連接以后,DSIdown l了。
報錯如下:
E. 2009/06/08 15:49:09. ERROR #1028 DSI(214 zbiqsvr01.zbiqsvr01) - \dsioqid.c(202
        Message from server: Message: 201, State 0, Severity 16 -- 'ASA Error -615: Parameter '' not found in procedure '???''.
E. 2009/06/08 15:49:09. ERROR #5046 DSI(214 zbiqsvr01.zbiqsvr01) - \dsioqid.c(2042)
        When executing the rs_get_lastcommit function in database 'zbiqsvr01.zbiqsvr01', received data server errors. See logged data server errors for more information.
我已在IQ總建立了rs_get_lastcommit 過程還是報這個錯 。
建立連接的時候我沒找到IQ的連接,就選擇了ASA的。

論壇徽章:
0
6 [報告]
發(fā)表于 2009-06-09 10:53 |只看該作者
$REP/scripts/rs_install_replicate.sql 這個腳本在iq上運行了嗎?

論壇徽章:
2
數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-09-21 06:20:00
7 [報告]
發(fā)表于 2009-06-09 14:23 |只看該作者
/*
** Confidential property of Sybase, Inc.
** (c) Copyright Sybase, Inc. 1985 to 1991.
** All rights reserved
*/

/*
** generic/script/%M%:                %I%        %G%        %U%
**
** This prepares a SQL Server to receive replicated data.
*/

/* Drop the table, if it exists. */
if exists (select name
                from sysobjects
                where name = 'rs_lastcommit' and type = 'U')
begin
        drop table rs_lastcommit
end
go

/*
** Create the table.
** We pad each row to be greater than a half page but less than one page
** to avoid lock contention.
*/

create table rs_lastcommit
        (
        origin                int,
        origin_qid        binary(36),
        secondary_qid        binary(36),
        origin_time        datetime,
        dest_commit_time        datetime,
        pad1                binary(255),
        pad2                binary(255),
        pad3                binary(255),
        pad4                binary(255),
        pad5                binary(4),
        pad6                binary(4),
        pad7                binary(4),
        pad8                binary(4)
        )
go
create unique clustered index rs_lastcommit_idx on rs_lastcommit(origin)
go

if exists (select name
                from sysobjects
                where name = 'rs_threads' and type = 'U')
begin
        drop table rs_threads
end
go

/*
** Create the table.
** We pad each row to be greater than a half page but less than one page
** to avoid lock contention.
*/

create table rs_threads
        (
        id                  int,
        seq              int,
        pad1            char(255),
        pad2            char(255),
        pad3            char(255),
        pad4            char(255),
        )
go
create unique clustered index rs_threads_idx on rs_threads(id)
go

grant select on rs_threads to public
go

/* Drop the procedure to update the table. */
if exists (select name
                from sysobjects
                where name = 'rs_update_lastcommit' and type = 'P')
begin
        drop procedure rs_update_lastcommit
end
go
/* Create the procedure to update the table. */
create procedure rs_update_lastcommit
        @origin                int,
        @origin_qid        binary(36),
        @secondary_qid        binary(36),
        @origin_time        datetime
as
        update rs_lastcommit
                set origin_qid = @origin_qid, secondary_qid = @secondary_qid,
                        origin_time = @origin_time,
                        dest_commit_time = getdate()
                where origin = @origin
        if (@@rowcount = 0)
        begin
                insert rs_lastcommit (origin, origin_qid, secondary_qid,
                                origin_time, dest_commit_time,
                                pad1, pad2, pad3, pad4, pad5, pad6, pad7, pad
                        values (@origin, @origin_qid, @secondary_qid,
                                @origin_time, getdate(),
                                0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
        end
go

/* Drop the procedure to get the last commit. */
if exists (select name
                from sysobjects
                where name = 'rs_get_lastcommit' and type = 'P')
begin
        drop procedure rs_get_lastcommit
end
go

/* Create the procedure to get the last commit for all origins. */
create procedure rs_get_lastcommit
as
        select origin, origin_qid, secondary_qid
                from rs_lastcommit
go

/* Drop the procedure to update the table. */
if exists (select name
                from sysobjects
                where name = 'rs_update_threads' and type = 'P')
begin
        drop procedure rs_update_threads
end
go
/* Create the procedure to update the table. */
create procedure rs_update_threads
        @rs_id                 int,
        @rs_seq                int
as
        update rs_threads set seq = @rs_seq where id = @rs_id
        if (@@rowcount = 0)
        begin
                insert into rs_threads
                        (id, seq, pad1, pad2, pad3, pad4)
                        values(@rs_id, @rs_seq, "", "", "", ""
        end
go

grant all on rs_update_threads to public
go
/* Drop the procedure to update the table. */
if exists (select name
                from sysobjects
                where name = 'rs_get_thread_seq' and type = 'P')
begin
        drop procedure rs_get_thread_seq
end
go
/* Create the procedure to update the table. */
create procedure rs_get_thread_seq
        @rs_id             int
as
        select seq from rs_threads where id = @rs_id
go

grant all on rs_get_thread_seq to public
go

/* Drop the procedure to update the table. */
if exists (select name
                from sysobjects
                where name = 'rs_initialize_threads' and type = 'P')
begin
        drop procedure rs_initialize_threads
end
go
/* Create the procedure to update the table. */
create procedure rs_initialize_threads
        @rs_id          int
as
        delete from rs_threads where id = @rs_id
        insert into rs_threads values (@rs_id, 0, 0x0, 0x0, 0x0, 0x0)
go
grant all on rs_initialize_threads to public

/* Drop the procedure to mark the log. */
if exists (select name
                from sysobjects
                where name = 'rs_marker' and type = 'P')
begin
        drop procedure rs_marker
end
go

if exists (select name from sysobjects
                where name = 'rs_ticket_report' and type = 'P')
begin
        drop proc rs_ticket_report
end
go

/*
** Name: rs_ticket_report
**   Append PDB timestamp to rs_ticket_param.
**   DSI calls rs_ticket_report if DSI_RS_TICKET_REPORT in on.
**
** Parameter
**   rs_ticket_param: rs_ticket parameter in canonical form.
**
** rs_ticket_param Canonical Form
**   rs_ticket_param ::= <section> | <rs_ticket_param>;<section>
**   section         ::= <tagxxx>=<value>
**   tag             ::= V | H | PDB | EXEC | B | DIST | DSI | RDB | ...
**   Version value   ::= integer
**   Header value    ::= string of varchar(10)
**   DB value        ::= database name
**   Byte value      ::= integer
**   Time value      ::= hh:mm:ss.ddd
**
** Note:
**   1. Don't mark rs_ticket_report for replication.
**   2. DSI calls rs_ticket_report iff DSI_RS_TICKET_REPORT in on.
**   3. This is an example stored procedure that demonstrates how to
**      add RDB timestamp to rs_ticket_param.
**   4. One should customize this function for parsing and inserting
**      timestamp to tables.
*/
create procedure rs_ticket_report
@rs_ticket_param varchar(255)
as
begin
set nocount on

declare @new_cmd varchar(255),
        @c_time  datetime,
        @c_secs  numeric(6,3)

select @c_time = getdate()
select @c_secs = datepart( millisecond, @c_time)
select @c_secs = datepart( second, @c_time) + @c_secs/1000
select @new_cmd = @rs_ticket_param + ";RDB(" + db_name()
                + "=" + convert( varchar(2), datepart( hour, @c_time))
                + ":" + convert( varchar(2), datepart( minute, @c_time))
                + ":" + convert( varchar(6), @c_secs)

-- print @new_cmd
end
go

grant execute on rs_ticket_report to public
go

是這個過程么?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP