oracle11g数据库怎么改编码格式
1个回答
展开全部
首先查看oracle数据库的编码:
SQL> select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';
修改字符集编码(这会对数据库的数据有直接的影响,谨慎操作):
SQL>conn /as sysdba
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;
SQL>shutdown immediate;
SQL> startup
SQL> select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';
修改字符集编码(这会对数据库的数据有直接的影响,谨慎操作):
SQL>conn /as sysdba
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;
SQL>shutdown immediate;
SQL> startup
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询