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 ZHS16GBK;
--设置INTERNAL_USE指令不对字符集超集进行检查:
SQL>SHUTDOWN IMMEDIATE
SQL>STARTUP
2、改服务器端字符集,通过ORACLE的SQL PLUS命令窗口改
在SQL*PLUS 中,以DBA登录
conn 用户名 as sysdba
然后执行以下命令
OR
############value too long################ (1) 切换需要启动的数据库实例:export ORACLE_SID=C1 ##########如果报错,从第二步开始 (2) 进入Sqlplus控制台,命令:sqlplus /nolog (3) 以系统管理员登录,命令:connect / as sysdba (4) 如果是关闭数据库,命令:shutdown immediate (5) 启动数据库,命令:startup (6) 退出sqlplus控制台,命令:exit
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 ZHS16GBK; --设置INTERNAL_USE指令不对字符集超集进行检查: SQL>SHUTDOWN IMMEDIATE SQL>STARTUP