我在休眠状态下设置了 NLS_SORT 和 NLS_COMP:
Hibernate: ALTER SESSION SET NLS_COMP=BINARY
Hibernate: ALTER SESSION SET NLS_SORT=BINARY
之后,我尝试使用以下方法读回它:
select * from nls_session_parameters where parameter in('NLS_SORT','NLS_COMP');
SELECT SYS_CONTEXT ('USERENV', 'NLS_SORT') FROM DUAL;
此查询返回不正确的值:
PARAMETER VALUE
------------------------------ ----------------------------------------
NLS_SORT RUSSIAN
NLS_COMP BINARY
2 rows selected.
SYS_CONTEXT('USERENV','NLS_SORT')
--------------------------------------------------------------------------------
RUSSIAN
1 row selected.
我究竟做错了什么?