linux 修改oracle字符集

oracle安装之后想换成UTF8字符集,使用linux命令行操作如下

1、su - oracle   --登录oracle账户

2、sql> conn / as sysdba  --作为sysdba操作

3、sql>shutdown immediate 立即关闭oracle服务

显示:

Database closed.
Database dismounted.
starORACLE instance shut down.

4、sql>startup mount   --打开控制文件

ORACLE instance started.
Total System Global Area 1.3429E+10 bytes
Fixed Size                  2217992 bytes
Variable Size            6845106168 bytes
Database Buffers         6576668672 bytes
Redo Buffers                4661248 bytes
Database mounted.

5、sql> alter system enable restricted session;

System altered.

     sql>alter system set JOB_QUEUE_PROCESSES=0;
System altered.

     sql>alter system set AQ_TM_PROCESSES=0;

System altered.

     sql>alter database open;
Database altered.

     sql>alter database open;  
alter database open

     sql>alter database character set INTERNAL_USE AL32UTF8 ;

Database altered.

6、sql>shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

7、sql>startup

ok,结束,登录plsql使用select userenv('language') from dual;  可以查看到字符集已经修改成功了

相关推荐