修改数据库字符集为ZHSGBK
查看服务器端字符集
SQL > select * from V$NLS_PARAMETERS;
修改
$sqlplus /nolog
SQL>conn / as sysdba
若此时数据库服务器已启动则先执行 SHUTDOWN IMMEDIATE 命
令关闭数据库服务器然后执行以下命令:
SQL>shutdown immediate
SQL>STARTUP MOUNT
SQL>ALTER SYSTEM ENABLE RESTRICTED SESSION;
SQL>ALTER SYSTEM SET JOB_QUEUE_PROCESSES=;
SQL>ALTER SYSTEM SET AQ_TM_PROCESSES=;
SQL>ALTER DATABASE OPEN;
SQL>ALTER DATABASE CHARACTER SET ZHSGBK
*
ERROR at line :
ORA: operation cannot execute when other sessions are active
若出现上面的错误使用下面的办法进行修改使用INTERNAL_USE可以跳过超集的检查
SQL>ALTER DATABASE CHARACTER SET INTERNAL_USE ZHSGBK;
SQL>SHUTDOWN IMMEDIATE
SQL>STARTUP