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!

ORA-23319: parameter value "SYSDATE +,0003472222222222222222222222222222222

mohsin javedAug 17 2011 — edited Aug 17 2011
Hi All,

I am facing
<ORA-23319: parameter value "SYSDATE +,000347222222222222222222222222222222222222" is not appropriate>

issue while submitting job. My nls_lang is set to DUTCH.

below is the declare block:
---------------
DECLARE
job NUMBER;
m_sleeptimegap NUMBER;
job_interval VARCHAR2(100);


BEGIN
SELECT to_number(tdvalue)
INTO m_sleeptimegap
FROM tableconfig
WHERE tcidcode = 'LICENSE_PULSE'
AND tckey = 'STATUS_DELAY';

job_interval := 'SYSDATE +'|| m_sleeptimegap / 86400;

DBMS_JOB.SUBMIT(job, 'License_Pulse_Check;', SYSDATE, job_interval, FALSE);
UPDATE tableconfig
SET tcvalue = LTRIM( RTRIM( TO_CHAR(job) ) )
WHERE tcidcode = 'LICENSE_PULSE'
AND tckey = 'ORACLE-JOB-ID';
COMMIT;
END;
/
----------------

job_interval = SYSDATE +,000347222222222222222222222222222222222222

job_interval variable is causing a problem. if i replace comma with dot using REPLACE function for that variable it works fine. Or if i set NLS_NUMERIC_CHARACTERS to '. ' then to it works fine.

this issue is not coming when my nls_lang=AMERICA then i dont need to set any parameter.

So how should i handle this issue if i have my nls_lang is other than AMERICA. If possible provide some refrence link.

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2011
Added on Aug 17 2011
8 comments
1,582 views