linux sybase ase 数据库恢复
2015-10-15 17:47
661 查看
1、步骤
isql -Usa -PXXX -Sxxx -X
1> disk init name ="msgdb" ,physname="/users/nweng/ASE/data/msgdb.dat" ,size='2G'
2> go
1> disk init name ="msgdb_log",physname="/users/nweng/ASE/data/msgdb_log.dat",size='1G'
2> go
1> Create database msgdb on msgdb='1500M' log on msgdb_log ='500M'
2> go
1> load database msgdb from "compress::/usr/u/msgdb.cmp"
2> go
1> online database msgdb
2> go
2、遇到的错误和处理
Started estimating recovery log boundaries for database 'msgdb'.
Database 'msgdb', checkpoint=(97416, 10), first=(97416, 10), last=(97416, 11).
Completed estimating recovery log boundaries for database 'msgdb'.
Started ANALYSIS pass for database 'msgdb'.
Completed ANALYSIS pass for database 'msgdb'.
Recovery of database 'msgdb' will undo incomplete nested top actions.
Database 'msgdb' cannot be brought online because it has replicated tables that
may not be completely transferred. After making sure that your replication is in
sync, use dbcc dbrepair to remove the secondary truncpt.
执行:
1> dbcc dbrepair(msgdb,ltmignore)
2> go
再
1> online database msgdb
2> go
isql -Usa -PXXX -Sxxx -X
1> disk init name ="msgdb" ,physname="/users/nweng/ASE/data/msgdb.dat" ,size='2G'
2> go
1> disk init name ="msgdb_log",physname="/users/nweng/ASE/data/msgdb_log.dat",size='1G'
2> go
1> Create database msgdb on msgdb='1500M' log on msgdb_log ='500M'
2> go
1> load database msgdb from "compress::/usr/u/msgdb.cmp"
2> go
1> online database msgdb
2> go
2、遇到的错误和处理
Started estimating recovery log boundaries for database 'msgdb'.
Database 'msgdb', checkpoint=(97416, 10), first=(97416, 10), last=(97416, 11).
Completed estimating recovery log boundaries for database 'msgdb'.
Started ANALYSIS pass for database 'msgdb'.
Completed ANALYSIS pass for database 'msgdb'.
Recovery of database 'msgdb' will undo incomplete nested top actions.
Database 'msgdb' cannot be brought online because it has replicated tables that
may not be completely transferred. After making sure that your replication is in
sync, use dbcc dbrepair to remove the secondary truncpt.
执行:
1> dbcc dbrepair(msgdb,ltmignore)
2> go
再
1> online database msgdb
2> go
相关文章推荐
- Linux的join命令
- CentOS 7下编译FreeSWITCH 1.6
- Linux的用户和用户组管理
- Linux LVM硬盘管理及LVM扩容
- Linux中用stat命令查看文件时3个时间点解析
- 每天一个linux命令(30): chown命令
- linux下设置最大文件打开数nofile及nr_open、file-max说明
- Linux的权限说明
- Linux中VMware虚拟机增加磁盘空间的扩容操作
- 新版linux内核对nat的修改
- Linux/XWindow的api函数介绍
- CentOS清除用户登录记录和命令历史方法
- 浅谈 Linux 系统中的 SNMP Trap
- LINUX下压缩某个文件夹(文件夹打包)
- Linux——安装Python
- linux消息队列的内核限制
- linux应用编程笔记(10)有名管道编程
- Linux命令大全
- Linux启动流程解析:init_post函数
- linux源码分析