linkserver error

From: SQL Apprentice (mssqlworld_at_yahoo.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 14:12:28 -0800

Hello,

I created a job that uses a linkserver to Oracle db for the past year.
It ran fine until a few days ago when Oracle db schema changed.

I modified my SQL schema to be the same as theirs but I am still getting an
error.
I ran the following on Query Analyzer.

SELECT *
FROM OracleServer..TableName

Server: Msg 7356, Level 16, State 1, Line 1
OLE DB provider 'MSDAORA' supplied inconsistent metadata for a column.
Metadata information was changed at execution time.
OLE DB error trace [Non-interface error: Column 'Col1' (compile-time
ordinal 13) of object '"OraDB"."TableName"' was reported to have a DBTYPE of
130 at compile time and 5 at run time].

However, when I user OpenQuery...Then it worked.
SELECT *
FROM OPENQUERY(OracleServer, 'SELECT * FROM OraDB.TableName')

Can you give me some advice on how to fix this problem...
I have SQL 2000 Ent on W2K Server with latest service packs.

thank again for your help.



Relevant Pages

  • Re: ODBC cannot access Oracle tables under different schemas in one session
    ... >Access / Oracle problem, ... >referring to the proper server / SID of every branch. ... >table, when i try to query the second table under another schema, ODBC ... >shift to another schema and query their tables, ...
    (comp.databases.oracle.misc)
  • Re: UTL_FILE Permissions
    ... The schema APP has already been granted READ and WRITE to the APP_DIR, ... I used the usermod command so that oracle user has a secondary group ... it should be possible for your upload ...
    (comp.databases.oracle.server)
  • Re: UTL_FILE Permissions
    ... The schema APP has already been granted READ and WRITE to the APP_DIR, ... I used the usermod command so that oracle user has a secondary group ...
    (comp.databases.oracle.server)
  • Re: ODBC cannot access Oracle tables under different schemas in one session
    ... >>Access / Oracle problem, ... >>referring to the proper server / SID of every branch. ... >>table, when i try to query the second table under another schema, ODBC ... >>shift to another schema and query their tables, ...
    (comp.databases.oracle.misc)
  • Re: Synchronization Wizard weirdness
    ... Using the Oracle Enterprise Manager and Oracle Change Manager packages, ... :> I have a Test Schema in the same database as the Main schema and need to ... Wizard between the Main schema and Test schema -- obviously returned the full ...
    (comp.databases.oracle.tools)