What are the ODBC connect details for the HR sample database?

I have installed Oracle Express on Ubuntu 8.10 and read the Getting Started tutorials. Everything worked fine.
THE DSN
I need to connect via ODBC, to start with to the HR sample database on my PC.
The Getting Started tutorial says the userid and password are both hr, but what is the data source name (dsn) to be used with the SQLConnect?
THE INIs
The ini files below are the result of googling, not of any insight on my part.
/etc/odbcinst.ini
[OracleExpressdrv]
Driver = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libsqora.so.10.1
Description = Oracle 10g express driver
/etc/odbc.ini
[hrdsn]
Driver = OracleExpressdrv
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
CloseCursor = F
DisableDPM = F
DisableMTS = T
DSN = TestDSN
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
# ServerName is TNS_alias_from_tnsnames.ora
ServerName = OraDB
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
UserID = ken
THE ENVIRONMENT
Before running my odbc test program I issued
LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib;export LD_LIBRARY_PATH
and checked via env command that the ldlibpath actually had been set correctly.
After SQLConnect received the following error:
Usage error: SQLConnect: dsn=hrdsn, user=hr, password=hr <<< output by my test program
1: st=IM002, nerr=0, msg=
[unixODBC][Driver Manager]Data source name not found, and no default driver specified
The first part of the error message hints at there being something wrong with dsn=hrdsn. I don't understand the second part 'and no default driver specified'.
I am totally stuck. Advice would be most appreciated.

Oracle® Database Express Edition Installation Guide for Linux talks about Compiling the Oracle ODBC Driver Demos. It tells you to download and install the unixODBC DriverManager from unixODBC. On Ubuntu this is already preinstalled and/or available via the Synaptic Manager. It also instructs you to run a makefile demo_xe.mk to build an odbcdemo program. The makefile did not work for me (hundreds of compilation errors), but I looked at the odbcdemo.c code and could see that dsn=TESTDBDSN for user=hr and password=hr. In other words, by luck the demo program seems to be connecting to the HR sample database.
I changed the /etc/odbc.ini file to:
[TestDBDSN]
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
CloseCursor = F
DisableDPM = F
DisableMTS = T
Driver = OracleExpressdrv
DSN = TestDBDSN
and also in my test program which now produced the following error:
Usage error: SQLConnect: dsn=TestDBDSN, user=hr, password=hr
1: st=IM004, nerr=0, msg=
[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
which shows that the unixODBC driver manager has loaded the driver and that the driver immediately encountered problems.
The sql calls issued before the SQLConnect("TestDBDSN", "hr" , "hr") were OK, i.e. these:
rc0 = SQLAllocHandle ( SQL_HANDLE_ENV , SQL_NULL_HANDLE , &henv ) ;
rc = SQLSetEnvAttr ( henv, SQL_ATTR_ODBC_VERSION , *)SQL_OV_ODBC3 , 0 ) ;
rc = SQLAllocHandle ( SQL_HANDLE_DBC , henv , &hdbc ) ;
SQLSetConnectAttr ( hdbc , SQL_LOGIN_TIMEOUT , (void*)5 , 0 ) ;
However, the error appears after SQLConnect and yet the rc0 was reported as OK.
The error message 'Driver's SQLAllocHandle on SQL_HANDLE_HENV failed' is totally unhelpful to me as a user since I don't know the conditions that lead to failure. I really think this calls for some documentation. Such documentation should be complete, self-contained and correct and give ALL OPERATIONAL steps, i.e. I want to know exactly what I have to do. Ambiguous English often referring to undefined terms is not what Oracle beginners like myself want.
I don't know if this is a bug. It is so fundamental that Oracle ODBC driver writers could/should not have got it wrong. The connect does not even start.
I have googled for hours, but every lead has failed.
I don't want to give up on this. What can I do?

