UTL_TCP connection timeout in Oracle 8i
I am using Oracle 8i’s UTL_TCP package for sending and receiving messages on TCP. When I enter invalid port it waits for long time before throwing error.
There is a provision of tx_timeout parameter in oracle 9i in UTL_TCP.open_connection. But there is no such parameter in Oracle 8i. How to deal with this problem in Oracle 8i?
Thanks
Hi,
This is how I dealt with it. In 8i the available function tells you how many bytes are available immediately, without blocking. Simply execute a loop, exiting when available returns more than 0. If available returns 0, simply sleep for a while using dbms_lock.sleep (the smallest unit of time you can sleep for is roughly 1/10th of a second using this method). Rough pseudo code is at the end.
It's a bit clunky, but worked well enough to emulate the timeout functionality for me to put in my xutl_ftp package.
HTH
Chris
while seconds_elapsed < 2 loop
if available(c) > 0 then
exit;
else
dbms_lock.sleep(1/10);
seconds_elapsed := seconds_elapsed + (1/10);
end if;
end loop;
Similar Messages
-
Oracle 9.0.1 on Solaris/SPARC infinite connection timeouts
Hello, All!
I have the following system configuration:
Solaris 5.9 Maintenance Update 4;
Sun Ultra 10, 1 UltraSPARC IIi 440Mhz CPU, 1024M RAM;
Oracle 9.0.1 (9i Release 1).
The database was created with JServer option turned on (we're using the integrated CORBA functionality); archive log mode is OFF, database cache advice is ON.
In a nutshell,
==============
the problem is in really infinite connection timeouts of Oracle after a long time of inactivity (say, on Monday after two weekend days).
Long description.
=================
Client-side symptoms.
First, I tried to establish a connection to a published CORBA object, and received no response (I am already waiting for 1 hour 40 minutes).
Then, I tried to connect to the database with SQLPlus, remotely:
$ sqlplus /nolog
SQL> CONNECT SYS/change_on_install@ORCL AS SYSDBA;
All the same, I receive no reply. However, the listener is alive, I can establish a network connection to both ports 1521 and 2481. Client-side logs (specified via sqlnet.ora) say the following:
=========== skipped ===========
[09-АВГ-2004 10:27:24:770] nioqsn: entry
[09-АВГ-2004 10:27:24:770] nioqsn: exit
[09-АВГ-2004 10:27:24:770] nioqrc: entry
[09-АВГ-2004 10:27:24:771] nsdo: cid=0, opcode=84, bl=0, what=1, uflgs=0x20, c
[09-АВГ-2004 10:27:24:771] nsdo: rank=64, nsctxrnk=0
[09-АВГ-2004 10:27:24:771] nsdo: nsctx: state=8, flg=0x400d, mvd=0
[09-АВГ-2004 10:27:24:771] nsdo: gtn=127, gtc=127, ptn=10, ptc=2011
[09-АВГ-2004 10:27:24:771] nsdofls: DATA flags: 0x0
[09-АВГ-2004 10:27:24:771] nsdofls: sending NSPTDA packet
[09-АВГ-2004 10:27:24:771] nspsend: plen=770, type=6
[09-АВГ-2004 10:27:24:771] nttwr: entry
[09-АВГ-2004 10:27:24:771] nttwr: socket 12 had bytes written=770
[09-АВГ-2004 10:27:24:771] nttwr: exit
[09-АВГ-2004 10:27:24:771] nspsend: 770 bytes to transport
[09-АВГ-2004 10:27:24:772] nsdo: nsctxrnk=0
[09-АВГ-2004 10:27:24:772] nsdo: cid=0, opcode=85, bl=0, what=0, uflgs=0x0, cf
[09-АВГ-2004 10:27:24:772] nsdo: rank=64, nsctxrnk=0
[09-АВГ-2004 10:27:24:772] nsdo: nsctx: state=8, flg=0x400d, mvd=0
[09-АВГ-2004 10:27:24:772] nsdo: gtn=127, gtc=127, ptn=10, ptc=2011
[09-АВГ-2004 10:27:24:772] nsdo: switching to application buffer
[09-АВГ-2004 10:27:24:772] nsrdr: recving a packet
[09-АВГ-2004 10:27:24:772] nsprecv: reading from transport...
[09-АВГ-2004 10:27:24:772] nttrd: entry
If I try to connect to the database locally, I receive the same result:
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA;
-- no reply.
Server-side symptoms.
Oracle logs in ${ORACLE_BASE}/admin/ORCL have no entries referring the last two days. Oracle server debug log (specified via sqlnet.ora) says the following:
========== skipped ===================
nttrd: socket 20 had bytes read=181
nttrd: exit
nsprecv: 181 bytes from transport
nsprecv: tlen=181, plen=181, type=6
nsrdr: got NSPTDA packet
nsrdr: NSPTDA flags: 0x0
nsdo: what=1, bl=2009
nsdo: nsctxrnk=0
nioqrc: exit
nioqsn: entry
nioqrc: entry
nsdo: cid=0, opcode=84, bl=0, what=1, uflgs=0x20, cflgs=0x3
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=8, flg=0x420c, mvd=0
nsdo: gtn=156, gtc=156, ptn=10, ptc=2019
nsdofls: DATA flags: 0x0
nsdofls: sending NSPTDA packet
nspsend: plen=93, type=6
nttwr: entry
nttwr: socket 20 had bytes written=93
nttwr: exit
nspsend: 93 bytes to transport
nsdo: nsctxrnk=0
nsdo: cid=0, opcode=85, bl=0, what=0, uflgs=0x0, cflgs=0x3
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=8, flg=0x420c, mvd=0
nsdo: gtn=156, gtc=156, ptn=10, ptc=2019
nsdo: switching to application buffer
nsrdr: recving a packet
nsprecv: reading from transport...
nttrd: entry
nttrd: socket 20 had bytes read=770
nttrd: exit
nsprecv: 770 bytes from transport
nsprecv: tlen=770, plen=770, type=6
nsrdr: got NSPTDA packet
nsrdr: NSPTDA flags: 0x0
nsdo: what=1, bl=2009
nsdo: nsctxrnk=0
nioqrc: exit
Oracle local client debug log (oracle enterprise manager runs on the same machine) says:
...nsevwait: nsevwait: nsevwait: nsevwait: nsevwait:
nsevwait: nsevwait: nsevwait: nsevwait: nsevwait:
nsevwait: nsevwait: nsevwait: nsevwait: nsevwait: ...
ps -e -o "user,pid,pcpu,pmem,rss,vsz,args" says there're several (3) processes running as oracle, with "args" oracle_ORCL, which eat up nearly all available memory (they have "pmem" values of 25, 25 and 17 per cent, respectively). One of these processes has "pcpu" value varying from 97% to 100%, moreover, this is a user, NOT system time (according to sdtperfmeter, disk/page/swap activity is extremely low; system load holds at value of 4). Here is a sample vmstat output:
cpu
cs us sy id
287 99 1 0
285 100 0 0
280 100 0 0
272 100 0 0
298 98 2 0
275 99 1 0
267 100 0 0
307 97 3 0
282 100 0 0
270 100 0 0
307 98 2 0
287 100 0 0
Here cs is the number of cpu context switches per second;
us is cpu user time;
sy is cpu system time.
The question is: what oracle may be doing and how can I fix the problem?
Thanks in advance.Now, 3 hours later, the first two (of three) connections got established, but subsequent database queries are in the same nearly dead state.
CPU usage remains about 100%, system load 4.
I know that oracle restart (and/or system restart) will cure the problem -- but only until next weekend.
Can this be oracle misconfiguration? -
Plsql - set a timeout on utl_tcp connection
hi,
I have a utl_tcp connection and I want to define the timeout parameter before each read.
How? thanks...UTL_TCP pretty much runs directly on the standards sockets interface. It does very little to no additional abstraction, or inserting additional management/state code in between you the caller, and the sockets interface. So it is pretty much standard (client) tcp socket programming as far as using UTL_TCP is concerned.
How are you making the write message socket calls via UTL_TCP ?
You will only "immediately" see a connection error on socket write when it is done in blocking mode - and "immediately" can mean several minutes of waiting for that blocking call to complete and return an error using the native socket interface.
Note that the A side will only know that the B side is gone when the B side sends a tcp packet with the FIN bit set in the header. As the B side crashes, that does not happen. So the protocol stack on A still believes (quite correctly) that the B side is still there. The A side needs to actively use the connection and send something to the B side in order to determine the B side is gone. And the speed of this "failure" is pretty much dependent on the infrastructure in-between and the time it takes for that tcp packet to die and the A side protocol stack receiving a RST telling it to reset its connection as it failed.
tcp was designed to be very robust. It does not simply throw in the towel.. {noformat} ;-) {noformat} -
Error in connect to database2EETW169 no connect possible: "DBMS = ORACLE
Dear All,
I am facing probem in sarting the sap after system copy.
Database is up and running .Please find the logs
There error it can connect to database
r3trans log
This is r3trans version 6.09 (release 640 - 26.10.04 - 15:45:42).
unicode enabled version
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_o
ra_tnsname = 'TAT'"
r3trans finished (0012).
trc file: "dev_disp", trc level: 1, release: "640"
Wed Jul 22 20:03:18 2009
kernel runs with dp version 128000(ext=102000) (@(#) DPLIB-INT-VERSION-128000-UC)
length of sys_adm_ext is 524 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 43
intno 20020600
make: multithreaded, Unicode
pid 552
***LOG Q00=> DpSapEnvInit, DPStart (00 552) [dpxxdisp.c 1100]
shared lib "dw_xml.dll" version 43 successfully loaded
shared lib "dw_xtc.dll" version 43 successfully loaded
shared lib "dw_stl.dll" version 43 successfully loaded
shared lib "dw_gui.dll" version 43 successfully loaded
Wed Jul 22 20:03:23 2009
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 10528 (1316)
DpShMCreate: sizeof(tm_adm) 2780232 (13832)
DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
DpShMCreate: sizeof(comm_adm) 290000 (580)
DpShMCreate: sizeof(vmc_adm) 0 (372)
DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
DpShMCreate: SHM_DP_ADM_KEY (addr: 04540040, size: 3192688)
DpShMCreate: allocated sys_adm at 04540040
DpShMCreate: allocated wp_adm at 04541B58
DpShMCreate: allocated tm_adm_list at 04544478
DpShMCreate: allocated tm_adm at 045444A0
DpShMCreate: allocated wp_ca_adm at 047EB0E8
DpShMCreate: allocated appc_ca_adm at 047F0EA8
DpShMCreate: allocated comm_adm_list at 047F2DE8
DpShMCreate: allocated comm_adm at 047F2E00
DpShMCreate: allocated vmc_adm_list at 04839AD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 04839AF8
DpShMCreate: allocated wall_adm at 04839B00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation flat
<EsNT> Memory Reset disabled as NT default
<ES> 2456 blocks reserved for free list.
ES initialized.
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 2.6.1 2.6 4.0) [dpxxdisp.c 1462]
***LOG Q0K=> DpMsAttach, mscon ( RFCLTEST) [dpxxdisp.c 9736]
Wed Jul 22 20:03:24 2009
CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 43
Release check o.K.
Wed Jul 22 20:04:04 2009
ERROR => W0 (pid 2956) died [dpxxdisp.c 12187]
ERROR => W1 (pid 2080) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3556) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 2604) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 4024) died [dpxxdisp.c 12187]
ERROR => W5 (pid 3816) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 2820) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 1448) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-2956 (SIGUSR2)
ERROR => DpWpKill(2956, SIGUSR2) failed [dpxxtool.c 2468]
killing W1-2080 (SIGUSR2)
ERROR => DpWpKill(2080, SIGUSR2) failed [dpxxtool.c 2468]
killing W2-3556 (SIGUSR2)
ERROR => DpWpKill(3556, SIGUSR2) failed [dpxxtool.c 2468]
killing W3-2604 (SIGUSR2)
ERROR => DpWpKill(2604, SIGUSR2) failed [dpxxtool.c 2468]
killing W4-4024 (SIGUSR2)
ERROR => DpWpKill(4024, SIGUSR2) failed [dpxxtool.c 2468]
killing W5-3816 (SIGUSR2)
ERROR => DpWpKill(3816, SIGUSR2) failed [dpxxtool.c 2468]
killing W6-2820 (SIGUSR2)
ERROR => DpWpKill(2820, SIGUSR2) failed [dpxxtool.c 2468]
killing W7-1448 (SIGUSR2)
ERROR => DpWpKill(1448, SIGUSR2) failed [dpxxtool.c 2468]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1597
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Wed Jul 22 20:04:14 2009
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Wed Jul 22 14:34:14 2009
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 2956 Ended no 1 0 0
1 DIA 2080 Ended no 1 0 0
2 UPD 3556 Ended no 1 0 0
3 ENQ 2604 Ended no 1 0 0
4 BTC 4024 Ended no 1 0 0
5 BTC 3816 Ended no 1 0 0
6 SPO 2820 Ended no 1 0 0
7 UP2 1448 Ended no 1 0 0
Dispatcher Queue Statistics Wed Jul 22 14:34:14 2009
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
10
10
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 8 ( 88%), shm 1 ( 11%)
since last update total 9, udp 8 ( 88%), shm 1 ( 11%)
Dump of tm_adm structure: Wed Jul 22 14:34:14 2009
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Wed Jul 22 14:34:14 2009
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1597
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Wed Jul 22 20:04:19 2009
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpJ2eeDisableRestart
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (2004) (SOFT_KILL)
Stop icman
killing process (932) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:2004 HANDLE:1576)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1597
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Wed Jul 22 20:04:20 2009
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:2004 HANDLE:1576)
[DpProcDied] Process died (PID:932 HANDLE:1568)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'RFCLTEST'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9962]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1580
MsIDetach: detach MS-system
EsCleanup ....
***LOG Q05=> DpHalt, DPStop ( 552) [dpxxdisp.c 8495]
Good Bye .....
Regards,Hi,
Yes it is running and in r3trans log error
[dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 4210 0.068739
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 27 0.068766
4 ETW000 [dev trc ,00000] Try to connect with default password 155 0.068921
4 ETW000 [dev trc ,00000] Connecting as SAPTST/<pwd>@TST on connection 0 ...
4 ETW000 23 0.068944
4 ETW000 [dev trc ,00000] Assigning username to user session 01DF23E0 16 0.068960
4 ETW000 [dev trc ,00000] Assigning password to user session 01DF23E0 24 0.068984
4 ETW000 [dev trc ,00000] Starting user session (con_hdl=0,svchp=01DE8C0C,srvhp=01DE9814,usrhp=01DF23E0)
4 ETW000 27 0.069011
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 1521 0.070532
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 24 0.070556
4 ETW000 [dblink ,00419] ***LOG BY2=>sql error 1017 performing CON [dblink#1 @ 419]
4 ETW000 4668 0.075224
4 ETW000 [dblink ,00419] **LOG BY0=>ORA-01017: invalid username/password; logon denie*d [dblink#1 @ 419]
4 ETW000 25 0.075249
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'TST'"
REgards, -
Connection timeout error while refreshing a deski report
Hi All,
When I tried to refresh a report I'm getting the following error.
" Exception: DBD, ORA-12170: TNS:Connect timeout occurred State: N/A"
Can any one tell me how to over come it.
BO S/W DETAILS: boxi R3.1
DATABASE: Oracle 10g
Thanks in Advance,
Suresh Aluri.Hi,
The issue seems to be at the database level.
Please chk this link: http://www.dba-oracle.com/t_ora_12170_tns_connect_timeout.htm
Suggest you to check with the DBA team.
Regards -
Handling the ORA-12170: TNS:Connect timeout in a procedure
Post moved to:
Handling the ORA-12170: TNS:Connect timeout in a procedure
Edited by: John_75 on Jun 28, 2010 9:33 AMhttp://download.oracle.com/docs/cd/B19306_01/network.102/b14212/troublestng.htm#i440403
will give you
http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/troublestng.htm#CEGEDBIE -
Connection timeout in web service calls
Hi,
We have a clustered weblogic 10gR3 environment where two nodes are for ILOG rule engine, two nodes for Oracle BPM engine and four nodes for Oracle BPM workspace. All the webserices calls are SOAP over HTTP. All the webservices to rule engine and DBAdapter are hosted on Oracle Service Bus. Some of the webservice calls when invoked throw a connection timeout exception. Can any one help on how to debug this or the possible causes for this scenario? The same webservice call when invoked or retried after a few minutes is working fine. Below is the stack trace:
Stacktrace: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.reflect.GeneratedMethodAccessor212.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at fuego.soaptype.SoapCall.invoke(SoapCall.java:234)
at fuego.soaptype.SoapObject.invoke(SoapObject.java:309)
at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
at xobject.EDP.EDP.EDPObject.helpBusinessRules(EDPObject.xcdl:59)
at oracle.EDPPROCESS.Default_6_6.Instance.CIL_checkRTDIInformation(Instance.xcdl:12)
at oracle.EDPPROCESS.Default_6_6.Instance.CIL_checkRTDIInformation(Instance.xcdl)
at sun.reflect.GeneratedMethodAccessor7653.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1083)
at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1278)
at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126)
at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84)
at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57)
at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62)
at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:261)
at fuego.ejbengine.ItemExecutionBean$1.execute(ItemExecutionBean.java:223)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
at fuego.ejbengine.ItemExecutionBean.processMessage(ItemExecutionBean.java:209)
at fuego.ejbengine.ItemExecutionBean.onMessage(ItemExecutionBean.java:120)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)EJP, thanks for confirming that the generated code is incorrect and that the finally block should be used.
Jschell, thanks for the suggestions and the trust in my technical skills... though writing my own generator seems a bit of too great enterprise for me haha!
The generator is not open source so I cannot modify it and using another one is not an option as it is the "standard" in the company.
In the end I decided for writing a post processor (in the form of a JDeveloper extension) to fix the code after it is generated. I will also probably be filing a bug for it with Oracle.
Cheers,
Luis -
TNS:connection timeout error
Hi,
I have installed oracle 10g in my system.
the tnsnames.ora file contails the following:
TEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
and sqlnet.ora file contains :
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
when i'm trying to login from SQLPLUS as:
sqlplus sys/<password>@<sid> as sysdba
it's showing the error as "ORA-12170 :TNS: connect timeout occured"
C:\Documents and Settings\Administrator>sqlplus sys/<password>@<sid> as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 10 09:47:56 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12170: TNS:Connect timeout occurred
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
But i coudnot connect to Enterprise manager and through Toad because it tells as "TNS:connect timeout occured".
From enterprise manager it shows the instance,listener are down.
trying to start up the instance shows as "not connected to oracle".
Could you please help me for this.
Thanks,
Souvikuser10223265 wrote:
This may help
http://www.errorkey.com/search/Index.aspx?q=TNS-12541
Is this the best you have to offer? I see you keep on posting "+answers+" using this URL. Well, if this is all you have to offer it is pretty pathetic. Please do not bother as there are many here that will actually make an effort to assist the person with the problem. We do not want you to sprain a finger or break a nail looking up the errorkey URL for yet another error code.
Re: why handling ora-01722 with pl/sql not works ??? -
i am getting CONNECTION TIMEOUT error in my macbook(10.7.4).plzzz help me
Thank you very much, i guess it will be the remote servers.
Then i got this critical error on my local server
Automatic mail message send from usa12 for SID USA on Fri Dec 15 15:00:01 EST 2006
DONOT REPLY FOR THIS MESSAGE.....
Please check the follwing files ( will exist if there was an error )
/u01/app/oracle/admin/usa/bdump/alert_usa.log.121506.1500 ......
/u01/app/oracle/product/8.1.7/network/log/listener.log.121506.1500 .....
ORA-00600: internal error code, arguments: [17182], [27793076],
I know i need to contact oracle , when i went to Metalink ,i needed to run their RDA it is like diagnostic report script and include it before u send to them.
I needed some permissions from my Senior so i will do it on monday.
do you have any suggestions???? -
Ora - 12170 - Connection Timeout
Hi,
Problem - I am using TOAD on my machine to connect to my database, but giving the error "Ora-12170, Connection Timeout".
Explanation - I have installed Oracle InstantClient 10.2 on local machine and using that home as default home to connect to target instance.
Here the thing is , I can able to PING to the UNIX box but can't able to make Database connection.
Have made PATH, LNS_LANG system variables...
Have created TNSNAME.Ora in instantClient with proper entries.
Any help is like wind of heaven... stucked here for long time...
Thanks & regards,
Madhav
Edited by: user13155845 on May 31, 2010 2:48 AMdo it in command promt.
tnsping EONVIS_11
if you are getting error while doing tnsping then port 1521 is not open or may be firewell issue.
if sqlnet.ora file in not there create it like this in ORACLE_HOME/network/admin location
for windows
# sqlnet.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES,EZCONNECT,NAMES)
for unix
# sqlnet.ora Network Configuration File: D:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES,EZCONNECT,NAMES)
Edited by: PrafullaNath on May 31, 2010 3:36 PM -
UTL_TCP - connection loss
Hi guys,
I would need a help with UTL_TCP package...
Oracle version is:
SELECT * FROM V$VERSION;
Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
I have a package which handles communication with another system over tcp. In the package, there is a private global variable of type UTL_TCP.Connection which holds the connection record after I open a connection. I normally send data using UTL_TCP.Write_Text function.
This works fine until a moment when the connection probably breaks or something else happens. After that, when I try to call UTL_TCP.Write_Text, it fails because the global structure holding connection details is already null - namely remote_host and remote_port are suddenly set to null. Calling UTL_TCP.Write_Text then throws an exception:
ORA-29260: network error: not connected
Please note the description...
Does anyone has an idea how can this happen???
I know that these fields are set to null when I call UTL_TCP.CLOSE_CONNECTION, but this I don't call at all (only at the end when closing the application). I have put a logging into my function which holds the call to UTL_TCP.CLOSE_CONNECTION to be 100% sure that this isn't invoked and it isn't.
In the documentation to UTL_TCP package I see:
remote_host
Name of the remote host when connection is established. NULL when no connection is established.
remote_port
Port number of the remote host connected. NULL when no connection is established.
So I thought that when there is a connection break because of any reason, maybe Oracle itself could set these fields to null...
I have created a test package with just 2 functions - one for opening a connection, one for sending some data. Now, I connect to some listening application, send some data, then I close or kill that remore application and try to send some data to it.
To me is very strange that when I do that, I am always able to make two successful calls of UTL_TCP.Write_Text function and the third call always fails with following error:
ORA-29260: network error: TNS:lost contact
See that the ORA number is the same, but description is different.
Is there any difference between these two errors - how is it possible that same ORA error has different description?
How is it possible that remote_host and remote_port are suddenly set to Null?
Thanks a lot for help,
DanI found the problem.
1) The difference between two descriptions of ORA-29260 is that
network error: not connected - is displayed when trying to send the data and the connection structure is null, meaning we are not connected to the remote system
network error: TNS:lost contact - is displayed when we were connected (connection structure is not null), but the connection is lost for some reason
2) The problem with connection structure suddently set to null was happening because we were using different DB session from time to time. So it was happening that we were trying send the data in session where we were not connected to remote process. -
How to set TCP connection timeout in solaris 9
Hello All,
I am new to solaris. While using oracle, sometimes I face tcp connection timeout.
The timeout happens after a long delay like more than 8 min. I want to reduce the tcp connection timeout to 2 min in solaris.
Please help me to change this setting.
My current configuration is
SunOS testmachine 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-V440
Thanks
PurushothThere's a fair amount of tunables. Without known what is timing out (dns, lost packet...), it's hard to say what you want to tweak. The list of parameters can be seen by using ndd:
ndd /dev/tcp \?
or
ndd /dev/ip \?
and can be set by using ndd -set (see ndd(1M) ). Note that anything you set has to be reset on reboot, so you have to stick this in a script somewhere, or know what the variable translates to to stick it into /etc/system.
-r -
I installed recently Oracle 10g. When I try to log in, with the account and password setup[ earlier, I get the message "ORA-12170: TNS: Connect timeout occured". Do I need to specify a Host String" at Log On? Should I un-install and re-install the software again? Thank you.
/* Error: ORA-12170 (ORA-12170)
Text: TNS:Connect timeout occurred
Cause: The server shut down because connection establishment with a
client failed to complete within the allotted time interval. This
may be a result of network/system delays; or this may indicate
that a malicious client is trying to cause a Denial of Service
attack on the server.
Action: If the error occurred because of a slow network/system,
reconfigure the SQLNET.INBOUND_CONNECT_TIMEOUT parameter in
sqlnet.ora to a larger value. If a malicious client is suspected,
use the address in sqlnet.log to identify the source and restrict
access. Note that logged addresses may not be reliable as they can
be forged (e.g. in TCP/IP).
Could also be a firewall issue.
Werner -
Not able to connect to the Oracle FTP Site.
I am unable to connect to the oracle ftp server.
ftp://oracle-ftp.oracle.com/dev_tools/patchsets/dev2k/Win95NT/d2kwutil/
I need to download the latest version of d2kwutil for forms 4.5.
The one with the WIN_API_SESSION call. I got a version for forms 6.0 but I need one for
forms 4.5 with d2kwut32.dll. Please let me know how to download this.
Any help is highly appreciated.
Thanks, Prabhu.As you said I renamed d2kwut60.dll to d2kwut32.dll and I tried deporting the Forms ver 6 D2KWUTIL.PLL to Forms 4.5 D2KWUTIL.PLL .. but unfortunately it didn't work out. All I wanted was the WIN_API_SESSION for timeout on FORMS application (if kept idle) .. but it turned out I need to modify WIN_API and other functions to accomdate this new function .. and also I think since PL/SQL version is of lower version in 4.5 .. I am having compilation problems also.
Since I am unable to connect to the FTP site I would really appreciate if you have a version of D2KWUTIL.PLL for FORMS 4.5 with WIN_API_SESSION calls, which you could forward it to EMAIL ID : [email protected]
Thanks again for trying to help. Appreciate a lot.
Thanks, Prabhu. -
XI adapter polling issue & JDBC / DB2 driver connection timeout properties
Hello Group,
We have a long running issue with our XI 7.0 system running on iseries. (V5R3) The issue occuring is that our XI adapters stop polling and the only resolution is to restart the J2EE engine or to resart the adapter framework services.
We have had several OSS messages open on this subject for over a year and are going round in circles with the a number of different SAP consultants.
The one topic that we keep coming back to is that we are being asked to set DB2 driver connection timeout properties. We are using the toolbox driver and have upated to the latest JTopen driver, but have not managed to find any inofrmation on how to set the timeout parameter. Does anyone know where the timeout parameter set?
Has anyone experienced polling issue like this before and how did you resolve?
SAP referred to the SAP note 1078420 - XI/PI JDBC Adapter: Setting JDBC driver properties for DB which is for Oracle, but this will give an idea of what timeout parameters SAP are asking about.
Extract of the note is below:-
Symptom
This note gives an option to set JDBC driver properties while acquiring a DB connection. When connecting to DB using JDBC adapter there are instances
where DB connection take a long time to establish connection. Some times call made to Driver will hang permanently. Setting driver properties would resolve this problem.
More Terms
Connection timeout, time out, query timeout
Cause and Prerequisites
Solution
In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any
such property would have to contain prefix 'driver:'(with out quotes) For example, for Oracle Database JDBC thin driver 10.2.0.3 version, the
property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use
oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows:
driver:oracle.jdbc.ReadTimeout 1000
driver:oracle.net.CONNECT_TIMEOUT 1000
(The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds)
Refer to your DB documentation/ JDBC driver documentation on this. Please note that properties can vary from each driver version. For instance, some
of properties of Oracle JDBC thin Driver 10.2.0.3 properties may not be present in older version drivers. Please contact DB vendor for the complete
list of driver properties. In addition to above, we also provide another parameter for query time out.
sqlquerytimeout (prefix 'driver:' is not required) is the parameter that is to be used for SQL query time out. This is case-sensitive and should be
configured as positive integer value in seconds(greater than 0).
Any help on this would be much appreciated.
With regards,
StevenHello,
I am not talking about the XI timeouts. But the timeouts which can be used to get the connection timeouts for DB2/AS400 databases.
So please provide that information.
THanks,
soorya
Maybe you are looking for
-
Dear Expert, I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Chan
-
Open excel files in multiple instances
When ever i open the excel files it opens as different windows of the same instance . Is there any way to open in multiple instances of excel ... I saw some answes in forums which says about about unchecking 'Ignore other application that use DDE' .
-
3 or more displays...?
I have read in numerous places within Apple's documentation and seen in their videos the use of two (2) displays... but is Aperture capable of utilizing 3 or more displays effectively? I currently run four (4) displays; three (3) 20.1" Flat-Panel and
-
SELECT LIST throws error for WHERE CLAUSE
Hi All I am struck with, what looking like a trivial error, but I don't know how to settle it down. I am new to Apex (3.1). I am experimenting with. I have Oracle 10g running on Windows. I have a dropdown item in one of my pages (SELECT list). I am t
-
Message When Trying to Open Indesign
Every time I try to open Indesign I get the message, "You can't open the application "Adobe InDesign CC 2014" because it is not responding." I tried uninstalling and reinstalling indesign multiple times and that does not help.