Problems using Linked Server to Oracle

  • Can someone help me here? I have a linked server to an Oracle database. I can see the tables in enterprise manager but when I try to access the tables using Linked_Server..schema.table I get an error : OLE DB provider 'MSDASQL' returned an invalid column definition. This occurs for all tables. I have tried accessing the tables via DTS using an ODBC link and they read in OK. Are there any settings I can alter to get this to read OK?

  • You will need to use 4 part naming

    eg

    select * from ORACLEDATABASE..<Tableowner>.<Tablename>

    Also I think everything needs to be in uppercase

    Steven

  • I do use the four part naming, and have tried uppercase but still get the same error. I get limited success with openquery but only a few lines are received before the error occurs again.

  • Does the query run from SQLPlus (ie oracle itself)

    Steven

  • Query runs fine from either SQLPlus or within a dts transformation query

  • I installed Client for Oracle and use Oracle ODBC Driver to configurate Data Sourse and

    I manage to get data from tables but executing query from Query Analyzer takes much more time than in DTS? Why does it happen?

  • Via,

    I think DTS may optimise these things a litte. What settings did you use for your linked server?

  • 1. I created System DSN using Oracle ODBC Driver

    2. I created Linked Server with parameters:

    Provider name- "Microsoft OLEDB provider for ODBC Drivers"

    Data Source - My DSN name

    3. On Sequrity tab I selected "Be made using this sequrity context" and entered valid Oracle user name and password.

    4. I QA I exequte a query using 3 part naming eg SELECT * FROM <LINKED SERVER NAME>..<Tablename>. Everything works.

  • Did you run the DTS job from the server itself? (as DTS is a client side app)

    Steven

  • I've been testing this on my own PC which has SQL, Oracle client and ODBC connection. The Oracle I'm testing against is on Windows 2000 but may be on Unix when deployed. It is finding the connection though, it just doesn't seem to be interpreting the columns properly.

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply