免费注册 查看新帖 |

Chinaunix

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

[求助]Missing key in referenced table for referential constraint [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-02-17 09:17 |只看该作者 |倒序浏览
本帖最后由 flyinweb_cu 于 2011-02-17 09:50 编辑

Informix Dynamic Server 2000 Version 9.21.UC2   for LINUX

逻辑备份出现问题
2011-02-17 09:14:37 11293  11291 /home/informix/bin/onbar_d -b -l
2011-02-17 09:14:38 11293  11291 Begin backup logical log 149938.
2011-02-17 09:14:38 11293  11291 Successfully connected to Storage Manager.
2011-02-17 09:14:38 11293  11291 The logical logs are full.  ON-Bar may encounter errors writing to
the sysutils database.
2011-02-17 09:14:38 11293  11291 SQL     -691  Missing key in referenced table for referential constraint (informix.r102_11).
2011-02-17 09:14:38 11293  11291 ISAM     -111 ISAM error:  no record found.
2011-02-17 09:14:38 11293  11291 SQL     -691  Missing key in referenced table for referential constraint (informix.r103_16).
2011-02-17 09:14:38 11293  11291 ISAM     -111 ISAM error:  no record found.
2011-02-17 09:14:38 11293  11291 The logical logs are full.  ON-Bar may encounter errors writing to
the sysutils database.
2011-02-17 09:14:38 11293  11291 SQL     -691  Missing key in referenced table for referential constraint (informix.r102_11).
2011-02-17 09:14:38 11293  11291 ISAM     -111 ISAM error:  no record found.
2011-02-17 09:14:38 11293  11291 /home/informix/bin/onbar_d complete, returning 148 (0x94)

可能与先前的日志有关
2011-02-15 09:49:55 17296  17294 /home/informix/bin/onbar_d -b -l                                                
2011-02-15 09:49:55 17296  17294 Begin backup logical log 147643.                                                
2011-02-15 09:49:55 17296  17294 Successfully connected to Storage Manager.                                      
2011-02-15 09:49:55 17296  17294 SQL     -271  Could not insert new row into the table.                          
2011-02-15 09:49:55 17296  17294 ISAM     -131 ISAM error: no free disk space     

请求处理办法

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2011-02-17 10:06 |只看该作者
约束问题~

-691
--------------------------------------------------------------------------------

Missing key in referenced table for referential constraint constraint-name.

A referential constraint has been violated. This condition usually occurs when you are trying to insert a value into or update the value of a column that is part of a referential constraint. The value you are trying to enter does not exist in the referenced (parent-key) column. If you are using cascading deletes, database logging must be on.

论坛徽章:
0
3 [报告]
发表于 2011-02-17 11:12 |只看该作者
问题已经解决,rootdbs size只剩余13,经查。开发有几个表的索引建在rootdbs,删除了索引重建,逻辑日志备份恢复正常。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP