|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, July 17, 2012 8:57 AM
Points: 9,
Visits: 81
|
|
I have been asked to set up a few procs that will take data from our core data source in Informix and compare the values with our data warehouse which is SQL Server 2008.
The Linked Server works fine and connects no problem, but whenever I try to run a simple select I get a few errors that are driving me nuts.
The Simple select I'm trying to test first is:
select * from LIVE.live_db.informix.thistable
This is correct (I've messed about with it a bit hence the stupid naming) but when I run it I get the following message:
OLE DB provider "Ifxoledbc" for linked server "LIVE" returned message "EIX000: (-111) ISAM error: no record found.". Msg 7311, Level 16, State 2, Line 1 Cannot obtain the schema rowset "DBSCHEMA_TABLES_INFO" for OLE DB provider "Ifxoledbc" for linked server "LIVE". The provider supports the interface, but returns a failure code when it is used.
Has anyone had any experience with these kind of errors before as it's driving me nuts.
Cheers
Jim
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 3:51 AM
Points: 3,163,
Visits: 4,342
|
|
This error is usually encountered when the linked server user does not have select access to the catalogue tables (irrespective of whether it has been granted access to the required tables / views).
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 6:11 AM
Points: 11,790,
Visits: 28,067
|
|
try this command first:
EXEC sp_tables_ex LinkedServerName
that should give you a list of the tables the login you are using can view/has access to; if the linked server has access to more than one database, the other databases will not appear, only his 'default' database;
that might help you diagnose, as identified above, wheter the login you are using has access to the tables in question.
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, July 17, 2012 8:57 AM
Points: 9,
Visits: 81
|
|
I ran that proc and it gave me a list of all the tables including the one I was testing the link against.
So from what I can see, the linked server connects perfectly well, can see all the tables that I'd expect, I can even generate a query to a new window via the Object Explorer Details (hence it can see the columns on the Informix database). But the second I try and run it, it falls over when trying to return the data.
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 6:11 AM
Points: 11,790,
Visits: 28,067
|
|
james it's probably just the dbname.schemaname then; you said you were running this commnad:
select * from LIVE.live_db.informix.thistable
try
select * from LIVE...thistable instead; that lets the linked server infer the dbname and schemaname, and just use the linkedserver and table; i'd bet that is your issue.
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, July 17, 2012 8:57 AM
Points: 9,
Visits: 81
|
|
Lowell,
By doing that I get the following error message:
Msg 7313, Level 16, State 1, Line 1 An invalid schema or catalog was specified for the provider "Ifxoledbc" for linked server "LIVE".
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 6:11 AM
Points: 11,790,
Visits: 28,067
|
|
jameswhitby (4/22/2010) Lowell,
By doing that I get the following error message:
Msg 7313, Level 16, State 1, Line 1 An invalid schema or catalog was specified for the provider "Ifxoledbc" for linked server "LIVE".
i'm learning a bit myself here....i did not know informaix had multiple schemas; i've only done linked servers to oracle adn the usual access/excel/textfolder so far; how about letting it infer just the db name?
select * from LIVE..informix.thistable select * from LIVE.live_db..thistable
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, July 17, 2012 8:57 AM
Points: 9,
Visits: 81
|
|
Lowell,
Same error as before.
It appears that it has to be told exactly where to go, then when it goes there, that is when the failure occurs.
I think it's all down to the security side of Informix, which is all down to our dba.
In fact, I'll have another word with him as this is making me understand where there problem lies a lot better
Cheer
Jim
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, November 15, 2012 3:34 AM
Points: 2,
Visits: 131
|
|
Hi
I am also facing the same issue, if you have found the solution , could you please share it here?
Thank you
Regards Naga
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 3:51 AM
Points: 3,163,
Visits: 4,342
|
|
Request the Informix dba to check what level of access the linked server user has to the catalogue views / tables
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|