恢复时候遇到的问题(ontape -r)
我用0级备份后,在另一台服务器恢复,配置都一样,,onconfig也一样,,dbspace,chunk都相同,,但执行
ontape -r时候
出现的错误如下:
ontape -r
Please mount tape 1 on /home/u1/tapedev and press Return to continue ...
Archive Tape Information
Tape type: Archive Backup Tape
Online version: Informix Dynamic Server Version 9.40.UC1
Archive date: Fri Jun9 10:55:52 2006
User id: informix
Terminal id: /dev/pts/2
Archive level:0
Tape device: /home/u1/tapedev
Tape blocksize (in k): 32
Tape size (in k): 2048000
Tape number in series: 1
Spaces to restore:1
2
3
4
5
6
Archive Information
Informix Dynamic Server Copyright(C) 1986-1999Informix Software, Inc.
Initialization Time 07/27/2004 10:50:41
System Page Size 2048
Version 13
Archive CheckPoint Time 06/09/2006 10:55:53
Dbspaces
number flags fchunk nchunksflags owner name
1 1 1 2 N informix rootdbs
2 1 2 1 N informix phydbs
3 1 3 1 N informix logdbs
4 2001 4 1 N T informix tempdbs
5 1 5 2 N informix datadbs1
6 1 7 1 N informix jpldbs
7 1 8 1 N informix pordbs
Chunks
chk/dbs offset size free bpages flags pathname
1 1 0 512000 507028 PO--/opt/informix/dbs/rootdbs
2 2 0 512000 11947 PO--/opt/informix/dbs/phydbs
3 3 0 102400023947 PO--/opt/informix/dbs/logdbs
4 4 0 256000 255873 PO--/opt/informix/dbs/tempdbs
5 5 0 1024000982645 PO--/opt/informix/dbs/datadbs1
6 5 0 10240001023997 PO--/opt/informix/dbs/chunk1.2
7 6 0 1024000709925 PO--/opt/informix/dbs/jpldbs
8 7 0 1024000386081 PO--/opt/informix/dbs/pordbs
9 1 0 512000 511997 PO--/opt/ifxdata/rootdbs1
Continue restore? (y/n)y
Do you want to back up the logs? (y/n)n
Physical restore failed - could not fork server connection, SQLCODE -908
Program over. HDR恢复不是用 ontape -p 的么?
可以用finderr -908 看看详细的错误信息。 原帖由 wenqing_9115 于 2006-6-9 22:13 发表
HDR恢复不是用 ontape -p 的么?
可以用finderr -908 看看详细的错误信息。
但我不是做hdr啊。。
我是想在另外一台机器上恢复 看看另一台机器的sqlhosts里server名的定义对不对? 原帖由 yhrain3699 于 2006-6-12 10:15 发表
看看另一台机器的sqlhosts里server名的定义对不对?
配置都正确啊。。机器名字跟原来的不同而已。。
就算机器名相同也是报这个错
[ 本帖最后由 filwy 于 2006-6-12 14:48 编辑 ] 两台机器的名称可以不同,但sqlhosts里的机器名称必须与本机的机器名称相同.用hostname命令看看本机名称,再看看hosts、sqlhosts下的名称定义等是否一致 机器信任问题 The program or application is trying to access another database server
but has failed. Note the server name in the current statement.
The desired database server is unavailable, or the network is down or
is congested. Ask your DBA and system administrator to verify that the
server and network are operational. If the network is congested, use
the environment variables INFORMIXCONTIME and INFORMIXCONRETRY to tune
connection timing. For information on setting these environment variables,
see the IBM Informix Guide to SQL: Reference. $ONCONFIG文件$INFORMIXSERVER和sqlhost是否匹配?
onstat -l
看看ids的错误输出,高度怀疑是ip没搞对,没法bind到制定地址的端口。 你看一下用户的环境变量在CSH下应该是.cshrc,装informix的时候server应该是配置在.cshrc里面的。如果是CSH的话,修改完后要source .cshrc。如果是KSH的话,直接修改.profile应该就能生效。应该是环境变量的问题
页:
[1]
2