The following describes how to set the encoding for ORACLE databases. If you have encountered similar problems in ORACLE Database settings, take a look.
ORACLE Database encoding:
- $ 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
Note: The new character set must be a superset of the old one,
In this case, we can skip the superset check and make changes (UTF8 can be changed as needed, such as ZHS16GBK ):
- SQL> ALTER DATABASE CHARACTER SET INTERNAL_USE UTF8;
- Database altered.
Oracle date formatting implementation
How to view the oracle database version
Learn about the ORACLE resource role
Oracle data export and import Permissions
Oracle read-only user role creation