BABES

2.login: sybase password:sybase

3.$ cd install

4.$ startserver -f RUN_SYB_BACKUP 

5.$ isql -Usa -P

6.1>dump database foxhis to '/home/sybase/dump/fox1.dat'stripe on '/home/sybase/dump/fox2.dat'stripe on '/home/sybase/dump/fox3.dat'stripe on '/home/sybase/dump/fox4.dat' 

7.2>go


8.系统开始备份前台系统,约需5分钟 

9.1>load database nfoxhis from '/backup/dump/foxhisdump.dat'

10.2>go(开始将正式库的数据倒入练习库,约需5分钟),完成后

11.1>online database nfoxhis

12.2>go

13.1>exit

14.出现$后,键入exit

15.返回login:

二)两个服务器之间数据库的转换:

1.在工作站点上,点击“运行”,输入telnet 150.0.1.110(主服务器的IP地址)

2.login: sybase,密码sybase

3.$ cd install

4.$ startserver -f RUN_SYB_BACKUP (注意字母大小写)

5.$ isql -Usa -P

6.1>dump database foxhis to '/backup/dump/foxhis55.dat' 

7.2>go

8.系统开始备份系统,约需5分钟 

9.1>exit

10.出现$后,键入exit

---------------------------------------------------------------------------------------------------------------------

11.在windows中,用“运行”,键入ftp 150.0.1.110 (主服务器ip地址),"确定"

12.键入sybase,密码sybase

13.ftp>bin

14.ftp>cd /backup/dump

15.ftp>lcd d:\

16.ftp>get foxhis55.dat将文件备份至本机D盘根目录下

----------------------------------------------------------------------------------------------------------------------

17.在windows中,用“运行”,键入ftp 150.0.1.100 (备份服务器ip地址),"确定"

18.键入sybase,密码sybase

19.ftp>bin

20.ftp>cd /backup/dump

21.ftp>lcd d:\

22.ftp>put foxhis55.dat将备份文件传到备份服务器上

----------------------------------------------------------------------------------------------------------------------

23.在工作站点上,点击“运行”,输入telnet 150.0.1.100(备份服务器的IP地址)

24.login: sybase,密码sybase

25.$ cd install

26.$ startserver -f RUN_SYB_BACKUP (注意字母大小写)

27.$ isql -Usa -P

28.load database foxhis from '/backup/dump/foxhis55.dat'

29.go(约需5分钟),完成后

30.1>online database foxhis

31.2>go

32.1>exit

33.出现$后,键入exit

34.返回login:



输入sybase数据库 ,后面密码为:sybase 回车,再次输入isql -Usa密码为空 (交互式结构化查询) 回车,

输入 sp_helpdb foxhis 回车,  输入 go