sybaserep 安裝、調(diào)優(yōu)、備份參考手冊(cè)[修訂]_第1頁(yè)
sybaserep 安裝、調(diào)優(yōu)、備份參考手冊(cè)[修訂]_第2頁(yè)
sybaserep 安裝、調(diào)優(yōu)、備份參考手冊(cè)[修訂]_第3頁(yè)
sybaserep 安裝、調(diào)優(yōu)、備份參考手冊(cè)[修訂]_第4頁(yè)
sybaserep 安裝、調(diào)優(yōu)、備份參考手冊(cè)[修訂]_第5頁(yè)
已閱讀5頁(yè),還剩21頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、隨著網(wǎng)絡(luò)和通訊日新月異的發(fā)展,在銀行、郵電、學(xué)校、企業(yè)已經(jīng)大量地使用各種數(shù)據(jù)庫(kù)系統(tǒng)來(lái)管理信息和數(shù)據(jù),很多在線服務(wù)要求這些信息和數(shù)據(jù)永遠(yuǎn)都不中斷服務(wù)的前提下,數(shù)據(jù)庫(kù)系統(tǒng)的實(shí)時(shí)性、可靠性和高度可維護(hù)性成為越來(lái)越迫切的需要。而在線熱備份技術(shù)(Online Replication Server)正是為實(shí)現(xiàn)永不中斷服務(wù)的需求的一種比較成功的數(shù)據(jù)庫(kù)解決方案。本文以UNIX Sun Solaris系統(tǒng)下的Sybase數(shù)據(jù)庫(kù)基于一般表級(jí)復(fù)制和Warming Standing by方式的在線熱備份為例,從熱備份的概念原理、實(shí)現(xiàn)步驟、運(yùn)行維護(hù)等三個(gè)方面介紹SYBASE Replication Server(復(fù)制服

2、務(wù)器)。 第I部分:Sybase數(shù)據(jù)庫(kù)Replication Server的概念與原理 一、 數(shù)據(jù)分布與復(fù)制: 1、在線系統(tǒng)在出于安全性的考慮,對(duì)非常重要的數(shù)據(jù)庫(kù)的數(shù)據(jù)和信息需要保存在不同的物理設(shè)備上,而且最好放置在不同的地方,以防止比較嚴(yán)重的物理?yè)p害(比如自然火災(zāi)之類)造成的物理?yè)p壞而引起數(shù)據(jù)丟失,這樣需要通過(guò)網(wǎng)絡(luò)在異地不同物理設(shè)備的多個(gè)數(shù)據(jù)服務(wù)器之間異步地復(fù)制數(shù)據(jù),以保證分布數(shù)據(jù)的一致性和完整性; 2、為了使每個(gè)Client前端對(duì)數(shù)據(jù)庫(kù)數(shù)據(jù)信息的存取和查詢都能夠高效快速地完成,最好的情況是能夠操作區(qū)域網(wǎng)內(nèi)(LAN)的數(shù)據(jù)庫(kù),而在廣域網(wǎng)(WAN)中要求與之?dāng)?shù)據(jù)一致的數(shù)據(jù)庫(kù)通過(guò)數(shù)據(jù)復(fù)制的方式來(lái)

3、實(shí)現(xiàn)。這樣每個(gè)區(qū)域網(wǎng)都通過(guò)Replication Server與中心數(shù)據(jù)庫(kù)相連,即實(shí)現(xiàn)了數(shù)據(jù)分布和復(fù)制。 3、SYBASE數(shù)據(jù)庫(kù)的分布處理技術(shù): (1)、兩階段提交(同步事務(wù)): 最緊密地保持?jǐn)?shù)據(jù)的一致性。 事務(wù)的速度將受限域最慢的服務(wù)器。 整個(gè)系統(tǒng)任何一部分有問(wèn)題都會(huì)使事務(wù)不成功。 網(wǎng)絡(luò)拓?fù)涞淖兓枰薷膽?yīng)用 (2)、松散一致性(異步事務(wù)): SYBASE的復(fù)制機(jī)制。 表級(jí)卸出和裝入(bcp in/out)。 事務(wù)的log下載,傳輸,上載(dump,transfer,load)。 對(duì)修改的記錄做標(biāo)記,定時(shí)傳輸。 二、 復(fù)制服務(wù)器概念: 復(fù)制服務(wù)器,就是一種通過(guò)網(wǎng)絡(luò)在多個(gè)數(shù)據(jù)庫(kù)之間實(shí)現(xiàn)數(shù)據(jù)復(fù)制

4、,以保證數(shù)據(jù)的一致性和完整性。它可以實(shí)現(xiàn)各個(gè)Clients客戶端用戶都操作本地區(qū)域網(wǎng)的數(shù)據(jù),然后通過(guò)復(fù)制服務(wù)器復(fù)制到中心數(shù)據(jù)庫(kù),也可以保證一個(gè)數(shù)據(jù)庫(kù)出現(xiàn)物理?yè)p壞的情況下,能夠及時(shí)地起用備份服務(wù)器而維持不中斷的數(shù)據(jù)庫(kù)信息服務(wù)。 三、采用復(fù)制服務(wù)器的好處: 1、改進(jìn)整個(gè)系統(tǒng)性能: (1)、在區(qū)域網(wǎng)(LAN)傳輸數(shù)據(jù)比在廣域網(wǎng)(WAN)快。 (2)、避免了隨著WAN上用戶數(shù)的增加使得響應(yīng)時(shí)間會(huì)明顯增加從而影響應(yīng)用的問(wèn)題。 (3)、由于決策支持系統(tǒng)-DSS的數(shù)據(jù)存于本地?cái)?shù)據(jù)庫(kù),減少了數(shù)據(jù)庫(kù)的鎖碰撞和沖突,減少死鎖的發(fā)生率。 2、提高了數(shù)據(jù)的可用性 (1)、當(dāng)遠(yuǎn)程數(shù)據(jù)庫(kù)發(fā)生故障,應(yīng)用可以啟動(dòng)本地復(fù)制拷貝

5、 (2)、當(dāng)WAN發(fā)生問(wèn)題時(shí),用戶可以使用本地的數(shù)據(jù)庫(kù)繼續(xù)工作 (3)、當(dāng)本地發(fā)生故障時(shí),應(yīng)用可以連接到另一個(gè)有復(fù)制數(shù)據(jù)的節(jié)點(diǎn)繼續(xù)工作 3、數(shù)據(jù)庫(kù)復(fù)制需要傳輸大量的數(shù)據(jù),所以在占用網(wǎng)絡(luò)帶寬、傳輸?shù)臄?shù)據(jù)的可靠性和可維護(hù)性方面存在比較明顯的缺陷。 四、SYBASE數(shù)據(jù)庫(kù)復(fù)制: 1、 基本原理: 用戶事務(wù)被提交給主點(diǎn)數(shù)據(jù)庫(kù),事務(wù)被記入LOG,LOG被讀出并按事務(wù)一級(jí)傳給復(fù)制服務(wù)器,復(fù)制服務(wù)器完成接收、判斷、遷移、組裝和發(fā)送,事務(wù)發(fā)送給復(fù)制點(diǎn)服務(wù)器,復(fù)制點(diǎn)服務(wù)器完成本數(shù)據(jù)庫(kù)的相同操作。 2、 組成結(jié)構(gòu): 復(fù)制服務(wù)器系統(tǒng)是由Dataserver、RS、LTM和網(wǎng)絡(luò)等組成的集成綜合系統(tǒng),主要包括: (1)

6、、網(wǎng)絡(luò):完成數(shù)據(jù)復(fù)制和傳輸?shù)谋仨毜奈锢磉B接線路和相關(guān)的硬件設(shè)施。 (2)、SQL Server作為主點(diǎn)數(shù)據(jù)源 Log可以支持LTM所需的第二個(gè)Truncation point 對(duì)于已定義成可復(fù)制表的update操作將采用delete+insert方式 Log可以記錄被復(fù)制的存儲(chǔ)過(guò)程,Database Dump,Transaction log Dump (3)、復(fù)制服務(wù)器RS 記錄復(fù)制和約定信息 接收數(shù)據(jù)事務(wù)并傳止約定的數(shù)據(jù)庫(kù)和其它復(fù)制服務(wù)器 (4)、LOG傳輸管理(LTM)。 (5)、復(fù)制服務(wù)器系統(tǒng)數(shù)據(jù)庫(kù)(RSSD) RSSD所包含的信息有:復(fù)制定義、約定定義、功能函數(shù)和功能函數(shù)定義、路由信息

