建立快照时出错

hellobb 2002-11-15 03:36:30
dblink已建,且
select * from TBTYPE@j63可返回远程数据库中TBTYPE的值,
但执行:
Create snapshot j_snap as Select idtype,sname From TBTYPE@j63;
时提示:
ORA-12014: 表'TBTYPE'不包含主关键字约束条件.
这是什么意思,写法有什么问题吗

...全文
162 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
black_snail 2002-11-15
  • 打赏
  • 举报
回复
You must have your master table with a Primary Key!(or use Rowid)
black_snail 2002-11-15
  • 打赏
  • 举报
回复
Oracle Product Document Library (C) Oracle Corporation
Manual: ORACLE 8.1.7 SERVER CODES Reference: A


ORA-12014 table 'string' does not contain a primary key constraint

Cause: The CREATE SNAPSHOT LOG command was issued with the WITH PRIMARY KEY option and the master table does not contain a primary key constraint or the constraint is disabled.

Action: Reissue the command using only the WITH ROWID option, create a primary key constraint on the master table, or enable an existing primary key constraint.
hellobb 2002-11-15
  • 打赏
  • 举报
回复
还是不行,提示:缺少关键字。能解释一下吗
dongxiangjun 2002-11-15
  • 打赏
  • 举报
回复
Create snapshot j_snap
with rowid
as Select idtype,sname From TBTYPE@j63;

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