【故障處理】11g資料庫在啟動之後報ORA-12709字符集錯誤

secooler發表於2009-02-26
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部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-557946/,如需轉載,請註明出處,否則將追究法律責任。

相關文章