I have two instances (SQL2008R2_A and SQL2008R2_B), they have same linked server configuration to Oracle_C. I used the same query to select from Oracle_C. SQL2008R2_A returned the correct result but SQL2008R2_B get nothing. And I tested linked server connection of both instances. They are all successfully. Interesting...
-
1The linked servers might look the same, but something should be different if the same query is returning different results. Check the configurations side-by-side, check security settings and accounts used in the linked servers, and (maybe) the driver? Just some guesses at things to look at.Nestor– Nestor2017年09月16日 10:29:53 +00:00Commented Sep 16, 2017 at 10:29
-
1Are you sure your TNS names files are exactly the same on both SQL systems?jstexasdba– jstexasdba2017年09月16日 12:00:39 +00:00Commented Sep 16, 2017 at 12:00
1 Answer 1
Thank you for your response. Before post this question I already double checked the settings for both linked server and TNS name file. There is nothing different between them.
Fortunately, I resolved it by just re-create the linked server at Server B. It might need to refresh some cache.
Thanks again and have a great one:)