Giter Site home page Giter Site logo

Attempting to list drivers using odbc2parquet 0.6.2.7 on Oracle Linux 7.8 after compiling it on the same os fails with State: S1009, Native error: 0, Message: [unixODBC][Driver Manager]Invalid attribute value about odbc2parquet HOT 12 CLOSED

pacman82 avatar pacman82 commented on May 31, 2024
Attempting to list drivers using odbc2parquet 0.6.2.7 on Oracle Linux 7.8 after compiling it on the same os fails with State: S1009, Native error: 0, Message: [unixODBC][Driver Manager]Invalid attribute value

from odbc2parquet.

Comments (12)

pacman82 avatar pacman82 commented on May 31, 2024

What version of Unix odbc is installed?

from odbc2parquet.

pacman82 avatar pacman82 commented on May 31, 2024

Hello @chrisfw ,

so now I've found a bit of time to write a more elaborate answer. Thanks for opening the issue. To help our understanding let's translate the error message, which you kindly provided.

ODBC emitted an error calling 'SQLSetEnvAttr':
State: S1009, Native error: 0, Message: [unixODBC][Driver Manager]Invalid attribute value

This error was emitted calling SQLSetEnvAttr which is only called in one place if executing odbc2parquet: Then setting the ODBC API version number. At the beginning of its lifecycle any ODBC application declares which version of the ODBC standard it wants to use to communicate to the driver manager (unixODBC).

In that context the Invalid attribute value is the version number. odbc2parquet currently utilizes the version 3.80 of the ODBC standard. Note: This is the version of the ODBC standard not the version of the driver manager odbc2parquet expects.

The error indicates, that your version of the driver manager does not even know that this version exists. Which leaves me to belive that it might be an outdated version of unixODBC.

Checking the changelog of unixODBC the ODBC 3.80 is first mentioned for the version unixODBC 2.3.0 which has been released 2010. See: http://www.unixodbc.org/

In terms of this tool I find the error message you received less than ideal. Best to emit a better error in the upstream odbc-api if setting the desired ODBC version fails. This however won't solve your problem. It would still fail, just with a nicer error. Yet an update of unixODBC packet might.

Please let me know if any of this has been helpful, and if the diagnose turned out to be correct or not.

Cheers, Markus

from odbc2parquet.

pacman82 avatar pacman82 commented on May 31, 2024

Just released odbc2parquet 0.6.28 which is going to emit a better error message in your situation. Still curious on what version of unixODBC you are running though.

Cheers, Markus

from odbc2parquet.

chrisfw avatar chrisfw commented on May 31, 2024

from odbc2parquet.

pacman82 avatar pacman82 commented on May 31, 2024

Hi Chris,

would you mind upgrading to a newer version, and tell me how it goes. FYI: In case your package manager does not provide the newest version, building unixODBC from source is pretty straight forward:

1. copy the unixODBC-2.3.9.tar.gz file somewhere you can create files and directories
2. gunzip unixODBC*.tar.gz
3. tar xvf unixODBC*.tar
4. `./configure`
5. `make`
6. `make install`

I am not sure, at what version unixODBC officially supports ODBC 3.80, but the latest version does for sure. So updating it is something I find worth trying.

Cheers, Markus

from odbc2parquet.

chrisfw avatar chrisfw commented on May 31, 2024

from odbc2parquet.

chrisfw avatar chrisfw commented on May 31, 2024

from odbc2parquet.

pacman82 avatar pacman82 commented on May 31, 2024

Hi Chris,

looking forward to it. This might become relevant for me, too.

Cheers, Markus

from odbc2parquet.

chrisfw avatar chrisfw commented on May 31, 2024

from odbc2parquet.

pacman82 avatar pacman82 commented on May 31, 2024

Hi Chris,

Thanks for the feedback. Closing the issue.

Cheers, Markus

from odbc2parquet.

chrisfw avatar chrisfw commented on May 31, 2024

from odbc2parquet.

chrisfw avatar chrisfw commented on May 31, 2024

from odbc2parquet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.