sybase 整库 备份 使用 dump load 以及启动 停止Sybase
2011-12-13 10:28
369 查看
首先确保备份服务器正常运行 startserver -f RUN_CHQ_WEB_BS
启动sybase数据库sybase@CHQWEB:/sybase/ASE-12_5/install> ./startserver -f RUN_DB_WEB
然后进入isql
sybase@CHQWEB:/sybdata> isql -U sa -P -S CHQWEB
备份数据库
dump database webdb to "/apps/webdb.dat"
还原数据库
load database webdb from "/apps/webdb.dat"
因为文件的大小是受限制的所以有时候我们不得不备份成多个文件,大小均分 写法如下:
备份数据库
dump database webdb to "/apps/webdb1.dat stripe on /apps/webdb2.dat stripe on ... /apps/webdbn.dat "
还原数据库
load database webdb from "/apps/webdb1.dat stripe on /apps/webdb2.dat stripe on ... /apps/webdbn.dat "
停止服务命令如下:
1.shutdown
Adaptive Server
shutdown
2.shutdown with nowait
Adaptive Server
3.shutdown SYB_BACKUP
Backup Server
4.shutdown REM_BACKUP
Backup Server REM_BACKUP
启动sybase数据库sybase@CHQWEB:/sybase/ASE-12_5/install> ./startserver -f RUN_DB_WEB
然后进入isql
sybase@CHQWEB:/sybdata> isql -U sa -P -S CHQWEB
备份数据库
dump database webdb to "/apps/webdb.dat"
还原数据库
load database webdb from "/apps/webdb.dat"
因为文件的大小是受限制的所以有时候我们不得不备份成多个文件,大小均分 写法如下:
备份数据库
dump database webdb to "/apps/webdb1.dat stripe on /apps/webdb2.dat stripe on ... /apps/webdbn.dat "
还原数据库
load database webdb from "/apps/webdb1.dat stripe on /apps/webdb2.dat stripe on ... /apps/webdbn.dat "
停止服务命令如下:
1.shutdown
Adaptive Server
shutdown
2.shutdown with nowait
Adaptive Server
3.shutdown SYB_BACKUP
Backup Server
4.shutdown REM_BACKUP
Backup Server REM_BACKUP
相关文章推荐
- sybase 整库 备份 使用 dump load 以及启动 停止Sybase
- sybase 整库 备份 使用 dump load 以及启动 停止Sybase
- centos7中使用yum安装tomcat以及它的启动、停止、重启
- redis-dump-load数据导出导入备份工具使用介绍
- Rhel6服务器dump备份和restore恢复以及dd的使用
- 使用shell脚本批处理控制大数据环境服务启动停止
- 本地计算机上的Apple Mobile Device服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止
- MySQL 安装和启动服务,“本地计算机 上的 MySQL 服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。”
- http load 的使用以及参数解释
- linux系统中rsync的安装和使用,以及配置rsync开机启动
- 交换机的使用以及备份
- HDFS使用QJM(Quorum Journal Manager)实现的高可用性以及备份机制
- ubuntu安装supervisor以及使用supervisor启动.net core进程
- java程序监控tomcat中部署的项目的状态以及控制某些项目的启动停止
- Windows Server 2012 禁止使用Ctrl+Alt+Del 以及禁止开机启动服务器管理器
- 【python】使用pickle模块将pickle.dump()、pickle.load()封装实例详解
- cocos2dx三种定时器的使用以及停止schedule,scheduleUpdate,scheduleOnce
- MySQL服务器的启动和停止以及10061报错处理
- VLD在VS2010中的使用以及应用程序无法正常启动(0xc0150002)