在相同环境下,
1、使用Toad和PL/sql Developer连接数据库,执行相同的SQL,
如果返回的结果集比较大,则出现SQL*net more data to client等待,最终导致ora-03113错误出现。
2、使用SQLplus 连接数据库,执行相同的SQL,则执行正常。trace日志文件分别如下。
trace_sqlplus表示通过sqlplus执行会话的trace;*** 2010-09-07 16:16:29.272
*** SESSION ID:(873.26407) 2010-09-07 16:16:29.272
*** CLIENT ID:() 2010-09-07 16:16:29.272
*** SERVICE NAME:(racdb) 2010-09-07 16:16:29.272
*** MODULE NAME:(sqlplus.exe) 2010-09-07 16:16:29.272
*** ACTION NAME:() 2010-09-07 16:16:29.272
WAIT #1: nam='SQL*Net message to client' ela= 4 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847389272491*** 2010-09-07 16:16:54.201
WAIT #1: nam='SQL*Net message from client' ela= 24928745 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847414201732
CLOSE #1:c=0,e=12,dep=0,type=1,tim=1283847414201869
WAIT #1: nam='rdbms ipc reply' ela= 95 from_process=31 timeout=2147483647 p3=0 obj#=-1 tim=1283847414204075
WAIT #1: nam='rdbms ipc reply' ela= 72 from_process=31 timeout=2147483647 p3=0 obj#=-1 tim=1283847414204258
WAIT #1: nam='rdbms ipc reply' ela= 69 from_process=31 timeout=2147483647 p3=0 obj#=-1 tim=1283847414204400
=====================
PARSING IN CURSOR #1 len=26 dep=0 uid=0 oct=3 lid=0 tim=1283847414207128 hv=854999936 ad='35269b330' sqlid='36dwj7htgchw0'
select * from v$event_name
END OF STMT
PARSE #1:c=4999,e=5195,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=65239674,tim=1283847414207125
EXEC #1:c=0,e=55,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=65239674,tim=1283847414207298
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847414207355
FETCH #1:c=0,e=49,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=65239674,tim=1283847414207468
WAIT #1: nam='SQL*Net message from client' ela= 56628 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847414264158
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847414264237
FETCH #1:c=0,e=123,p=0,cr=0,cu=0,mis=0,r=15,dep=0,og=1,plh=65239674,tim=1283847414264335*** 2010-09-07 16:17:09.499
WAIT #1: nam='SQL*Net message from client' ela= 149186 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429499939
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429500059
FETCH #1:c=0,e=100,p=0,cr=0,cu=0,mis=0,r=15,dep=0,og=1,plh=65239674,tim=1283847429500136
WAIT #1: nam='SQL*Net message from client' ela= 150824 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429651000
WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429651075
FETCH #1:c=0,e=99,p=0,cr=0,cu=0,mis=0,r=15,dep=0,og=1,plh=65239674,tim=1283847429651153
WAIT #1: nam='SQL*Net message from client' ela= 150120 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429801313
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429801394
FETCH #1:c=1000,e=105,p=0,cr=0,cu=0,mis=0,r=15,dep=0,og=1,plh=65239674,tim=1283847429801474
WAIT #1: nam='SQL*Net message from client' ela= 152003 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429953518
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847429953590
FETCH #1:c=0,e=95,p=0,cr=0,cu=0,mis=0,r=15,dep=0,og=1,plh=65239674,tim=1283847429953665
WAIT #1: nam='SQL*Net message from client' ela= 150374 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847430104079
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847430104158
FETCH #1:c=0,e=107,p=0,cr=0,cu=0,mis=0,r=15,dep=0,og=1,plh=65239674,tim=1283847430104244
WAIT #1: nam='SQL*Net message from client' ela= 150603 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847430254891
WAIT #1: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847430254967
FETCH #1:c=0,e=73,p=0,cr=0,cu=0,mis=0,r=7,dep=0,og=1,plh=65239674,tim=1283847430255019
STAT #1 id=1 cnt=1118 pid=0 pos=1 obj=0 op='FIXED TABLE FULL X$KSLED (cr=0 pr=0 pw=0 time=4886 us cost=0 size=235 card=1)'
trace_toad 表示通过toad工具执行会话的trace;*** 2010-09-07 16:17:50.964
*** SESSION ID:(527.4484) 2010-09-07 16:17:50.964
*** CLIENT ID:() 2010-09-07 16:17:50.964
*** SERVICE NAME:(racdb) 2010-09-07 16:17:50.964
*** MODULE NAME:(TOAD 9.6.1.1) 2010-09-07 16:17:50.964
*** ACTION NAME:() 2010-09-07 16:17:50.964
 
WAIT #3: nam='SQL*Net message to client' ela= 3 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847470964097*** 2010-09-07 16:17:53.275
WAIT #3: nam='SQL*Net message from client' ela= 2310625 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847473275188
CLOSE #3:c=0,e=15,dep=0,type=1,tim=1283847473275337
WAIT #1: nam='ges message buffer allocation' ela= 21 pool=0 request=1 allocated=0 obj#=-1 tim=1283847473276381
WAIT #1: nam='ges message buffer allocation' ela= 6 pool=0 request=1 allocated=0 obj#=-1 tim=1283847473276626
WAIT #1: nam='library cache lock' ela= 429 handle address=14355768096 lock address=14359929312 100*mode+namespace=65538 obj#=-1 tim=
1283847473277099
WAIT #1: nam='ges message buffer allocation' ela= 3 pool=0 request=1 allocated=0 obj#=-1 tim=1283847473277210
WAIT #1: nam='ges message buffer allocation' ela= 2 pool=0 request=1 allocated=0 obj#=-1 tim=1283847473277269
WAIT #1: nam='library cache pin' ela= 324 handle address=14355768096 pin address=14359929056 100*mode+namespace=65538 obj#=-1 tim=12
83847473277651
WAIT #1: nam='KJC: Wait for msg sends to complete' ela= 32 msg=14115296888 dest|rcvr=65536 mtype=12 obj#=-1 tim=1283847473277756
WAIT #1: nam='rdbms ipc reply' ela= 145 from_process=31 timeout=2147483647 p3=0 obj#=-1 tim=1283847473278675
WAIT #1: nam='rdbms ipc reply' ela= 77 from_process=31 timeout=2147483647 p3=0 obj#=-1 tim=1283847473278873
WAIT #1: nam='rdbms ipc reply' ela= 108 from_process=31 timeout=2147483647 p3=0 obj#=-1 tim=1283847473279070
=====================
PARSING IN CURSOR #1 len=27 dep=0 uid=0 oct=3 lid=0 tim=1283847473281573 hv=1327386715 ad='353e074b8' sqlid='a7mqq917jwn2v'
select * from v$event_name 
END OF STMT
PARSE #1:c=5000,e=6168,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=65239674,tim=1283847473281570
EXEC #1:c=0,e=59,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=65239674,tim=1283847473281748
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847473281809
FETCH #1:c=0,e=42,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=65239674,tim=1283847473281908*** 2010-09-07 16:17:53.339
WAIT #1: nam='SQL*Net message from client' ela= 57200 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847473339169
WAIT #1: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=1283847473339274
WAIT #1: nam='SQL*Net more data to client' ela= 28 driver id=1413697536 #bytes=8145 p3=0 obj#=-1 tim=1283847473339911
WAIT #1: nam='SQL*Net more data to client' ela= 22 driver id=1413697536 #bytes=8145 p3=0 obj#=-1 tim=1283847473340638
WAIT #1: nam='SQL*Net more data to client' ela= 12 driver id=1413697536 #bytes=8147 p3=0 obj#=-1 tim=1283847473341271
WAIT #1: nam='SQL*Net more data to client' ela= 11 driver id=1413697536 #bytes=8143 p3=0 obj#=-1 tim=1283847473341840
WAIT #1: nam='SQL*Net more data to client' ela= 200197 driver id=1413697536 #bytes=8145 p3=0 obj#=-1 tim=1283847473542607
WAIT #1: nam='SQL*Net more data to client' ela= 13 driver id=1413697536 #bytes=8165 p3=0 obj#=-1 tim=1283847473543295
WAIT #1: nam='SQL*Net more data to client' ela= 11 driver id=1413697536 #bytes=8126 p3=0 obj#=-1 tim=1283847473543904
FETCH #1:c=4998,e=204725,p=0,cr=0,cu=0,mis=0,r=1117,dep=0,og=1,plh=65239674,tim=1283847473543971
STAT #1 id=1 cnt=1118 pid=0 pos=1 obj=0 op='FIXED TABLE FULL X$KSLED (cr=0 pr=0 pw=0 time=3909 us cost=0 size=235 card=1)'