- 论坛徽章:
- 0
|
INFORMIX系统维护基本问题解答
21 数据库的消息日志文件包含什么内容?怎样观察?
数据库日志文件即Message Log 文件包含了一些系统运行状态信息,其中一些是正常信息,另外一些是异常信息。
常见的正常信息包括:
状态的改变
09:29:07 DR RAUTO is 0 (Off)
09:29;08 INFORMIX-OnLine Initialized – Shared Memory Initialized.
快速恢复信息
09:29:08 Physical Recovery Complete :0 Pages Restored.
09:29:08 Logical Recovery Started.
09:29:10 Logical Recovery Complete.
0 Committed, 0 Rolled Back, 0 Open, 0 Bad Locks
检查点的记录和间隔时间
09:03:24 Checkpoint Completed: duration was 5 seconds.
10:04:06 Checkpoint Completed: duration was 6 seconds.
配置参数改变信息
18:42:56 Onconfig parameter SHMVIRTSIZE modified from 200000 to 8000.
动态分配内存信息
18:42:54 Dynamically allocated new shared memory segment (size 838860
常见的错误信息:
请查看<<INFORMIX-Online Dynamic Server Administrator’s Guide Version 7.1, Volume2>;>;Chapter 41 Online Message Log Messages
消息日志的观察可以通过两种方法:
1. 命令方式:onstat –m
2. 直接用vi等命令查看消息日志文件,通常情况该文件名是:$INFORMIXDIR/online.log。
22 出现故障保留哪些现场信息?
1) 控制台信息
2) 应用程序出现的故障现象,如SQL错误号、ISAM错误号等。
3) 消息日志文件信息。
4) 由$INFORMIXDIR/etc/$ONCONFIG中DUMDIR指定的目录如/tmp下包含一些由数据库服务器产生的临时文件:
af.xxx
gcore
shmen.xxx
5)产生在/tmp目录下的临时文件:
VP.servername.nnC
buildsmi.xxx
.inf.servername
oncatlgr.out.pidnum
23 如何做整个系统的恢复?
直接从零级备份磁带作系统恢复。
恢复零级备份步骤如下:
将准备恢复的零级备份磁带插入指定的磁带机
用DBA注册
$ontape –r
Please mount tape 1 on /dev/rmt/0m and press Return to continue…
<回车>;
Archive Tape Information
Tape type: Archive Backup Tape
Online version: INFORMIX-OnLine Version 7.12.UC1
Archive date: Sun Oct 26 18:59:03 1997
User id: informix
Terminal id: /dev/ttyp3
Archive level: 0
Tape device: /dev/rmt/0m
Tape blocksize (in k): 512
Tape size (in k): 204800
Tape number in series: 1
Spaces to restore:1 [rootdbs ]
2[cleardbs ]
3[tmpdbs ]
4[logdbs ]
Archive Information
INFORMIX-OnLine Copyright(C) 1986-1994 Informix Software,Inc.
Initiaization Time 08/22/97 17:04:03
System Page Size 2048
Version 3
Archive CheckPoint Time 10/26/97 18:59:05
Dbspaces
Number flags fchunk nchunks flags owner name
1 1 1 1 N informix rootdbs
1 2 2 N informix cleardbs
3 1 1 3 N informix tmpdbs
3 1 1 4 N iinformix logdbs
Chunks
Chk/dbs offset size free dpages flags pathname
1 1 0 5000 2133 PO- /home/informix/rootdbs
2 2 0 5000 4947 PO- /home/informix/cleardbs
3 3 0 5000 4947 PO- /home/informix/tmpdbs
4 4 0 5000 4947 PO- /home/informix/logdbs
5 2 0 5000 4947 PO- /home/informix/cleardbs1
Continue restore? (y/n) y
Do you want to back up the logs? (y/n)y
放入另外一盘逻辑日志备份带
Please mount tape 1 on /dev/rmt/0m and press Retum to continue…
Would you like to back up any of logs 15 – 24? (y/n) y
Logical logs 15 – 24 may be backed up.
Enter the id of the oldest log that you would like to backup? 20
Please label this tape as number 1 in the log tape sequence.
This tape contains the following logical logs:
20 – 24
Log salvage is complete, continuing restore of archive.
Restore a level 1 or 2 archive (y/n) Do you want to restore log tapes?
(y/n)n
24 如何使用逻辑日志备份作系统恢复?
如果系统从0级(或1、2级)恢复后,需要逻辑日志的恢复,步骤如下:
系统恢复文成后,提示是否需要逻辑日志的恢复,一定回答:是。
Do you want to restore log tapes?(y/n)y
Roll forward should start with log number 23
Please mount tape 1 on /dev/rmt/1m and press Return to continue…
<回车>;
Do you want to restore another log tape? (y/n) y
Program over.
25 数据库运行实体是Network Down,该怎样解决?
当出现如下错误时,请从以下几个方面考虑解决图径:
1)$INFORMIXDIR/bin下的文件的权限不正确,请重新按正确方法安装产品。
2)系统网络配置有问题,请注意开机时有否提示网络配置方面的问题,如TCP是否正常工作。
3) 检查/etc/host.equiv文件是否作了正确的配置。 |
|