(1)SYSTEM 用户登录SQLPLUS
SYS是sysdba用户,不能直接登录
(2)SYSDBA登录
CONN / as sysdba;
(3)查看数据库字符集
select userenv('language') from dual;
我机器上显示的是 SIMPLIFIED CHINESE_CHINA.ZHSGBK
(4)下面命令依次执行,根据回馈结果判定是否正确执行
关闭数据库,卸载,关闭例程
sql> shutdown immediate;
#启动
sql> startup mount;
#修改
sql> alter system enable restricted session;
sql> alter system set job_queue_processes=0;
sql> alter system set aq_tm_processes=0;
sql> alter database open;
sql> alter database character set internal_use UTF8;
#重新启动
sql> shutdown immediate;
sql> startup;
(5)再次查询编码,已经修改
select userenv('language') from dual;
结果变成 :SIMPLIFIED CHINESE_CHINA.UTF8