获取oracle Sequence报错

本文介绍了在使用Siebel应用程序时遇到的Oracle Sequence错误及解决方法。错误表现为无法写入记录,并提示表或视图不存在。原因是创建Sequence时遗漏了grant语句。文章提供了正确的Sequence创建语法,并给出了授权解决方案。

siebel获取oracle Sequence报错

---------------------------
Siebel
---------------------------
An error has occurred writing to a record.  Please continue or ask your systems administrator to check your application configuration if the problem persists.(SBL-DBC-00111)
ORA-00942: table or view does not exist 
---------------------------
确定   
---------------------------

查询log 报错如下:

SQLParseAndExecute Execute 5 0009c38051ff1933:0 2013-08-07 18:12:10 OCIStmtExecute: DML error or affected 0 rows
ObjMgrBusCompLog Error 1 0009c38051ff1933:0 2013-08-07 18:12:10 (oracon.cpp (3254)) SBL-DBC-00111: An error has occurred writing to a record.

原因:创建Sequence时缺少了grant语句。很低级的错误,可是起初不知道,折腾了半天。
-- Create sequence 
create sequence SIEBEL.HW_CUGID_SEQUENCE
minvalue 1
maxvalue 9999999999
start with 1
increment by 1
nocache;

解决办法:
grant select  on SIEBEL.HW_CUGID_SEQUENCE to sse_role;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值