您的位置:首页 > 运维架构 > Linux

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: