The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table.

Last post 07-16-2008 8:27 AM by alikhan. 3 replies.

Sort Posts:

  • The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table.

    06-13-2006, 3:43 AM
    • Member
      357 point Member
    • ChrisDev
    • Member since 03-22-2006, 7:43 AM
    • Posts 114

    I am using SQL Server 2005 and trying to create a linked server on Oracle 10. I used the commands below:

    EXEC

    sp_addlinkedserver

    @server

    = 'test1',

    @srvproduct

    = 'Oracle',

    @provider

    = 'MSDAORA',

    @datasrc

    = 'testsource'

    exec

    sp_addlinkedsrvlogin

    @rmtsrvname

    = 'test1',

    @useself

    = 'false',

    @rmtuser

    ='sp',

    @rmtpassword

    ='sp'

     

    When I execute

    select * from test1...COUNTRY

    I get the error. "The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table."

    The 'sp' user I am connecting is the owner of the table. What could be the problem ?

    Thanks a lot.

  • Re: The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table.

    06-13-2006, 6:26 AM
    • Star
      12,930 point Star
    • Iori_Jay
    • Member since 04-04-2006, 10:21 AM
    • Posts 2,450
    I'm not familiar with Oracle. But if the linked server points to a SQL Server, then when performing a query on a table on the linked server without secifying the owner, by default the owner is dbo. You can try to implicitly specify the owner in your query.
    Welcome to my SQL/ASPNET forum for Chinese
    http://51up.org/bbs/forumdisplay.php?fid=38
  • Re: The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table.

    06-13-2006, 8:37 AM
    • Member
      357 point Member
    • ChrisDev
    • Member since 03-22-2006, 7:43 AM
    • Posts 114
    Thanks for your message. I found the problem. Schema name should be in uppercase, not lowercase. I couldn't believe this was the reason :-(
  • Re: The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table.

    07-16-2008, 8:27 AM
    • Member
      2 point Member
    • alikhan
    • Member since 12-02-2006, 4:41 PM
    • VA, USA
    • Posts 1

    This helped. My owner was not in the right case, found out that the owner in the Linked Server query has to be in uppercase.

     Thanks this helped me.

Page 1 of 1 (4 items)