2. Querying the current character set Sql> SELECT * from nls_database_parameters where parameter= ' nls_characterset '; PARAMETER VALUE ---------------------------------------- ---------------------------------------- Nls_characterset WE8ISO8859P1 3. Close the database sql> shutdown Immediate Database closed. Database dismounted. ORACLE instance shut down. 4. Start database to Mount state Sql> Startup Mount ORACLE instance started. Total System Global area 205520896 bytes Fixed Size 1266608 bytes Variable Size 100666448 bytes Database buffers 100663296 bytes Redo buffers 2924544 bytes Database mounted. 5. Limit session Sql> alter system enable restricted session; System altered. 6. Query the relevant parameters and modify Sql> Show parameter job_queue_processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ Job_queue_processes Integer 10 Sql> Show parameter aq_tm_processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ Aq_tm_processes integer 0 Sql> alter system set job_queue_processes=0; System altered. 7. Open the Database sql> ALTER DATABASE open; Database altered. 8. Modify Character Set Sql> ALTER DATABASE character set ZHS16GBK; ALTER DATABASE character Set ZHS16GBK * ERROR at line 1: Ora-12712:new Character set must is a superset of old character set The error prompts that the new character set must be a superset of the old character set, and that the original character set is a subset of the new character set, which can then be queried for the character set inclusion relationship on the Oracle Official document. This method is not recommended in the production environment using the Oracle Internal command Internal_use to skip the superset check. Sql> ALTER DATABASE character set Internal_use ZHS16GBK; Database altered. 9. Querying the current character set Sql> SELECT * from nls_database_parameters where parameter= ' nls_characterset '; PARAMETER VALUE ---------------------------------------- ---------------------------------------- Nls_characterset ZHS16GBK 10. Close the database sql> shutdown Immediate Database closed. Database dismounted. ORACLE instance shut down. 11. Start database to Mount state Sql> Startup Mount ORACLE instance started. Total System Global area 205520896 bytes Fixed Size 1266608 bytes Variable Size 100666448 bytes Database buffers 100663296 bytes Redo buffers 2924544 bytes Database mounted. 12. Change the relevant parameter back to the original value Sql> alter system set job_queue_processes=10; System altered. 13. Open the Database Sql> ALTER DATABASE open; Database altered. |