7、 RSSD為一個(gè)SQL Server上的數(shù)據(jù)庫(kù),可以在主SQL Server上,也可在復(fù)制SQL Server上 (6)、穩(wěn)定隊(duì)列 存儲(chǔ)主服務(wù)器已經(jīng)完成但還沒(méi)有復(fù)制到復(fù)制服務(wù)器的中間復(fù)制信息 (7)、SQL Server或者其它數(shù)據(jù)源作為復(fù)制點(diǎn)數(shù)據(jù)源 3、 分類 根據(jù)復(fù)制實(shí)現(xiàn)方式分: (1)、一般復(fù)制環(huán)境(即表級(jí)復(fù)制): 指將定義復(fù)制的表復(fù)制到相關(guān)的復(fù)制服務(wù)器,對(duì)沒(méi)有定義復(fù)制的表不做復(fù)制,所以可以實(shí)現(xiàn)重要的表和易復(fù)制的表復(fù)制,好處是節(jié)省帶寬和相關(guān)的硬盤(pán)空間。 (2)、Warm Standby 主要定義整個(gè)數(shù)據(jù)庫(kù)進(jìn)行定時(shí)熱備份,當(dāng)主點(diǎn)數(shù)據(jù)庫(kù)損壞以后,Clients應(yīng)用的轉(zhuǎn)移需要一定時(shí)間。在正常運(yùn)

8、行是兩個(gè)數(shù)據(jù)庫(kù)的一致性由復(fù)制服務(wù)器來(lái)保證。主要好處是實(shí)現(xiàn)容易,而且以整個(gè)數(shù)據(jù)庫(kù)的方式實(shí)現(xiàn)可以滿足相應(yīng)的Clients端需求,但需要比較復(fù)雜的維護(hù)和較大的硬盤(pán)空間。 (3)、Hot Standby 主要對(duì)整個(gè)數(shù)據(jù)庫(kù)進(jìn)行實(shí)時(shí)熱備份,當(dāng)主點(diǎn)數(shù)據(jù)庫(kù)損壞后,Clients的應(yīng)用轉(zhuǎn)移能夠馬上轉(zhuǎn)移到復(fù)制服務(wù)器。好處是能夠保證數(shù)據(jù)庫(kù)的高度實(shí)時(shí)性,但缺點(diǎn)是需要有高性能的線路質(zhì)量、大量的維護(hù)工作、而且可實(shí)現(xiàn)性較差,容易出現(xiàn)問(wèn)題使復(fù)制不成功。所以目前廣泛采用Warm Standby方式和一般表級(jí)復(fù)制的方式來(lái)實(shí)現(xiàn),很少用及Hot Standby方式。 根據(jù)復(fù)制實(shí)現(xiàn)種類分: (1)、單向復(fù)制:一個(gè)主點(diǎn),一個(gè)或若干復(fù)制點(diǎn)

9、,一個(gè)RS (2)、雙向復(fù)制:兩個(gè)DB均為主點(diǎn),兩個(gè)RS,可分兩種情況 兩個(gè)DB中的表分別為主點(diǎn)表,屬于雙向中的單向 - 兩個(gè)DB中的表全為主點(diǎn)表,不保證一致性 第II部分: SYBASE Replication 的安裝配置: 一、 用sybload安裝產(chǎn)品;$SYBASE/rs_init配置Replication Server 若rs_init起不來(lái): # cd /usr/shlib # ln -s ./libdnet_stub.so libdnet.so In user environment, setenv _RLD_ARGS -ignore_version libdnet_stub.s

10、o 二、 復(fù)制服務(wù)器安裝范例:一般復(fù)制環(huán)境 1:安裝SQL Server和創(chuàng)建數(shù)據(jù)庫(kù),為一般的安裝SYBASE數(shù)據(jù)庫(kù)和創(chuàng)建數(shù)據(jù)庫(kù)步驟,參考SYBASE 數(shù)據(jù)庫(kù)基礎(chǔ)部分: 主結(jié)點(diǎn): SQL Server Name: SQL1 Database Name: DB1 復(fù)制結(jié)點(diǎn): SQL Server Name: SQL2 Database Name: DB2 2:安裝復(fù)制服務(wù)器,RS Server: 以sybase用戶身份,在sybase/install目錄,執(zhí)行rs_init: Replication Server Name: REP ID Server: yes RSSD位置: SQL Serv

11、er Name: SQL1 Database Name: RSSD Need LTM: no Stable queue: Physical path: /data1/sybase/dbfile/rs_queue1.dat Logical Name: queue1 3:Add The First Database to Replication System 使用:rs_init; Replication Server Name: REP Replication SA User: sa (Password is null unless you changed) SQL Server Name: S

