TCP connection timeout

Hello

I'm using utl_tcp to send information. My problem is, it takes about 21 seconds for the connection to time out, when there was no host. So no read, no write, only bulding the connection takes 21 seconds time-out, and I want to put this to a lower value, if it is possible. I have read the documentation and google much, found some tips, which corresponds to the sqlnet.ora, but those who do not seem to work.

Thanks for the answers in advance

I don't know if the sqlnet.ora setting you mention applies to all, because this isn't sqlnet, but pure tcp/ip.
So I still have doubts it is a problem of Oracle.
In any case, Oracle is dependent on the OS, and you definitely need to isolate if it's operating system
Which means
Ping the FQDN and see what happens (FQDN = fully qualified domain name)
Ping the IP and see what happens, noting any differeces (to isolate the DNS is not the cause)
Traceroute serve the FQDN.

My belief is that it will be too slow to.

-------------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Error of TCP connection when sending MODBUS for WAGO controller 750-881 orders after 113655 bytes of data have been sent

    Hi all

    I'm new in the world of labview and trying to build a VI that sends commands to a controller of the WAGO 750-881 at regular intervals of 10 ms.

    To set each of the WAGO comics at the same time, I try so to send the Modbus fc15 command every 10ms using Labview standard TCP write module.

    When I run the VI it works for about a minute before receiving an error message 56 telling me the TCP connection has expired. This strange thought, I decided to record the number of bytes sent via the TCP connection while running the program. In doing so, I noticed that the link broken after exactly 113655 bytes of data have been sent each time.

    Thinking can I have sent too many messages, I increased the delay of the loop of 10ms to 20, 100 and 200 ms, but the error remained. I also tried to play with the TCP connection timeout and the writing TCP timeout, but none of these had no effect on the problem.

    I do not see why this error occurs, such as the program works perfectly up until what brand 113655 bytes.

    I've attached a screenshot of the base VI (simply showing a MODBUS command sent every second) and a more advanced VI (where I am able to control each of the WAGO manually by setting a frequency at which the DO is to switch between ON and OFF).

    If anyone has any ideas on where the problems lie, or that I could do to debug more program this would be greatly appreciated.

    AvdLinden wrote:

    Hi ThiCop,

    Yes, the error occurs after exactly 113655 bytes each time. Time-out control, I would like to use is 10ms, but even that will rise to 1 s or 10s does not error, which leads me to believe that's not the issue (as well, do not add any delay in the while loop, so let it run at the maximum speed showed that the TCP connection is able to send all the bytes 113655 in less than 3 seconds again directed towards control of time-out) is is not the issue here).

    I tried the suggestion of Marco but having difficulty to translate the string returned in a readable string (rightnow the answer given is "-# +" ' ").

    As for your second suggestion, I've implemented something similar, where I created a sub VI to establish a TCP connection, send a message and then close the connection. I have now to build each message and then send the string to the Subvi, which sends the command to my application successfully. While not the most elegant method to solve the problem, it solves the problem of time-out, which means that I am able to send as many orders as I want. So in this sense, the problem has been resolved.

    If you have advice on how to properly read the TCP read the output, I want however to see if I could not get my first program to work because it is slightly more robust in terms of timing.

    MODBUS RTU TCP is a binary protocol, as you show in your base VI, where you put in the form the data stream using byte values. So you have to interpret the returned answer accordingly with the Modbus RTU spec in the hand. Now what is probably happening is that the connection is suspended after a while because you do NOT read data from the device sends as response to your commands. The TCP/IP stack cushions these bytes and at certain point of overflow internal buffers and the connection is blocked by the battery. So to add playback of TCP in strategic locations (usually after each entry) is the right solution for this. Is there a reason any that you do not use the PROVIDED Modbus TCP library?

  • Good method to reset the tcp connection after timeout error

    I have an application that I build that communicates with a Modbus TCP device.  If a communication occurs error I wish I could reset it TCP communication.  What I have is a control that raises an event when pushed.  In this case, I have a sequence that closes first the tcp connection and then opens a new connection.  My application starts and works very well.  To test the reset function, I removed the ethernet cable from the camera and waited until a timeout occurs.  I plugged the cable reset back to and pushed my control. Sometimes the reset will take place, but most of the time I'll get a timeout in the TCP vi open error.  After that, the only way I can establish communications must leave my application, disable and then enable the network device.  Then, when I restart my application I have communication with my camera.

    Any help would be appreciated on how I should be reset my TCP connection.

    Thank you

    Terry

    Terry S of a. in writing:

    I've attached an example vi (LV10) that shows just the connection TCP and Reset.  An error occurs when you try to run the open in the event of reset tcp protocol.

    As writing that your code should be fine. There is nothing inherently wrong with it. However, depending on the device, you communicate with you can try to restore the connection too quickly once you have closed the connection. The device allows multiple connections to it and may require some time to clean up the things on his end after you close a connection. An experimental basis try wait little time between TCP and the TCP Open shut it down. If possible you can try using Wireshark to see what is happening on the network. It may be useful to diagnose what is happening.

  • How to prevent a TCP connection that is closed when the VI who opened it terminated.

    Hello everyone.

    I'm developing an application based on the servers and clients communicate through TCP in LabVIEW 2012.

    When the Server/client opens a TCP connection, it starts an asynchronosly running "Connection Manager", to which connection reference that takes so all communication happening. It all works very well.

    -J' have a situation where a client connection manager can be informed of another 'new' server. I would like to open the connection (to see if it is still valid) and then pass this reference of connection to the main client code to spawn a new connection manager. This avoids lock me up the Client code main with an ish timeout if the 'new' server does not really accept connections.

    The problem is that if the connection manager that opens the connection to the 'new' server is stopped, then it seems to destroy the reference he opened. This means that the other connection manager that has been happily character with the 'new' server has closed TCP communications (I get an error code 1 on an entry).

    I created an example to illustrate the issue which should be used as follows:

    1 run server.vi - he will listen for a connection on the specified port on his comics.

    2. run Launcher.vi CH - it will open a connection to the server and pass the TCP reference to an instance of connection Handler.vi, which he started.

    3. the connection manager needs to send data to the server

    4. stop the Launcher.vi CH

    5. the will of Handler.vi connection error.

    Any suggestion would be appreciated.

    See you soon

    John

    Do not perform the opening and closing of the TCP connection in Subvi. Do this to master VI.

  • ORA-12170: TNS: Connect timeout occurred on the same host as DB

    Hello

    I just installed Oracle on mu Ubuntu 12.4 following the instructions here:

    http://www.Makina-corpus.org/blog/HOWTO-install-Oracle-11g-Ubuntu-Linux-1204-precise-pangolin-64bits

    and here:

    Install Oracle 11 GR 2 on Ubuntu 12.04 of the databases

    However, when I try to log on to the database, I created during installation using sqlplus, it hangs for a minute or two until it-error:

    ORA-12170: TNS: Connect timeout occurred.

    My tnsnames.ora:

    MYSIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = my_host) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = mysids)
    )
    )

    I checked that the listener is running and listening to the post 1521:

    s$ sudo netstat - tulpn | grep 1521

    tcp6 0 0: 1521: * LISTEN 16732/tnslsnr

    $ ps - ef | grep 16732

    Oracle 16732 1 0 06:58?        00:00:00 /opt/oracle/product/11.2.0/dbhome_1/bin/tnslsnr EARPHONE-inherit

    Thoughts?

    Finally managed to do run. The problem was that I have not read rights to tnsnames.ora.

  • connect-timeout not honored when custom provider address is used

    My configuration file contains this excerpt:

    <>tcp-initiator

    <>remote addresses

    <-addresses provider >

    < class name - > * name redacted .NET class * < / class name >

    < / provider >

    < / remote-address >

    < connect-timeout > s 5 < / connect-timeout >

    < / tcp-initiator >

    The .NET (application Tangosol.Net.IAddressProvider) class currently resolves to a single address - 127.0.0.1:9101.  This address is not valid, and there is nothing on it to listen.  However, it tries to connect to the remote cache and will sit and wait forever since the timeout period (5 seconds above) is not honored.

    I discovered that by specifying addresses explicitly instead of using a provider:

    <>tcp-initiator

    <>remote addresses

    > the socket address <

    < address > 127.0.0.1 < / address >

    < port > 9101 < / port >

    < / socket-address >

    < / remote-address >

    < connect-timeout > s 5 < / connect-timeout >

    < / tcp-initiator >

    has resulted in a delay of 5 seconds, then a Tangosol.Net.Messaging.ConnectionException is thrown.  It's a good thing, and you like.  The details of the exception are (additional information: could not establish a connection to one of the following addresses: [127.0.0.1:9101]; ensure that the configuration of addresses item "remote control" contains an address and a port of a TcpAcceptor running)

    Why not using my custom .NET class that implements IAddressProvider respect the timeout, I put in the config file?

    (I can post the code for the .NET class that implements IAddressProvider, but I don't think it's relevant)

    Hello

    Your code may be relevant.

    According to the IAddressProvider, you must first return "127.0.0.1:9101", on first convocation NextAddress(), but null during subsequent calls.

    If you come without return "127.0.0.1:9101" of NextAddress(), consistency will loop infinitely try to reconnect to this address.

    Suppliers of custom addresses are quite delicate in their responsibility to manage black lists of rejected addresses and without her infinite reconnect loop is possible.

    Kind regards

    Alexey

  • ORA-12170 TNS: Connect timeout occurred

    Hi Experts,

    While trying to connect via TOAD, sqldevloper to my database, I get the following error: -.

    ORA-12170 TNS: Connect timeout occurred

    The listener.ora file content: -.

    [oracle@gdlogidb1 admin] $ cat listener.ora

    listener.ora # Network Configuration file: /mnt/PRDdata/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LOGDEV =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1525))

    (ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = gdlogidb1.tireco.com))

    )

    LOGDEV =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1525))

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.18)(PORT = 1525))

    )

    ADR_BASE_LOGDEV = / mnt/PRDdata/oracle

    The listener status: -.

    [oracle@gdlogidb1 admin] $ lsnrctl status LOGDEV

    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on August 29, 2013 03:13:15

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1525)))

    STATUS of the LISTENER

    ------------------------

    Alias LOGDEV

    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production

    Start date August 29, 2013 03:05:32

    Uptime 0 days 0 h 7 min 43 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /mnt/PRDdata/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora file

    The listener log file /mnt/PRDdata/Oracle/diag/tnslsnr/gdlogidb1/logdev/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1525)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 1525))(HOST=192.168.2.18)))

    Summary of services...

    Service 'logdev.tireco.com' has 1 instance (s).

    "Logdev" instance, State LOAN, has 1 operation for this service...

    Service 'logdevXDB.tireco.com' has 1 instance (s).

    "Logdev" instance, State LOAN, has 1 operation for this service...

    The command completed successfully

    TNSping works fine too.

    [oracle@gdlogidb1 admin] $ tnsping LOGDEV

    AMT Ping utility for Linux: Version 11.2.0.2.0 - Production on August 29, 2013 03:35:14

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:

    /MNT/PRDdata/Oracle/product/11.2.0/dbhome_1/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = gdlogidb1.tireco.com) (PORT = 1525)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = logdev.tireco.com)))

    OK (0 msec)

    I can connect it is, but the problem occurs when I try to connect using TOAD or Sqldevloper.

    [oracle@gdlogidb1 admin] $ sqlplus system@LOGDEV

    SQL * more: Production of liberation 11.2.0.2.0 Thu Aug 29 03:32:15 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Enter the password:

    Connected to:

    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production

    SQL > user sho

    The USER is 'SYSTEM '.

    Content of the sqlnet.ora: -.

    [oracle@gdlogidb1 admin] $ cat sqlnet.ora

    sqlnet.ora # Network Configuration file: /mnt/PRDdata/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora

    # Generated by Oracle configuration tools.

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    ADR_BASE = / mnt/PRDdata/oracle

    My Version of operating system is:- 11.2.0.2.0

    Platform: -.

    Gdlogidb1.tireco.com 2.6.39 - 400.109.4.el6uek.x86_64 #1 SMP Linux kill Jul 22 11:44:00 CDT 2013 x86_64 x86_64 x86_64 GNU/Linux

    Hello

    The error was taken neat but thanks for the reply. The quick fix is to disable the firewall.

    First login as a superuser.

    # service iptables save
    # service iptables stop
    # chkconfig iptables off
    e

    Thank you

    Ankur

  • Customer Oracle TNS connect timeout problems

    Hi all.

    I tried to connect the free versions of trial and beta to Benchmark Factory by quest software on my laptop to windows 32-bit on my desk running oracle linux.

    With the help of people here, I checked my Oracle database allows incoming connections DB set up server with a routable IP #

    The application that I use on my laptop constantly gives me an error ORA-12170: TNS connect timeout...

    The following steps have been taken during the installation of the client software...

    -------------------------
    1. factory reference download and install
    2 tries to connect to the database on the server machine, but regarldess oracle which has been entered I got a windows error saying not found Oci.dll
    3. I downloaded the zip of Oracle Instant client for 32-bit windows
    4 extract the instant client download files in the bin folder of the reference plant. (this fixes the error not found oci.dll)
    5. When you are using a direct connection, I specified the following details:

    Username: linux system user name
    Password: my password of linux
    Host: 192.168.1.9
    Port: 1521
    SID: orcl
    connect as: sysdba
    connect using: Instant customer (it was the only option in a drop down)
    -------------------------------------------

    When I try to connect I get the AMT connect timeout error.

    Anyone has any ideas what I did wrong or not done?

    Any help would be appreciated

    Matt

    Published by: user9200169 on August 16, 2010 15:53

    Published by: user9200169 on August 16, 2010 16:00

    When everything has failed, read the Fine Documentation

    http://www.Oracle.com/technetwork/database/features/OCI/IC-FAQ-094177.html

    "How can I specify the connection in Instant Client mode strings?
    All methods NET naming Oracle does not require the use of ORACLE_HOME or TNS_ADMIN (to locate the configuration such as tnsnames.ora or sqlnet.ora files) work in Instant Client mode. In particular, the connection string can be specified in the following formats:

    A SQL Connect URL string in the form:

    Host: [port] [service name]

    such as:

    dBase-Server - 5:4321 / ORDERS

    As a pair of keyword / value Oracle Net. For example:

    "(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = dlsun242)
    (PORT = 5521))
    (CONNECT_DATA = (SERVICE_NAME = bjava21))) »

    Naming methods that require TNS_ADMIN locate configuration files continue to work if the value of the TNS_ADMIN environment variable.

    If the TNS_ADMIN environment variable is not defined and TNSNAMES entries for example, inst1, are used, the variable ORACLE_HOME must be set, and the configuration files are supposed to be located in the directory of $ORACLE_HOME/network/admin.

    Please note that the ORACLE_HOME variable in this case is only used to locate the Oracle Net configuration files, and any other component of Client Code Library (OCI, NLS and so forth) don't use the value of ORACLE_HOME.

    The adapter unreserved or empty connection strings are not supported. However, another way to use the empty connection string must affect on UNIX TWO_TASK environment variable, or the LOCAL Windows variable, a tnsnames.ora entry or a pair of keyword / value Oracle Net. If LOCAL or TWO_TASK is set to a tnsnames.ora entry, then the tnsnames.ora file must be loaded by setting ORACLE_HOME or TNS_ADMIN.

    "Modified: 8 April 04 Ref #: ID-4428"

  • Stop the connection timeouts occur - want the page wait

    I run several tab that monitor various tools. These pages will refresh. Pages must wait each other finish before you can start.

    In version 28 it was beautiful. The page just wait indefinitely and kicked in a previous page after doing its thing.

    Now in version 29 he comes back with a message "connection timed out" after a few minutes.

    I adjusted

    Network.http.connection - timeout
    Network.http.pipelining.Read - timeout

    for values but the problem still occurs. Any thoughts on how I can find the FF28 behavior?

    Try setting the http.response.timeout parameter. In the version 28, it had not been established. Version 29, it is located at 300 (5 minutes). Should help to move on to something much larger.

    See this blog entry:

    http://morgb.blogspot.com/2014/05/Firefox-29-and-HTTP-response-timeout.html

  • 63 error to TCP connection open in Simple data Client.vi when connecting to the network storage device.

    Hello

    I tried the simple data client and simple example of data server. I tried this example to connect to a NAS device. My laptop properly communicates with the device since I ping the address of the NAS device and discovered it works perfectly fine. Also, I put the static IP of my pc even as the NAS. So everything I've done. But when I run the program giving the ip address of a NAS device, it shows an error 63.

    Error 63 to TCP connection open in Simple data Client.vi

    Possible reasons: LabVIEW: serial port receive buffer overflow. = LabVIEW: the network connection was refused by the server.

    Why is happening. What can be done to solve this problem. Thanking you.

    vindsan wrote:

    What is the firewall of the SIN.

    Yes, it is very likely. Try disabling the firewall and try again. If the code works when you run the Server & client on your machine, but not when you run the server on your NAS and client on your machine (assuming you have entered the correct port for the NAS server), then it is very likely to be a firewall problem.

    vindsan wrote:

    Server that is listening is no longer VI also means what.

    Your VI server listens only once for a connection after receiving an incoming connection (or it expires after 60 years), he stops listening and the port will be more open for incoming connections - you must re - run the VI for another connection. With your code, you must run the VI server and then run the VI client in the 1960s, so it's not expire.

  • TCP connection does not work as EXE

    All,

    I have a RT and GUI from Windows application that uses the TCP protocol to communicate between vi. LabView 2011 PXI chassis

    Works fine when I run both programs. A program is a graphical interface (uses TCP connection open) to the title of 'My Computer', the other is a vi (in listening Mode, wait for connection) under "system RT.

    But, when I build each in an Application.exe and real-time Application, it is no longer fixed communication.

    Any ideas? Maybe a Build setting I'm missing?

    Thank you


  • How to get the IP address of the client when TCP connect on the server

    How to get the IP address of the client when TCP connect on the server.

    The only parameter obtained the login is the login ID.

    I assume you are using "Wait of TCP on the listening port" on the server. This returns the remote address and port (like out in option).

  • Read bit in the TCP connection

    Hello

    I'm trying to read data from TCP connection.

    As I understand it, I get a string as this login data.

    I need to play different songs in these data

    What will be the best way to do it?

    Thank you

    In this case, you will get a string of one character in the TCP/IP Read function. You said you want to see if, for example, the character ".<". the="" ascii="" code="" for=""><" is="" hex="" 3c,="" which="" corresponds="" to="" 00111100.="" thus,="" it="" sounds="" like="" you="" just="" need="" to="" make="" a="" comparison="" against="" a="" character.="" if="" you="" want="" to="" check="" a="" specific="" bit="" pattern="" then="" the="" easiest="" way="" to="" do="" this="" is="" to="" simply="" convert="" the="" string="" character="" to="" a="" u8="" and="" compare="" to="" a="" u8="" constant,="" like="">

  • Why the customer does not receive the 1 d array sent by the server via a TCP connection?

    I have attached 3 screws:

    1 PC.vi (server)

    2 xbee.vi (client)

    3 CreateSetupPacket.vi (it generates a table of numeric values)

    #1 is executed first, followed by #2.

    #2 tent initiates a TCP connection to #1.  As soon as #1 it detects a "login ID" is created.

    #1 tries to send a package of 'setup' to #2 by the construction of a table.

    The problem is the client of xbee VI gets 0 bytes or "" empty string back.  What Miss me?

    Note that I was running the two VI on the same PC.  And it worked because the IP addresses were set to localhost.

    I don't know if a Windows Firewall affect TCP/IP communication in the same PC.  It is possible, I don't know.

    Firewalls can certainly affect communication between different PC whehter is a firewall in the routers on the network or in the Windows Firewall.  It is therefore useful to check in one more.  But as you say, I see nothing wrong with the code.

  • How to pass the ID of TCP connection in Secondary VI

    Hello

    I'm going through a TCP connection ID in a secondary VI, but was not successful.

    Here's the function I used:

    I managed to spend other control values in the VI but not the code TCP conn.

    Are there restrictions or other ways that I should do?

    Best regards

    Ken

    Hi Ken,

    Is "reference" a TCP connection ID? If so, the reference directly to the Ctrl Val.Set phone invoke node. No property value of the reference needed.

    It really works with connection TCP IDs.

    Hope this helps,

    Daniel

Maybe you are looking for

  • How can I make orders save their State when the project is closed?

    I am currently working on the program for a compact RIO which will be used with a variety of instruments. Some data on each of these instruments calibration must be entered into the program via the controls on the front panel, so they can produce the

  • OfficeJet J4680: OfficeJet J4680 will not analyze the text

    All-in-one installation program does not scan option text (façade or Solution Center). I downloaded the full software package twice, with the same result.  I am using 8.1, also I tried compatibility for Win 7.  Are there any OCR software in this driv

  • rv042G multiple s on the same Wan ip

    I'm trying to help a client to remove an extra router on their network.  It lies between them and the outside world.  The customer has a routed IP address block.  I want to do is move the old router on the new router wan and always keep the old ips o

  • BlackBerry "BOLD" vs vs Storm 4 G Smartphones?

    I'm on my phone 8820 3rd in 9 months and I still always problems with it locking up. I am new phones and wanted expert advice 1 benefits between the Bold and Storm outside the touch screen? 2 BB considering a 4 G phone soon? 3. the iPhone seems to ha

  • ORA-29285: error writing file

    Hi, I'm trying to clear a table in a flat file, & provided the stored procedure using my Tom Kyte @ https://asktom.oracle.com/pls/asktom/f?p=100:11:0:NO:P11_QUESTION_ID:88212348059.It worked well at first, but now I always get the following error mes