Skip to main content
Solved

Oracle Non-Spatial Reader 8000 character limit


adrian_farrell
Contributor
Forum|alt.badge.img+6

Hi

 

Trying to read an Oracle table containing one (Oracle limit) "Long" datatype field

 

The field only brings through the first 8000 characters into FME (these are typically upwards of 9800 characters in this DB)

 

As an aside into Access (ODBC) it reads more (8135) but not all of the field

 

Does anyone have any idea how to bypass this limit and bring in the huge field?

 

Thanks

 

Adrian

Best answer by markatsafe

@adrian_farrell Try the JDBC reader in the SQLExecutor. I think this will return the LONG strings.

View original
Did this help you find an answer to your question?

6 replies

Forum|alt.badge.img+2
  • October 25, 2019

@adrian_farrell It seems the LONG is no longer recommended: https://stackoverflow.com/questions/3599211/oracle-long-or-clob

I would suggest trying the SQLExecutor


Forum|alt.badge.img+2
  • Best Answer
  • October 28, 2019

@adrian_farrell Try the JDBC reader in the SQLExecutor. I think this will return the LONG strings.


adrian_farrell
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • November 6, 2019
markatsafe wrote:

@adrian_farrell It seems the LONG is no longer recommended: https://stackoverflow.com/questions/3599211/oracle-long-or-clob

I would suggest trying the SQLExecutor

I have been finding the large number of posts dotted around the net warning that LONG datatype are very antiquated and inflexible (this is another example i guess)

 

Unfortunately i'm working with a propriety system and therefore cannot change the data structures


adrian_farrell
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • November 6, 2019
markatsafe wrote:

@adrian_farrell Try the JDBC reader in the SQLExecutor. I think this will return the LONG strings.

Hi Mark

Thanks for the info relating to JDBC however i cannot get it to read Oracle, each time i get the error that there is no suitable driver available. do you happen to know a way around this error please?

Thanks


adrian_farrell
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • November 6, 2019
adrian_farrell wrote:

Hi Mark

Thanks for the info relating to JDBC however i cannot get it to read Oracle, each time i get the error that there is no suitable driver available. do you happen to know a way around this error please?

Thanks

Hi again

I managed to get it to extract the data (adding the JDBC for Oracle helps!) but it still truncates the output

Adrian


adrian_farrell
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • November 6, 2019
adrian_farrell wrote:

Hi again

I managed to get it to extract the data (adding the JDBC for Oracle helps!) but it still truncates the output

Adrian

Thanks Mark, turns out the system we are using has implemented a method to self truncate the field and store it in a hidden overflow table in 8135 character segments. It was a red herring the way they represented this in the main table and the fact that they still rely heavily on the LONG data type

The JDBC reader has been a learning curve but one very worth while following, i'll make some good use of that!

Thanks again

Adrian


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings