Nathan DeWitt
Nathan DeWitt

Reputation: 6601

Query to Linked Server never stops executing

I have created a linked server in SQL Server 2005 to an Oracle DB. When I run a query, The query never stops executing, and never returns results. When I cancel the query, it never completes cancelling. I have to close the window to get it to stop.

I have set things up as follows:

The query never completes execution. Anyone have any insights? Any steps I'm missing?

UPDATE:
I came in the following day and tried the query again and it worked just fine. I suspect network issues of some sort.

Upvotes: 0

Views: 1042

Answers (1)

Gary Myers
Gary Myers

Reputation: 35401

Look on the Oracle server, querying v$session. See if you can see the remote connection, and what the Oracle session is doing. You can even do a trace on the Oracle side (set off by a login trigger) to record everything that happens (eg parse of query, returned errors etc).

Upvotes: 1

Related Questions