免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2581 | 回复: 8
打印 上一主题 下一主题

关于sybase ase12中数据库文件的备份 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-18 10:10 |只看该作者 |倒序浏览
最近刚开始学用tape进行数据备份,遇到下面问题请各位帮助解决。1>;dump database database_name to "/dev/rmt0" capacity=2000000,file="backup.xxx" with init
2>;go
Msg 2812, Level 16, State 5:
Line 1:
Stored procedure 'l' not found. Specify owner.objectname or use sp_help to check
whether the object exists (sp_help may produce lots of output).
Backup Server session id is:  109.  Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 8.5.1.1: Warning, unable to open device configuration file
/sybase/backup_tape.cfg for reading. Operating system error No such file or
directory.
Backup Server: 8.15.1.1: Device /dev/rmt0: not found in tape configuration file.
Tape configuration will be attempted.
Backup Server: 8.11.1.1: Device /dev/rmt0: Will be auto-configured and the
results saved in the configuration file /sybase/backup_tape.cfg.  The
configuration will take additional time.
Backup Server: 8.16.2.1: Device /dev/rmt0: Auto-configuration failure. The
device functions as rewind on close. Please specifiy the no rewind on close
device interface.
Msg 8009, Level 16, State 1:
Line 2:
Error encountered by Backup Server.  Please refer to Backup Server messages for
details.

email:weihyuan@263.net

论坛徽章:
0
2 [报告]
发表于 2003-03-18 11:09 |只看该作者

关于sybase ase12中数据库文件的备份

sybase备份要使用非回绕设备,你使用的是回绕设备,所以不能备份。
针对你的OS,修改to后面的设备文件名字

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2003-03-18 11:09 |只看该作者

关于sybase ase12中数据库文件的备份

使用磁带备份需要配置backup_tape.cfg文件,指定"/dev/rmt0.1" (Rewind-on-close=NO,Retension-on-open=NO),你可以配置好转储设备,也可以让它自动配置。

论坛徽章:
0
4 [报告]
发表于 2003-03-18 12:18 |只看该作者

关于sybase ase12中数据库文件的备份

dump database database_name to "/dev/rmt0.1" with capacity=2000000,file="backup.xxx",init

论坛徽章:
0
5 [报告]
发表于 2003-03-18 14:40 |只看该作者

关于sybase ase12中数据库文件的备份

楼上大侠,我用的是AIX+SYBASE,请问具体的配置方法,多谢!!!!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
6 [报告]
发表于 2003-03-18 15:39 |只看该作者

关于sybase ase12中数据库文件的备份

如你楼上的大虾说的做,或
在SYBASE CENTRAL 中添加DUMP DEVICES

论坛徽章:
0
7 [报告]
发表于 2003-03-18 17:39 |只看该作者

关于sybase ase12中数据库文件的备份

也可以这样
sp_addumpdevice 'tape','tape1','/dev/rmt0.1',20000
20000单位为M,即20G

这样以后就不用每次敲 capacity 了。

如此使用即可:
dump database to tape1 with file="xxx" ,init

你的关键问题就是 rmt0.1 而不是 rmt0 的问题。
其它的都是大家额外赠送的......

论坛徽章:
0
8 [报告]
发表于 2003-03-19 11:36 |只看该作者

关于sybase ase12中数据库文件的备份

多谢楼上诸位,心中清楚多了。另外想请问如何检查磁带中的文件信息。

论坛徽章:
0
9 [报告]
发表于 2003-03-19 12:29 |只看该作者

关于sybase ase12中数据库文件的备份

load database dbname with listonly
load database dbname with headeronly
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP