I an trying to access the Oracle database from Link server and getting following error. When I manully create new table in oracle side , then its works. Issue is existing tables which own by application schema(CVADM)
DB link user is "repusr"
Oracle database schema is "CVADM"
Linkedname "CVRPT"
+++++++++++++++++++++
The OLE DB provider "OraOLEDB.Oracle" for linked server supplied inconsistent metadata for a column. The column (compile-time ordinal 1) of object was reported to have a "DBCOLUMNFLAGS_ISFIXEDLENGTH" of 16 at compile time
and 0 at run time
++++++++++++++++++
1. When created new table(T1) I can access from Lik server as follows
select *FROM[CVRPT]..[CVADM].[T1]GO
2. Problematic tables(CVADM.ACCOUNT) I can access as follows using openquery
SELECT *FROMOPENQUERY(CVRPT,'
SELECT * FROM CVADM.ACCOUNT where rownum<15');
issue occurred while accessing on following way
select *FROM[CVRPT]..[CVADM].[ACCOUNT]
3. I tried all other tables and issue is same for other tables.
4. User "repusr" also oracle user and has "select" access on schema "CVADM" tables
5. Provider "ORaOLEDB.Oracle enabled following options.
Enable the following options
Allow inprocess
Nested Queries
Support “Like” operator
6. I created other link "ERPSAP" to oracle other DB "SAPRPT" and I can access the data and no issue using same provider(ORAOLEDB.Oracle)
Any one can help would be much appreciated