ora-22868 错误,请帮忙!!

csd8888 2004-06-18 12:07:53
有什么办法。。。
...全文
952 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
LGQDUCKY 2004-06-18
  • 打赏
  • 举报
回复
这篇文章是yikaikai的原创帖子,出于以前的ORACLE中文论坛,
alter table BLOBS modify default attributes tablespace system
这条SQL语句是用来改变表BLOBS的默认表空间。
csd8888 2004-06-18
  • 打赏
  • 举报
回复
这个是我找的文章,安装这个方法解决了。
csd8888 2004-06-18
  • 打赏
  • 举报
回复
ora-22868 LOB问题的解决办法

在删除一个表空间AAA时产生ora-22868, 表空间含有LOB对象。 在此之前已经把此表空间对应的用户的所有对象已经删除, 查询select * from dba_tables where tablespace_name='AAA', 返回0行。

后来检查dba_indexes, 表空间AAA含有indexex, 表名为BLOBS:

SQL> select index_name from dba_indexes where tablespace_name='AAA';

INDEX_NAME
------------------------------
SYS_IL0000030617C00002$$

想移动到system 表空间都不行:

SQL> drop index system.SYS_IL0000030617C00002$$;
drop index system.SYS_IL0000030617C00002$$
*
ERROR 位于第 1 行:
ORA-22864: 无法 ALTER 或 DROP LOB 索引


SQL> alter index system.SYS_IL0000030617C00002$$ rebuild tablespace system;
alter index system.SYS_IL0000030617C00002$$ rebuild tablespace system
*
ERROR 位于第 1 行:
ORA-02327: 无法以数据类型LOB的表达式创建索引

最后使用alter table BLOBS modify default attributes tablespace system 解决.
csd8888 2004-06-18
  • 打赏
  • 举报
回复
怎么做?
dinya2003 2004-06-18
  • 打赏
  • 举报
回复
楼主知道该怎么做了吧?
welyngj 2004-06-18
  • 打赏
  • 举报
回复
ORA-22868 table with LOBs contains segments in different tablespaces

Cause: An attempt was made to drop a tablespace which contains the segment(s) for the LOB columns of a table but does not contain the table segment.

Action: Find table(s) with LOB columns which have non-table segments in this tablespace. Drop these tables and reissue drop tablespace

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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