Results 1 to 5 of 5

Thread: Fun with ODBC and Oracle

  1. #1
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Question Fun with ODBC and Oracle

    Hello,

    I'm using QT 4.3 on Suse 10.

    Up until now, I have been working with QT and MySQL and the experience has been a pleasant one. Now I am forced to connect to an Oracle database.

    Since I develop on Suse 10 and Oracle does not have a client for Suse 10, I have been unable to find an oci library I could link into QT. So, I decided to try ODBC. I reconfigured and reinstalled QT with the -qt-sql-odbc switch. It configured, built, and installed.

    I went to the sqlbrowser demo program and tried to connect to an Oracle database. I got the following error:

    An error occured while opening the connection: [unixODBC][Driver Manager]Data source name not found, and no default driver specified QODBC3: Unable to connect

    I then tried connecting to a local MySQL database and got the same error.

    So what do I need to install to make this work?

    Thanks,
    Karl

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Fun with ODBC and Oracle

    You have to add a data source to unixODBC, but unfortunately I can't help you with this.

  3. #3
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Fun with ODBC and Oracle

    This does seem to be a bit of mystery where Suse is concerned. I made sure I have all the ODBC packages installed and unixODBC is among them, but what is missing is the ODBCconfig program which allows you set up Data Sources.

    Does anyone know where I can get a version of the Oracle OCI libraries that I could then link with QT to create a QOCI driver in Suse 10?

    Karl

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Fun with ODBC and Oracle

    Quote Originally Posted by KaptainKarl View Post
    I made sure I have all the ODBC packages installed and unixODBC is among them, but what is missing is the ODBCconfig program which allows you set up Data Sources.
    In my distribution, there's separate package with unixODBC tools. AFAIK its equivalent in in SuSE is called unixODBC-gui-qt.

    Quote Originally Posted by KaptainKarl View Post
    Does anyone know where I can get a version of the Oracle OCI libraries that I could then link with QT to create a QOCI driver in Suse 10?
    QOCI driver is available with commercial edition of Qt, because Oracle drivers aren't compatible with GPL. According to the docs, you need "Instant Client Package - Basic" and "Instant Client Package - SDK" (http://www.oracle.com/technology/tec...ent/index.html).

  5. #5
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Thumbs up Re: Fun with ODBC and Oracle

    Thanks. I was typing the name incorrectly (ODBCconfig instead of ODBCConfig). I ran into a little trouble with an indefined reference but I downloaded a newer version and it worked.

    The Oracle Instant Client also worked so I have an Oracle driver built in as well.

    Karl

Similar Threads

  1. Fix: QT app won't run under Oracle Standard Client install
    By GreyGeek in forum General Discussion
    Replies: 0
    Last Post: 12th May 2006, 18:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.