在linux下装了一个oracle g登录sqlplus 后显示
SQL> startup
ORACLE ???????
Total System Global Area bytes
Fixed Size bytes
Variable Size bytes
Database Buffers bytes
Redo Buffers bytes
????????
????????
然后赶快查看一下NLS
SQL> show parameter nls_la
NAME TYPE VALUE
nls_language string SIMPLIFIED CHINESE
解决方法:
退出sqlplus
在oracle用户下执行
export NLS_LANG=american_americazhsgbk
可以编辑 bash_profile 文件进行永久设置
vi bash_profile
NLS_LANG=american_americazhsgbk export NLS_LANG
再重新登录sqlplus
SQL> startup
ORACLE instance started
Total System Global Area bytes
Fixed Size bytes
Variable Size bytes
Database Buffers bytes
Redo Buffers bytes
Database mounted
Database opened
SQL>
Ok搞定