Skip to Main Content

APEX

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!

ORA-02047 with execute immediate to alter session to get arabic date.

idreesOct 17 2019 — edited Oct 22 2019

Dear sll, we are using oracle database 12c and oracle apex 4.2.

to send notification to end user via email, we want arabic date to be send to the users.

we have the following code, its sending arabic date just fine, but we are facing and error some time.

EXECUTE IMMEDIATE ' alter session set NLS_LANGUAGE=ARABIC';
select to_char(pdate, 'fmDay, fmDD fmMonth, YYYY') into arabic_date from dual;
EXECUTE IMMEDIATE 'alter session set NLS_LANGUAGE=AMERICAN';

time to time, we receive the following error

pastedImage_0.png

following is the debugging screen shot

pastedImage_1.png

how can we fix it?

Thanks.

This post has been answered by cormaco on Oct 17 2019
Jump to Answer
Comments
Post Details
Added on Oct 17 2019
2 comments
731 views