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 7592661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:57:56+00:00 2026-05-30T20:57:56+00:00

I do a call to an oracle stored procedure using JDBCTemplate which has an

  • 0

I do a call to an oracle stored procedure using JDBCTemplate which has an in/out parameter of STRUCT. One of the fields on this struct is a VARCHAR which gets updated depending on the stored procedure logic. However when this is returned from the call it just contains three question marks – ‘???’. This is possibly the work of the Riddler but it sounds more like a char encoding issue.

This worked fine until we switched databases to a database that had a character encoding of WE8ISO8859P15 (ISO8859) this was retrieved by doing:

SELECT NLS_CHARACTERSET FROM NLS_DATABASE_PARAMETERS

The previously working character set was WE8MSWIN1252 (MSWIN-1252) which works fine. So I’m guessing it’s down to a char set issue although I’m slightly wary as it always returns just 3 question marks regardless of how much text should be returned.

As far as I understand the underlying JDBC driver (jdbc:oracle:thin) does all the character encoding automatically and converts the database char set to UTF-16 (Java char encoding) however it appears this is not happening. I’m using the StoredProcedure class (part of Spring) to call the StoredProcedure.

I’ve also tried adding the orai18n.jar to the classpath but with no success. However it seems really unusual considering ISO-8859 is a pretty standard charset so I might be going down the wrong path.

Any help would be greatly appreciated.

  • 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-30T20:57:57+00:00Added an answer on May 30, 2026 at 8:57 pm

    This was a char encoding issue due to the database character encoding being stored as ISO-8859-15 – version 15 of this standard was causing all the problems which is essentially the addition of the Euro symbol. The oracle driver we were using to connect via JDBC simply couldn’t do the conversion from ISO-8859-15 to Java’s UTF-16.

    Reverting back to ISO-8859-1 or changing to UTF-8 encoding on the database (better) resolves this. It’s possible that adding the orai18n jar to the classpath may resolve this but as there is no readily availble OSGI bundle for this it wasn’t as easily done. My recommendation is don’t bother with Oracle databases at all.

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

Sidebar

Related Questions

I need to call a stored procedure using JPA and found this article: http://www.oracle.com/technology/pub/articles/vasiliev-jpql.html
How do I call an Oracle stored procedure with parameters? It has one input
Below is my Oracle Procedure. When i call this procedure using java, it throws
I have a stored procedure call that goes like this: using (OracleConnection con =
I'm trying to call an Oracle Stored Procedure which returns XMLType data, but all
I'm using Java and Ibatis to call a stored procedure on on oracle database.
Can I call a stored procedure in Oracle via a database link? The database
Suppose I'm using the following Oracle code in a stored procedure: CREATE GLOBAL TEMPORARY
We are using Spring SimpleJdbcCall to call stored procedures in Oracle that return cursors.
I'm working on converting a stored procedure from SQL server to Oracle. This stored

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.