Informix之ontape 0级备份和恢复实例详解

本文详细介绍了Informix数据库使用ontape工具进行0级备份和恢复的步骤,包括修改onconfig参数、执行备份、错误处理、恢复过程,并提到了一些注意事项和常用命令。在恢复过程中,强调了在不同状态下正确操作的重要性,以及如何监视恢复进度。
摘要由CSDN通过智能技术生成

一、备份

一共涉及8个参数,其中2BACKUP_FILTERRESTORE_FILTER用于数据变换指定过滤器程序,不常使用;其他6个如下所示用于创建存储空间和逻辑日志备份。

1、修改onconfig中以下6个参数。

# System Archive Tape Device

TAPEDEV         /home/share       # Tape device path

TAPEBLK         32              # Tape block size (Kbytes)

TAPESIZE        204800          # Maximum amount of data to put on tape (Kbytes)

# Log Archive Tape Device

LTAPEDEV        /home/share/tape1       # Log tape device path

LTAPEBLK        32              # Log tape block size (Kbytes)

LTAPESIZE       102400          # Max amount of data to put on log tape (Kbytes)

2、保证设置的文件地址可用

-bash-3.1$touch tape1

-bash-3.1$chmod 660 tape1

3、运行ontape执行0级备份

-bash-3.1$ ontape -s -L 0

 [root@fedora share]# su - informix

-bash-3.1$ ontape -s -L 0

100 percent done.

File created: /home/share/fedora_10_L0

Please label this tape as number 1 in the arc tape sequence.

This tape contains the following logical logs:

 4

Program over.

4、错误解决

若提示:Directory must have RWX permission for owner/group informix /home/share/

Archive failed - function open archive tape failed code -1 errno 0

Program over.

则:

[root@fedora share]# chown informix:informix /home/share

[root@fedora share]# chmod 777 /home/share

5、使用ontape工具进行数据备份需要注意的问题

     1)在执行ontape备份前要对Onconfig文件中的TAPEDEVTAPEBLKTAPESIZE参数进行正确的设置。

     2

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值