12、QL1 Database Name: DB1 Need LTM: yes (Primary Database -yes, Replication Database - no) LTM Name:DB1_LTM 4:Add The Second Database to Replication System 使用:rs_init; Replication Server Name: REP Replication SA User: sa (Password is null unless you changed) SQL Server Name: SQL2 Database Name: DB2 Nee

13、d LTM: yes LTM Name:DB2_LTM 5:Checking Whether All Server Is Running normally. SQL Server: SQL1 and SQL2 Replication Server: REP LTM for DB1: DB1_LTM LTM for DB2: DB2_LTM 使用 isql -Usa -SREP 1 admin who_is_down 2 go The result should be empty. 6:Create Table isql -Usa -SSQL1 use DB1 go create table t

14、ab1 (a int, b char(10), c int) go sp_setreplicate tab1, true go create table tab2 (a int, c char(10), e int) go insert into tab1 values(1, AAAAA, 1) go grant all on tab2 to public go create table tab3(a int, b char(10), c int) go sp_setreplicate tab3, true go grant all on tab3 to public go insert in

15、to tab3 values(1, CCCCC, 1) go isql -Usa -SSQL2 use DB2 go create table tab1 (a int, b char(10), c int) go grant all on tab1 to public go create table tab2 (a int, b char(10), c char(10), d int, e int) go insert into tab2 values(1, AAAAA,BBBBB, 1, 1) go sp_setreplicate tab2, true go create table tab

16、3(a int, b char(10), c int) go sp_setreplicate tab3, true go grant all on tab3 to public go insert into tab3 values(10000, DDDDD, 1) go 注釋:Now, We create three table tab1, tab2, tab3 in two database, SQL1.DB1, SQL2.DB2.We show three representative examples: Relicate data from SQL1.DB1.tab1 to SQL2.D

17、B2.tab1; Replicate partial columns data from SQL2.DB2.tab2 to SQL1.DB1.tab2; Replicate data only a=10000 from SQL2.DB2.tab3 to SQL1.DB1.tab3. The first example help you testing whether or not replication succeed. The second show you that replication server can hidirection replicate data between two

18、databases. The third show you that replication server can hidirection replicate data between two tables, this require data divide into two part, the first part from A to B, and the second part from B to A. 7:Create Replication Definition Example 1: isql -Usa -SREP create replication definition rep_t

19、ab1 with primary at SQL1.DB1 with all table named tab1 (a int, b char(10), c int) primary key(a) go create subscription sub_tab1 for rep_tab1 with replicate at SQL2.DB2 go isql -Usa -SSQL2 1use DB2 2go 1select * from tab1 2go You should see there are a row (1, AAAAA, 1) in the table tab1. If you can

20、t see, you should wait a moment and retry. You should sure that the password of user sa of replication server REP has the same as the password of sa of SQL Server SQL1. If not, you can execute the following command: isql -Usa -SREP 1alter user sa set password password 2go And, you can execute the fo

21、llowing command to check the replication status: Isql -Usa -SREP 1 check subscription sub_tab1 for rep_tab1 with replicate at SQL2.DB2 2 go If the result contains two VALID, you can execute the following command: isql -Usa -SSQL1 1use DB1 2go 1insert into tab1 values(2, AAA01, 2) 2go isql -Usa -SSQL

22、2 1use DB2 2go 1select * from tab2 2go The results should contain two rows, and now replication is normal. You may do other testing to check. Example 2: isql -Usa -SREP 1create replication definition rep_tab2 with primary at SQL2.DB2 2 with all tables named tab2(a int, c char(10), e int) primary key

23、 (a ) 3go 1create subscription sub_tab2 for rep_tab2 with replicate at SQL1.DB1 2go You can use the previous method to check. isql -Usa -SSQL2 1use DB2 2go 1insert into tab2 values(2, aaaaa, bbbbb, 2, 2) 2go isql -Usa -SSQL1 1use DB1 2go 1select * from tab2 2go Example 3: isql -Usa -SREP 1create rep

24、lication definition SQL1_tab3 with primary at SQL1.DB1 2with all tables named tab3(a int, b char(10), c int) 3primary key (a) searchable columns (a) 4go 1create subscription sub_SQL1_tab3 for SQL1_tab3 2with replicate at SQL2.DB2 where ago 1create replication definition SQL2_tab3 with primary at SQL

25、2.DB2 2with all tables named tab3(a int, b char(10), c int) 3primary key (a) searchable columns(a) 4go 1create subscription sub_SQL2_tab3 for SQL2_tab3 2with replicate at SQL1.DB1 where a=10000 3go Using the same method, you can check whether or not hidirection replication is successful. isql -Usa -

26、SSQL1 1use DB1 2go 1insert into tab3 values(100, QQQQQ, 100) 2go isql -Usa -SSQL2 1use DB2 2go 1select * from tab3 2go 1insert into tab3 values(10002, WWWWW, 11) 2go isql -Usa -SSQL1 1use DB1 2go 1select * from tab3 2go 三、 復(fù)制服務(wù)器安裝范例:Warm Standby應(yīng)用 1:Install SQL Server, Create Database: 主結(jié)點(diǎn): SQL Serv

27、er Name: SQL1 Database Name: DB3 復(fù)制結(jié)點(diǎn): SQL Server Name: SQL2 Database Name: DB3 2:Install Replication Server 使用rs_init: Replication Server Name: REP ID Server: yes RSSD位置: SQL Server Name: SQL1 Database Name: RSSD Need LTM: no Stable queue: Physical path: /data1/sybase/rs_queue1.dat Logical Name: qu

28、eue1 3:Creating the Logical Connection isql -Usa -SREP 1create logical connection to demo_lds.demo_db 2go 注:邏輯連接使用的Data Server和Database名應(yīng)不同于Active Database;但如果database已存在于復(fù)制環(huán)境,則邏輯連接使用的Data Server和Database名必須與Active Database的一樣。 4:Adding the Active Database to the replication System 使用:rs_init; Repli

29、cation Server Name: REP Replication SA User: sa (Password is null unless you changed) SQL Server Name: SQL1 Database Name: DB3 Need LTM: yes (Primary Database -yes, Replication Database - no) LTM Name:SQL1_DB3_LTM Is This a Physical Connection for an Existing Logical Connection? yes Is This an Activ

30、e connection or standby connection? active Logical DS Name: demo_lds Logical DB Name: demo_db 5:Create Table in the Active Database & Standby Database isql -Usa -SSQL1 1use DB3 2go 1create table tab1(a int, b char(10) 2go 1quit isql -Usa -SSQL2 1use DB3 2go 1create table tab1(a int, b char(10) 2go 1

31、quit 6:Enabling replication for Objects in the Active Database isql -Usa -SSQL1 1use DB3 2go 1sp_setreptable tab1, true 2go 7:Adding the Standby Database Maintenance User isql -Usa -SSQL2 1sp_addlogin SQL2_DB3_maint,SQL2_DB3_maint_ps,DB3 2go 1quit isql -Usa -SSQL1 1sp_addlogin SQL2_DB3_maint,SQL2_DB

32、3_maint_ps,DB3 2go 1use DB3 2go 1sp_adduser SQL2_DB3_maint 2go 1quit 注:SQL1和SQL2中的所有l(wèi)ogin ID(即suid)必須一致,這可以通過(guò)用相同的順序建用戶來(lái)實(shí)現(xiàn);也可以用調(diào)整系統(tǒng)表syslogins和sysloginroles來(lái)實(shí)現(xiàn)。 8:Adding the Standby Database to Replication System isql -Usa -SREP 1suspend connection to SQL1.DB3 with nowait 2go 使用:rs_init; Replication S

33、erver Name: REP Replication SA User: sa (Password is null unless you changed) SQL Server Name: SQL2 Database Name: DB3 Need LTM: yes LTM Name:SQL2_DB3_LTM Is This an Active Connection or Standby Connection? Standby Logical DS name: demo_lds Logical DB name: demo_db Active DS name: SQL1 Active DB nam

34、e: DB3 Active DB SA user: sa Active DB SA Password: Initialize Standby Using Dump and Load: yes Use Dump Marker to Start Replicating to Standby: no 9:同步兩個(gè)數(shù)據(jù)庫(kù)的數(shù)據(jù) isql -Usa -SREP 1wait for create standby for demo_lds.demo_db 2go 1admin logical_status, demo_lds,demo_db 2go 1quit isql -Usa -SSQL1 1dump

35、database DB3 to /data1/sybase/db3_data.dat 2go 1quit #rcp node1:/data1/sybase/db3_data.dat, /data1/sybase #chown sybase /data1/sybase/db3_data.dat You can also use ftp with the sybase user from node1:/data1/sybase/dbfile/db3_data.dat to node2 with the same location. isql -Usa -SSQL2 1load database D

36、B3 from /data1/sybase/db3_data.dat 2go 1online database DB3 2go 1quit isql -Usa -SREP 1resume connection to SQL1.DB3 2go 1resume connection to SQL2.DB3 2go 1quit 10:Enabling Replication for Objects in the Standby Database isql -Usa -SSQL1 1sp_setreptable tab1, true 2go 11:Granting Permission to the

37、Maintenance User isql -Usa -SSQL2 1use DB3 2go 1grant all on tab1 to SQL2_DB3_maint 2go 第三部分:復(fù)制服務(wù)器的運(yùn)行維護(hù) 因?yàn)閺?fù)制服務(wù)器是實(shí)時(shí)在線復(fù)制系統(tǒng),同時(shí)又涉及到主結(jié)點(diǎn)和復(fù)制結(jié)點(diǎn)的兩個(gè)運(yùn)行數(shù)據(jù)庫(kù),而且往往數(shù)據(jù)庫(kù)處理的數(shù)據(jù)和信息量也很大,而復(fù)制服務(wù)器本身又是一種比較復(fù)雜的技術(shù),所以復(fù)制服務(wù)器需要專門(mén)的高級(jí)數(shù)據(jù)庫(kù)管理員(DBA)經(jīng)常地進(jìn)行高水平和高質(zhì)量的維護(hù)工作,下面僅介紹一些基本的維護(hù)和管理知識(shí),對(duì)于復(fù)雜的維護(hù)知識(shí)和技術(shù),請(qǐng)大家參考SYBASE數(shù)據(jù)庫(kù)隨機(jī)參考手冊(cè)Replication Server Adm

38、inistration Guide、Replication Server Commands Reference。 一、 數(shù)據(jù)庫(kù)復(fù)制系統(tǒng)的啟動(dòng)和關(guān)閉步驟: 1、數(shù)據(jù)庫(kù)復(fù)制系統(tǒng)啟動(dòng)順序: (1)在主點(diǎn)數(shù)據(jù)庫(kù)DB1主機(jī) /database/sybase/install目錄下執(zhí)行 db1% startserver-f RUN_SYSBASE1 啟動(dòng)SYBASE1 SQL Server (2) 在復(fù)制點(diǎn)數(shù)據(jù)庫(kù)DB2主機(jī) /database/sybase/install目錄下執(zhí)行 db2% startserver-f RUN_SYBASE2 啟動(dòng)SYBASE2 SQL Server (3) 在復(fù)制服務(wù)器R

39、S主機(jī) /database/sybase/install目錄下執(zhí)行 db2% startserver-f RUN_RSCC 啟動(dòng)RSCC復(fù)制服務(wù)器 (4) 在復(fù)制服務(wù)器RS主機(jī) /database/sybase/install目錄下執(zhí)行 db2% startserver-f RUN_SYSBASE1_aicntmng_ltm 啟動(dòng)主點(diǎn)數(shù)據(jù)庫(kù)LOG傳輸管理進(jìn)程 (5) 檢查 % ps -ef 可看到以上全部進(jìn)程 % showserver 可看到SQL Server進(jìn)程 如SYBASE1 SYBASE2 (6) 備份服務(wù)器: 只用于數(shù)據(jù)庫(kù)備份,即dump和load時(shí)才用到。 可用Showserve

40、r看到。啟動(dòng)命令為: db1% startserver -f RUN_BACKUP1 db2% startserver -f RUN_BACKUP2 2、數(shù)據(jù)庫(kù)復(fù)制系統(tǒng)關(guān)閉順序: (與啟動(dòng)順序相反) (1)。db2% isql -Usa -SSYBASE1_aicntmng_ltm 1 shutdown 2 go 關(guān)閉LTM進(jìn)程 (2)。db2% isql -Usa -SRSCC 1 shutdown 2 go 關(guān)閉復(fù)制服務(wù)器 (3)。Db2 % isql -Usa -SSYBASE2 1 shutdown SYB_BACKUP 2 go 1 shutdown 2 go 關(guān)閉復(fù)制點(diǎn)數(shù)據(jù)庫(kù)SQL服務(wù)器 (4)。db1% isql -Usa -SSYBASE1 1 shutdown SYB_BACKUP 2 go 關(guān)閉BACKUP服務(wù)器 1 Shutdown 2 go 關(guān)閉主點(diǎn)數(shù)據(jù)庫(kù)SQL服務(wù)器 二、 監(jiān)視復(fù)制服務(wù)器系統(tǒng)運(yùn)行狀態(tài) 1、在RSCC上監(jiān)視,用admin who 看所有進(jìn)程是否正常,主要選項(xiàng)down、suspent、active和awaiting;admin health看連接狀態(tài);admin logical_status看邏輯連接方向;admin disk_sp

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論