try:alter table tbname add col_temp varchar2(..);
update tbname st col_temp=col_name;
update tbname set col_name=null;
commit;
alter table tbname modify (col_name clob);
update tbname set col_name=col_temp;
alter table tbname drop column col_temp;
update tbname st col_temp=col_name;
update tbname set col_name=null;
commit;
alter table tbname modify (col_name clob);
update tbname set col_name=col_temp;
alter table tbname drop column col_temp;
解决方案 »
- 如何在多个关联的表插入数据?
- 从9i数据库中导出的DBF文件,是否可以移植到10g中
- 一个搞不明白的oracle问题
- 存储过程中调用存储过程!
- oracle817,redhat9,net8配置启动错误
- 撤销表空间undotbs1占用很多重启计算机都不减少?
- 多表关联,怎么用解发器删除?
- ORACLE 9创建资料档案库失败,原因如下:
- 如何再次安装Oracle配置工具?
- 怎样的设计称为好的数据库设计?
- select to_date('22-FEB-98','DD-MON-YY') from dual;为什么不正确
- 我已将数据库清空,但是我的 blob 字段还是插入不了数据,就连原来能够插入的,很小的数据都无法插入了,是不是 blob 字段的删除不干净呢
alter table tbname add col_temp clob;
update tbname set col_temp=col_name;
commit;
alter table tbname drop column col_name;
alter table tbname rename column col_temp to col_name;
这样切换时间短一点,但肯定对运行有影响。不知道有没有什么好方法。