Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Manassas, Virginia, USA
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ODBC Connection (Access XP)

    I have an Oracle 9i database that someone else linked in Access using the Microsoft ODBC for Oracle driver. They can see the data on their computer for all the linked tables but when I copied the database containing the linked tables to my computer I get an error message that the ODBC call failed. However if I login in to the network on their computer I can also see the data. The only difference between our computers is that the other computer is running Access 2000 and I am using Access 2002. From my computer I can logon to the database using SQL Plus. I only have one TNS home. I have downloaded the newest version that I found on the Microsoft site for the ODBC for Oracle driver.

    Has anyone else experienced this same problem and if so how was it resolved?
    Judy Jones, Computer Training Specialist
    Manassas, Virginia

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ODBC Connection (Access XP)

    You probably need to create an ODBC data source for that specific database on your PC. The other PC already contains such a data source, so they or you can connect to the database from that PC. Try to find out what the data source is called and how it is configured on that PC.

    Open the ODBC Data Sources control panel.
    Activate the System DSN tab (I think they created a System DSN, since you can use it on that PC)
    Look at the list of DSN's and try to find out which one is used to connect to the Oracle database. You can click Configure... to find out more about a DSN.
    If you cannot find it in the System DSN tab, look in the File DSN tab (it seems unlikely that they created a User DSN, since that is only available to the user who created it)
    Write down the settings.

    On your own PC, create a new data source (Add... button) and copy the settings you wrote down.

    See for illustrations The Windows NT ODBC Data Sources Control Panel. It's for Windows NT, but it's not much different for other Windows versions.

  3. #3
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Manassas, Virginia, USA
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ODBC Connection (Access XP)

    Thanks for your reply. I have set the ODBC data source connections the same as the other computer that works. I can open the database containing the linked tables. Access knows where the full path to the location of the links because if I let my mouse linger on one of the linked tables it will display "ODBC; DSN=HRINFO; SERVER=hrinfo;;TABLE=AMS_HRMADM.EMPL"
    If I try to open the linked table to view the data it will ask for my username, password, and server. Once this info is filled in and I click OK, I get the error that says "ODBC--Connection to HRINFO failed. The weird thing is that I can create a query based on this linked table and I can see all the fields the table contains but it will not let me execute the query and view the data. I am being told it is an Access problem but how can that be the case?
    Judy Jones, Computer Training Specialist
    Manassas, Virginia

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: ODBC Connection (Access XP)

    Judy,

    We're currently experiencing something rather similar on only a couple of machines in our office, but the backend is SQL Server rather than Oracle and it isn't for all databases, just this particular one. I don't have an answer for you but I certainly can relate to the frustration.
    Charlotte

  5. #5
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Manassas, Virginia, USA
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ODBC Connection (Access XP)

    Someone in my office located a document indicating some registry keys under MTxOCI that needed to be changed. The article related to Oracle 8i rather than 9i but when she changed the registry keys it solved the problem. I can now see my data.
    Judy Jones, Computer Training Specialist
    Manassas, Virginia

  6. #6
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Manassas, Virginia, USA
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ODBC Connection (Access XP)

    Now that I can see the data within the linked Oracle tables, I have created an Access query that transfers the text from the query to a delimited ASCII file in the location I specify. I would like to be able to set it up to run automatically in the middle of the night by using a scheduled task. Everything works fine except for the fact that the Microsoft ODBC for Oracle Connect dialog box pops up and wants the user name, password, and server info. My question: is there anyway through VBA code to supply this information so that the dialog box does not sit and wait for the information to be filled in manually?
    Judy Jones, Computer Training Specialist
    Manassas, Virginia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •