一个很简单的问题

soft2000 2003-10-17 04:32:05


SQL> create table a(a clob);
create table a(a clob)
*
ERROR 位于第 1 行:
ORA-22866: 默认字符集具有不同的宽度
...全文
124 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
chanet 2003-10-17
  • 打赏
  • 举报
回复
试试这个也可以:
svrmgrl
SVRMGR>startup mount
SVRMGR>alter system enable restricted session;
SVRMGR>alter system set job_queue_processes=0;
SVRMGR>alter database open;
SVRMGR>alter database character set ZHS16GBK;
SVRMGR>shutdown
SVRMGR>startup
welyngj 2003-10-17
  • 打赏
  • 举报
回复
1、数据库: Oracle 9i for NT 企业版
CLOB字段可以select,select时也可以使用where

SQL> create table tbl2(a clob);

表已创建。

insert into tbl2 values('134444')

SQL> select * from tbl2 where a like '13%';

A
--------------------------------------------
134444
134444
134444
jiezhi 2003-10-17
  • 打赏
  • 举报
回复
use utf-8字符级
LGQDUCKY 2003-10-17
  • 打赏
  • 举报
回复
把你的字符级修改了,再试
1、数据库: Oracle 8i R3 (8.1.7) for NT 企业版

说明:

CLOB字段可以select,但select时不可以使用where


SQL> create table a(a clob);

SQL> insert into a values('1234');

SQL> insert into a values('5648');

SQL> select *from a;



1234

5648


lucipeter 2003-10-17
  • 打赏
  • 举报
回复
Plus:

The restriction on CLOB and varying width character sets exists in Oracle 8.0. Thus, either you are not really on 8.1.6 or you have COMPATIBLE set lower than 8.1.0.

CLOBs for varying width character sets are allowed in Oracle8i. They are internally stored as fixed-width UCS-2 Unicode and converted to the database character set as required.
lucipeter 2003-10-17
  • 打赏
  • 举报
回复
the answer from metalink
====================================================================
ORA-22866 default character set is of varying width

Cause: A character LOB was defined but the default character set is not fixed width.

Action: Ensure that the character set is of fixed width before defining character LOBs.

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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