下面為您介紹的是Oracle數據庫設置編碼,如果您在Oracle數據庫設置方面遇到過類似的問題,不妨一看。
Oracle數據庫設置編碼:
- $ sqlplus / as sysdba
- SQL> SHUTDOWN IMMEDIATE;
- Database closed.
- Database dismounted.
- Oracle instance shut down.
- SQL> STARTUP nomount;
- Oracle instance started.
- SQL> ALTER DATABASE mount exclusive;
- Database altered.
- 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 CHARACTER SET UTF8;
- ERROR at line 1:
- ORA-12712: new character set must be a superset of old character set
提示字符集:新字符集必須為舊字符集的超集,
這時我們可以跳過超集的檢查做更改(UTF8可以根據需要更改,如ZHS16GBK):
- SQL> ALTER DATABASE CHARACTER SET INTERNAL_USE UTF8;
- Database altered.