Similar Messages

  • What are Apple doing to compensate for the damage caused by the iPhone 4 bumper?

    I have noticed damage caused by the bumper.
    It is NOT foreign object but caused by the hard plastic on the inside of the bumper
    (plese do not come out with rubbish like steel is harder than plastic) I am not stupid and I know that the damage matches the pattern of the bumper skeleton.
    What I want to know is when are Apple going to deal with this and replace my phone?
    I dare not go to the so called Genius bar in Milton Keynes as they have adopted a Dixons style "fob off" attitude and I will become rather angry with them.

    Re: What are Apple doing to compensate for the damage caused by the iPhone 4 bumper? 
    15-Jun-2011 15:15 (in response to sfrommilton keynes)
    o Steel is harder than plastic, so the bumper has not caused the damage.
      - You call it rubbish
      - The world calls it physics
    You are totally wrong.  Please go back to School.
    o You can deny physics
      - but that will not change reality.
    You can go to School but that wont change reality.
    o Your description of your Genius bar is incomprehensible
      - I recommend you go to the Genius bar leaving the chip on your shoulder at home and tactfully explain what you think is your issue.
    I recomend you find a day job ans stop TROLLING peoples threads.
      - I've never had them fail me or be the least bit confrontational.
      - But if you act like a jerk then I couldn't predict what would happen
    Yeah because you were there.  Are you having some kind of relationship with the company?  I think you sleep with an Apple under your pillow.
    Finally I am a consumer who has paid for a product that is not living up to expectations.  The plastic skelton is hard and abrasive (I know what that means as I went to School) Abrasion's are marking the product. 
    This is not the only time this has been reported and as such I have no issue with particles entering the bumber.  This has happened from the start (when I used Apples stupid bumber case)
    Please don't patronise or TROLL others threads.
    <Edited by Host>

  • Display vendor name in the additional costs details for the PO

    Hi,
    I was wandering if there is any possibility to display vendor's name in the additional costs detail in the conditions tab in PO.
    As for standard, only the vendor number is shown.
    Regards.

    Hi,
    It is not possible to view the name of vendor there in "Addiitonal Data" screen for the condition type.

  • Hi, I have an older 800x600 LCD projector, If I go out and buy all the necessary connecting hardware for the ATV3 to it will it even work?

    I just dont want to go out and buy all of the connecting hardware if it isn't going to work anyway, thanks in advance for any help.

    The AppleTV has a single HDMI 1.3 video out, if you have the ability to connect your projector to HDMI then it should work. Audio may present a problem as well, the audio is integrated with the HDMI output but there is also an optical digital Toslink connector. There are converter boxes to downscale HDMI to VGA specifications but you loose a lot of detail with the smaller format.

  • How to get the procedure/query details for the corresponding transaction id

    Hi,
    Is it possible to know the transaction details like (procedure/query) from the correcponding local transaction ID? (for eg:10.10.50935)
    I am working on ORA-01591 issue (lock held by in-doubt distributed transaction) and got the details of in-doubt transactions from dba_2pc_pending view. Further I would like to get additional details about the procedure name and query who is triggering the issue.
    Thanks

    Hi Sybrand,
    The response is not of much help. Can you please tell me in more detail.
    Suppose a transaction is completed long back (say 5 days ago) and I have a transaction id with me. I would like to know the correcponding procedure/query associated with that transaction id.
    Is it really possible to find out old transaction details from any view?

  • What are the audio connections/cable for the Express?

    I'm thinking about getting an Airport Express to hook up to my stereo. What kind of cabling is required and are there cable alternatives (mini to phone, mini to RCA, to optical, etc.)? Thanks.

    Depending on your stereo system, you will need different types of wires, if your stereo has an AUX input (Auxiliary) (Like the red and white plugins on TVs) You will need a Y Audio Cable, which basically has the headphone jack at one end, and the Red and White jacks at the other so all you will have to do is plug the headphone end into your airport express and plug the red/white into your Stereo. If your stereo doesn't have the AUX input, simple figure out what type of input it has and google or search an electric store for a cord that will work just right for you.

  • What are some business uses to for the ipad?

    I'm looking for some business reasons to purchase the new Ipad 2.

    I'm probably not much use to you, then, as I know absolutely nothing about accounting.  For presentation apps, there's Apple's own Keynote, so you'd just need an adapter to connect the iPad to a TV or projector plus the Keynote app.  Alternately, you could get an Airport Express, hook that up to your TV or projector and then use Airplay to display your presentation from the iPad wirelessly.  I don't have personal experience with that, though, so I don't know how well it works.
    As for tax apps, I see a bunch in the iTunes Store, but I don't know whether any would be of any use to you.  You might want to check that out before buying...  you can browse apps in iTunes all you like without having to have an iPad first, though of course you won't want to buy any if you don't plan to get an iPad.

  • What's the part number/details for the AC Adapter for a HP G61-456EE Notebook PC?

    I'm based in the UAE and I have a G61-456EE Notebook PC. I need to order a replacement AC Adapter since I've misplaced mine and I can't seem to find the specific model/part number in the HP Parts Store. Can someone please advise me on which particular adapter is required for my PC and the necessary instructions on ordering one?

    here is the part # for your computer, choose from two, only diffrence is 90 watt and 65 watt and both can work for you.
    463958-001 SPS-65W ADPTR,
    463955-001 SPS-90W PFC ADPTR,
    Regards,
    WW
    “I am an HP Employee“
    ***** Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem***

  • Report Designer odbc connection string for data source using a parameter

    I am using stand alone report designer 3 for the present and have a question/problem regarding the odbc connection string for MySQL when setting up the data-source
    I need to be able to enter a parameter which is the database name i.e. BOE-201401 or say BOE-201312 etc  from a list of databases the user can choose from.
    at present the odbc connection string points to BOE-201402
    the connection string is at present  Dsn=Development Server for MYsql;description=MYSQL;server=ldndw01;database=BOE-201402;port=3306
    my parameter has the name BOE_DATABASE
    and in an expression it is  as such
    =Parameters!BOE_DATABASE.Value
    I want to point the datasource for the report to the parameter value before the user sees the report.

    Hi Leslie,
    Based on your description, we want to design a report with a dynamic DataSource connection string. There are the basic steps below for your reference:
    Create report with static database.
    Change data source to report parameter.
    Send new database connection string as a report parameter. 
    More detail information, please refer to the following blog: Dynamic Database in SSRS 2008.
    http://haseebmukhtar.wordpress.com/2011/11/09/dynamic-database-in-ssrs-2008/
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • We are a two iPhone family, both on the same service provider. My wires iPhone is unable to connect to the home network where as mine is! In the settings her phone has no details for the IP address etc where as mine does! I cannot even enter the details.

    We are a two iPhone family, both on the same service provider. My wires iPhone is unable to connect to the home network where as mine is! In the settings her phone has no details for the IP address etc where as mine does! I cannot even enter the details manually.
    I have done resets on off and nothing? HELP!

    What is that and how. I have 3 airports all configured identically and connected to one router via ethernet!
    A power cycle is powering down for ~ 1 minute and powering back up.

  • Can't Create the ODBC connection for Oracle 10g

    Hi,
         I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator library
    Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
    Best Regards,

    mwz wrote:
    I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
    Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not?

  • I updated my mac 10.8 to mavericks but after installation the app store ask for the same software update again..i have a slow connection..i cannot install it again and again..what should i do?

    I updated my mac 10.8 to mavericks but after installation the app store ask for the same software update again..i have a slow connection..i cannot install it again and again..what should i do?

    In case you are not aware, Mavericks requires a high speed broadband connection.
    In the event you need to restore or repair the starutp disk, OS X Recovery also requires a broadband connection as noted here >  About OS X Recovery
    You can check your download speed here > Speedtest.net
    15Mbps or less, you may not be able to install Mavericks or use OS X Recovery.

  • What are you considering non responsive with the plugins? Flash player is working just fine then I get your crash page in the middle of doing something. You say it only crashes when it's been unresponsive for 45 seconds. Mine is crashing in less then 1

    I have had problems with firefox crashing for the last three month. I have updated to the latest version with the crash protection. Now the flash player crashes about every 20 minutes or so. On your blog page you state that I will get the crash page when the plugin has been non-responsive for 45 seconds well with mine the games are going along just fine then wham crash page. Flash player was responding and you gave me crash report anyway. What's up???? Flash player is crashing within seconds not 45 seconds!!!!!!!!!!!!!!!!! Your check plugin page always states that my plugins are UP TO DATE!!!!!
    == This happened ==
    Every time Firefox opened
    == three months ago and getting worse with every upgrade you send!!!!!!!!!!!!!!!!!!!!!!!

    '''''"I have had problems with firefox crashing for the last three month."'''''
    You need to investigate the cause of your crashes that started prior to the release of the first Firefox version that offered crash protection, version 3.6.4, released in mid to late June 2010; that is just over one month ago.
    <u>'''The crash protection feature does not prevent a plugin from crashing, it prevents the whole Firefox browser from crashing because of a crashing plugin; only the tab with the crashing plugin crashes.'''</u>
    For information about report plugin crashes see: http://support.mozilla.com/en-US/kb/Plugin+crash+reports
    You need to post the crash Report IDs for the crashes occurring over the last 3 months. To do so, type '''about:crashes''' in the URL/location/address bar, then copy and paste the Report IDs (only) into your reply. See: http://support.mozilla.com/en-US/kb/Firefox+crashes#Getting_help_with_your_crash
    In addition, please do the following. Type '''about:support''' in the URL/location/address bar, on the screen presented, click "Copy all to Clipboard" and paste that into your reply.

  • What is the direct connect method for transfering photos from my macbook pro to my iphone without using iTunes syncronization? (iow: a simple photo copy from mac to iphone?)

    I feel like I should know the answer to this. I can't believe it is a hard question.
    What is the direct connect method for transfering photos from my macbook pro to my iphone without using iTunes syncronization? (iow: a simple photo copy from mac to iphone?)
    Easy? Right?
    Just plug my iphone in to a mac and copy a photo from the mac to my iphone.
    I don't have internet access - I can't email it, or mobileme it, or dropbox it.

    iTunes. Other than that there is no direct method. However, do try the iPhone forums.

  • [svn] 1384: Splitting DefineFont into the various DefineFont 1, 2, 3, etc SWF tag formats but retaining a common base DefineFont class so that embedded fonts are still retained as symbols for the SWF dictionary no matter what version of the SWF tag is us

    Revision: 1384
    Author: [email protected]
    Date: 2008-04-24 07:54:58 -0700 (Thu, 24 Apr 2008)
    Log Message:
    Splitting DefineFont into the various DefineFont 1, 2, 3, etc SWF tag formats but retaining a common base DefineFont class so that embedded fonts are still retained as symbols for the SWF dictionary no matter what version of the SWF tag is used.
    Also improving [Embed] so that it can recognize .TTC files as assets (previously these were only recognized through CSS @font-face rules).
    QE: Yes, please add a test case for using [Embed] to embed fonts from a TTC file in addition to our tests for @font-face. Note that the AFEFontManager must be configured for this scenario.
    Doc: No
    Checkintests: Pass
    Mxunit: AtEmbed Font suite: Pass
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/AbstractTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FontTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/MimeMappings.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/CachedFontManager.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/Dictionary.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/MovieEncoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagDecoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagEncoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagHandler.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagValues.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/builder/tags/FontBuilder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFontAlignZones.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFontInfo.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tools/SwfxPrinter.java
    Added Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/DefineFont3Face.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont1.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont2.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont3.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont4.java
    Removed Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/DefineFontFace.java

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

Maybe you are looking for

  • How can I use an external hard drive that says it's for pc?

    HI, I just ordered an external hard drive that said it would work with Macs. ON the box, it says for Pc's only. Is there a way to have it work with macbookpro? Thanks

  • Installed latest update, and now ipod touch won't work

    Hello, I clicked on the download and install option for the latest update to my ipod touch. I think it was 2.2.1, but I'm not 100% sure. Anyway, now I have to hold the power button down several seconds, and I see the apple logo, and then the itunes i

  • Creating a sitemap late in the game

    I've created an entire site using a single template and about 7 pages. I've been told that the site map is how search engines find your site info. What is the best way to create one for an existing site? Is there a better way to make sure search engi

  • Oracle map's FOI on https?

    I'm having problem displaying FOI on the simple html page deployed on standalone OC4J (10.1.3.1). In "http mode" page is working just fine but when I try to do "https version" of it following the instructions on http://download.oracle.com/docs/cd/B25

  • Audio Stream Callee to caller max 30% packet loss rate

    The call quality is poor. the MOS marks to 2.0 Media bypass is enable. How to fix the packet loss issue? Thank you.