Home » SQL & PL/SQL » SQL & PL/SQL » SQL*Net message from dblink (Oracle 11g )
SQL*Net message from dblink [message #643176] Thu, 01 October 2015 01:26 Go to next message
mad_man12
Messages: 5
Registered: February 2010
Location: india
Junior Member
Hi All,

We have a query running fetching data over DBLink and facing below issue

waiting on event SQL*Net message from dblink and session is active


Explain plan looks fine.
Stats pack and Explain plan attached.

We have checked from Network end as well and didn't see any network glitch during that duration.

Any ideas/suggestions.

Thanks
maman12
Re: SQL*Net message from dblink [message #643179 is a reply to message #643176] Thu, 01 October 2015 01:49 Go to previous messageGo to next message
mad_man12
Messages: 5
Registered: February 2010
Location: india
Junior Member
Explain Plan
Re: SQL*Net message from dblink [message #643181 is a reply to message #643176] Thu, 01 October 2015 02:02 Go to previous messageGo to next message
John Watson
Messages: 8929
Registered: January 2010
Location: Global Village
Senior Member
Please read our OraFAQ Forum Guide and How to use [code] tags and make your code easier to read

You need to show the query. Please be sure to format it, and enclose it within [code] tags.
Re: SQL*Net message from dblink [message #643186 is a reply to message #643181] Thu, 01 October 2015 02:56 Go to previous messageGo to next message
mad_man12
Messages: 5
Registered: February 2010
Location: india
Junior Member

Hi,

Please find the query below, the query was running fine for last few months we have hit this issue only for last 2 days and when we avoid the DB link and run it locally we donot face this issue, however the system design is so that we have to run it in Mirror DB only through DBlink and not supposed to run in actual local PROD DB.

Code is here



[EDITED by LF: applied [spoiler] tags]

[Updated on: Thu, 01 October 2015 14:30] by Moderator

Report message to a moderator

Re: SQL*Net message from dblink [message #643191 is a reply to message #643186] Thu, 01 October 2015 03:04 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Please read How to use [code] tags and make your code easier to read.
Use SQL Formatter to proper format your SQL.

And remove all lines in comment that just add noise to your post.

Re: SQL*Net message from dblink [message #643196 is a reply to message #643191] Thu, 01 October 2015 03:14 Go to previous messageGo to next message
mad_man12
Messages: 5
Registered: February 2010
Location: india
Junior Member
Code is here



[EDITED by LF: applied [spoiler] tags]

[Updated on: Thu, 01 October 2015 14:31] by Moderator

Report message to a moderator

Re: SQL*Net message from dblink [message #643197 is a reply to message #643196] Thu, 01 October 2015 03:16 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Your query looks very similar to the one in this thread: http://www.orafaq.com/forum/t/198617/
You should apply the suggestions I made there to minimize the sub-queries and decodes.
Re: SQL*Net message from dblink [message #643213 is a reply to message #643196] Thu, 01 October 2015 05:34 Go to previous message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

And you should learn how to format your query and the link I gave you will help you and even do it for you.
Ignoring what we said is not the best way to be helped.

Previous Topic: Replace string based on condition
Next Topic: DBMS_AQ
Goto Forum:
  


Current Time: Fri Apr 19 23:29:02 CDT 2024