一、备份
一共涉及8个参数,其中2个BACKUP_FILTER、RESTORE_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文件中的TAPEDEV、TAPEBLK、TAPESIZE参数进行正确的设置。
2