常見情形:從服務器備份Oracle數據庫後再到本地機器上還原Oracle數據庫的時候經常會碰見數據庫字符編碼不一致的情況,可以用以下命令來修改本地的Oracle數據庫字符編碼,然後順利還原Oracle數據庫到本地機器上
操作指令:
SQL> conn /as sysdba;
SQL>select userenv('language') from dual;
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 US7ASCII;
SQL>SHUTDOWN IMMEDIATE;
SQL>STARTUP;
SQL>select userenv('language') from dual;
常見的Oracle字符集有ZHS16GBK、AL32UTF8、US7ASCII等?