iis服务器助手广告广告
返回顶部
首页 > 资讯 > 错误编码 >ORA-22856: cannot add columns to object tables ORACLE 报错 故障修复 远程处理
  • 522
分享到

ORA-22856: cannot add columns to object tables ORACLE 报错 故障修复 远程处理

报错故障add 2023-11-04 23:11:21 522人浏览 安东尼
摘要

文档解释 ORA-22856: cannot add columns to object tables Cause: An attempt was made to add columns to an object table. Object

文档解释

ORA-22856: cannot add columns to object tables

Cause: An attempt was made to add columns to an object table. Object tables cannot be altered to add columns since its definition is based on an object type.

Action: Create a new type with additional attributes, and use the new type to create an object table. The new object table will have the desired columns.

ORA-22856: 不能在对象表中添加列。

官方解释

ORA-22856: 在对象表中添加列时发生错误。对象表是表格和该表格中的数据类型之间映射的表。它以oracle OBJECT视图形式显示。

常见案例

ORA-22856: 错误通常发生在在ORACLE OBJECT TABLE上尝试添加字段时,例如,尝试:

sql> ALTER TABLE my_obj_tab ADD (my_newcolumn VARCHAR2(10));

一般处理方法及步骤

1.首先确认此表是否是对象表格,或者说它以ORACLE OBJECT视图的形式存在。

2.若果是对象表,则不能添加列。但是您可以编辑它的属性以添加字段。

3.编辑对象表格的属性,然后添加您需要添加的字段。

4.执行ALTER TABLE语句添加新字段。

--结束END--

本文标题: ORA-22856: cannot add columns to object tables ORACLE 报错 故障修复 远程处理

本文链接: https://www.lsjlt.com/news/527229.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作