oracle ora01732,一天一小步_2008.5.02: ora-01732错误

本文介绍了在处理Oracle数据库时遇到的ORA-01732错误,该错误通常与试图在包含表达式或函数的视图上执行更新、插入或删除操作有关。文章讨论了可能的原因,包括对象实际为物化视图,并提出了通过查询DBMS_METADATA包获取对象定义,以及使用10046事件进行问题排查的解决思路。
摘要由CSDN通过智能技术生成

前两天老大在从一个表中删除数据的时候碰到了01732错误,可一查文档才知道01732是对视图的操作不合法才能碰到的,这是官方的定义:

ORA-01732 data manipulation operation not legal on this

view

Cause: An attempt was made to use an UPDATE, INSERT, or

DELETE

statement on a view that contains expressions or functions or was

derived from

more than one table. If a join operation was used to create the

view or the view

contains virtual columns derived from functions or expressions,

then the view

may only be queried.

Action: UPDATE, INSERT, or DELETE rows in the base tables instead

and

restrict the operations on the view to queries.

可是我们当时从dba_objects中查哪个对象确实显示是个表,老大也说那是个表,到底怎么回事呢?后来google了,也没有搜出个所以然来,这里有两篇文章好像都提到了这个问题可是也没有最终的解决方法,

这里又搜到的一篇文章,可能有用,把他贴出来:

ORA-01732: Data manipulation operati

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值