Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_SESSION.Set_NLS does not work with NLS_NUMERIC_CHARACTERS

352200May 15 2007 — edited May 16 2007
TEST> ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '. ';

Session altered.

TEST> SELECT 1/2 FROM DUAL;

1/2
--------------------
.5

TEST> BEGIN
2 DBMS_SESSION.Set_NLS('NLS_NUMERIC_CHARACTERS', ''', ''');
3 END;
4 /

PL/SQL procedure successfully completed.

TEST> SELECT 1/2 FROM DUAL;

1/2
--------------------
.5

TEST> ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ', ';

Session altered.

TEST> SELECT 1/2 FROM DUAL;

1/2
--------------------
,5

Originally I observed this problem with EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_...', so it looks like that the problem is common for any method use from PL/SQL code. NLS_DATE_FORMAT works without problems
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2007
Added on May 15 2007
7 comments
1,394 views