ORA-22868:tablewithLOBscontainssegmentsindifferentta
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了ORA-22868:tablewithLOBscontainssegmentsindifferentta,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1704字,纯文字阅读大概需要3分钟。
内容图文
![ORA-22868:tablewithLOBscontainssegmentsindifferentta](/upload/InfoBanner/zyjiaocheng/562/8e75cb10427e49118547bd99eb52347a.jpg)
今天做实验的时候创建了一个表空间lob_tbs, 并且在该表空间上创建了一个包含大对象字段的表lob_tab。 当实验结束想要删除该表空间
今天做实验的时候创建了一个表空间lob_tbs, 并且在该表空间上创建了一个包含大对象字段的表lob_tab。 当实验结束想要删除该表空间时报错ORA-22868。使用Oracle的帮助信息oerr ora 22868很容易定位问题的原因,根据提示先删除含有大字段的表,,然后在删除该表空间就可以了。
问题还原如下:
1. 创建表空间lob_tbs
create tablespace lob_tbs datafile ‘/dbfiles/lob_tbs01.dbf’ size 100m
autoextend on extent management local;
2. 在users表空间创建表lob_tab, 大字段列存储在lob_tbs表空间中
create table lob_tab (id int, doc blog) tablespace users
lob(doc) store as securefile(tablespace lob_tbs compress high deduplicate);
3. 删除表空间lob_tbs报错ORA-22868
drop tablespace lob_tbs including contents;
drop tablespace lob_tbs including contents
*
ERROR at line 1:
ORA-22868: table with LOBs contains segments in different tablespaces
使用oerr帮助信息查到提示drop these tables and reissure drop tablespace. 先删除表,然后在删除表空间
enmoedu1*PROD1 ~ $ oerr ora 22868
22868, 00000, "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.
HR@PROD1 > drop table lob_tab;
SYS@PROD1 > drop tablespace lob_tbs;
Tablespace dropped.
遇到报错信息时,使用oerr可提供说明,甚至给出指导性建议来帮助我们处理问题。
全文完
本文永久更新链接地址:
内容总结
以上是互联网集市为您收集整理的ORA-22868:tablewithLOBscontainssegmentsindifferentta全部内容,希望文章能够帮你解决ORA-22868:tablewithLOBscontainssegmentsindifferentta所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。