1.版本确认
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
2.报错信息,现象
SQL> startup;
ORACLE instance started.
Total System Global Area 313860096 bytes
Fixed Size 1299624 bytes
Variable Size 297798488 bytes
Database Buffers 8388608 bytes
Redo Buffers 6373376 bytes
ORA-12709: error while loading create database character set
3.处理过程
1).查询到数据库使用的字符集
SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.US7ASCII
2).在.bash_profile配置文件中添加NLS_LANG环境变量为AMERICAN_AMERICA.US7ASCII
$ vi ~/.bash_profile
export NLS_LANG=AMERICAN_AMERICA.US7ASCII
3).是参数文件生效
$ . ./.bash_profile
4).重新启动数据库,问题处理完成
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup;
ORACLE instance started.
Total System Global Area 313860096 bytes
Fixed Size 1299624 bytes
Variable Size 289409880 bytes
Database Buffers 16777216 bytes
Redo Buffers 6373376 bytes
Database mounted.
Database opened.
-- The End --
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70034820/viewspace-2994258/
,如需转载,请注明出处,否则将追究法律责任。