Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6477073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:54:13+00:00 2026-05-25T06:54:13+00:00

I get an ORA-01858 exception. I think it is due to NLS settings and

  • 0

I get an ORA-01858 exception. I think it is due to NLS settings and date:

declare
    currentDate DATE := sysdate;
    queryString VARCHAR2(300) := '... where blablabla = :bind_timestamp ...';
    sql_cursor integer;
begin
    sql_cursor := dbms_sql.open_cursor;
    dbms_sql.parse(sql_cursor, queryString, dbms_sql.native);
    dbms_sql.bind_variable(sql_cursor, ':bind_timestamp', currentDate);
    rowsProcessed := dbms_sql.execute(sql_cursor);
    dbms_sql.close_cursor(sql_cursor);
end;

Is dbms_sql.bind_variable(sql_cursor, ':bind_timestamp', currentDate); NLS dependent?

I mean with some NLS settings it works normally and others it fails?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:54:13+00:00Added an answer on May 25, 2026 at 6:54 am

    When dealing with dates, NLS settings are not relevant if you provide your own format string:

    WHERE arrival=TO_DATE('2011-09-05', 'yyyy-mm-dd')
    

    My guess is that you are relying on automatic type juggling, i.e., you are providing a string and letting Oracle cast it to date as required:

    WHERE arrival='05/09/2011'
    

    In that case, Oracle uses the default format as specified in your NLS settings.

    Update: BTW, the ORA-01858 code means:

    a non-numeric character found where a digit was expected

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get error: ORA-06575: Package or function GET_CONC_NAMES is in an invalid state When
When i am generating a report, I get java.sql.SQLException: ORA-08103: object no longer exists.Code
I'm trying to run this query but I get ORA-00904: Z1.LONGITUDE: invalid identifier Is
I get the error: ORA-01855: AM/A.M. or PM/P.M. required when I try to execute
My question is: How do you get around the ORA-01704: string literal too long
For past some time I have noticed that we get ORA-00054 error while trying
I get ORA-12514:TNS:listener does not currently know of service requested in connect descriptor when
You can get a list of databases using PRAGMA database_list or a list of
Looking for a library or a fairly cross platform method to get CPU utilization,
I am attempting to get the current weather given a zip code or a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.