免费注册 查看新帖 |

Chinaunix

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

恢复时候遇到的问题(ontape -r) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-09 15:36 |只看该作者 |倒序浏览
我用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 Jun  9 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 [rootdbs                                                                                                                         ]
2 [phydbs                                                                                                                          ]
3 [logdbs                                                                                                                          ]
4 [datadbs1                                                                                                                        ]
5 [jpldbs                                                                                                                          ]
6 [pordbs                                                                                                                          ]

Archive Information

Informix Dynamic Server Copyright(C) 1986-1999  Informix 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   nchunks  flags    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        1024000  23947             PO--  /opt/informix/dbs/logdbs
4   4   0        256000   255873            PO--  /opt/informix/dbs/tempdbs
5   5   0        1024000  982645            PO--  /opt/informix/dbs/datadbs1
6   5   0        1024000  1023997           PO--  /opt/informix/dbs/chunk1.2
7   6   0        1024000  709925            PO--  /opt/informix/dbs/jpldbs
8   7   0        1024000  386081            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.

论坛徽章:
0
2 [报告]
发表于 2006-06-09 22:13 |只看该作者
HDR恢复不是用 ontape -p 的么?
可以用finderr -908 看看详细的错误信息。

论坛徽章:
0
3 [报告]
发表于 2006-06-12 09:06 |只看该作者
原帖由 wenqing_9115 于 2006-6-9 22:13 发表
HDR恢复不是用 ontape -p 的么?
可以用finderr -908 看看详细的错误信息。



但我不是做hdr啊。。
我是想在另外一台机器上恢复

论坛徽章:
0
4 [报告]
发表于 2006-06-12 10:15 |只看该作者
看看另一台机器的sqlhosts里server名的定义对不对?

论坛徽章:
0
5 [报告]
发表于 2006-06-12 14:47 |只看该作者
原帖由 yhrain3699 于 2006-6-12 10:15 发表
看看另一台机器的sqlhosts里server名的定义对不对?


配置都正确啊。。机器名字跟原来的不同而已。。
就算机器名相同也是报这个错

[ 本帖最后由 filwy 于 2006-6-12 14:48 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2006-06-12 15:27 |只看该作者
两台机器的名称可以不同,但sqlhosts里的机器名称必须与本机的机器名称相同.用hostname命令看看本机名称,再看看hosts、sqlhosts下的名称定义等是否一致

论坛徽章:
0
7 [报告]
发表于 2007-03-16 10:37 |只看该作者
机器信任问题

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
8 [报告]
发表于 2007-03-16 23:01 |只看该作者
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.

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
9 [报告]
发表于 2007-03-16 23:02 |只看该作者
$ONCONFIG文件$INFORMIXSERVER和sqlhost是否匹配?
onstat -l
看看ids的错误输出,高度怀疑是ip没搞对,没法bind到制定地址的端口。

论坛徽章:
0
10 [报告]
发表于 2007-03-17 17:55 |只看该作者
你看一下用户的环境变量在CSH下应该是.cshrc,装informix的时候server应该是配置在.cshrc里面的。如果是CSH的话,修改完后要source .cshrc。如果是KSH的话,直接修改.profile应该就能生效。应该是环境变量的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP