1、查看当前语言环境语句
–查询当前语言
select
userenv
(
‘language’
)
from
dual;
—SIMPLIFIED CHINESE_CHINA.UTF8
–查询当前语言环境
select
userenv
(
‘lang’
)
from
dual;
–ZHS
2、修改当前语言环境 ALTER SESSION SET <nls_parameter> = <value>
–将语言改为英语:
SQL> ALTER SESSION SET NLS_LANGUAGE=american;
Session altered.
–将语言改回中文:
SQL> ALTER SESSION SET NLS_LANGUAGE=’SIMPLIFIED CHINESE’;
会话已更改。
–将地域改为英文:
SQL> ALTER SESSION SET NLS_TERRITORY=america;
会话已更改。
–将地域改为中文:
SQL> ALTER SESSION SET NLS_TERRITORY=CHINA;
会话已更改