Strange delay in database connections

We are witnessing a strange delay when our JDBC client tries to make 4 connections to the database. The first connection takes 27 seconds (sometimes more) and 3 other connections are less than 1 second. As you can see in the ourJDBCclient log number 0 started at 09:09:11 connection request. He hit the listener at 09:09:11, and a strange gap of 27 seconds before ourJDBCclient reports a successful connect at 09:09:38 on the second line of the ourJDBCclient newspaper. In the source code, open connections are called right after the other. No idea where delay could come from?

We run Oracle 11.2.3 EE server on Linux 2.6.18 - 92.el5

Journal of ourJDBCclient:
February 28, 2013 * 9:09:11 * AM paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: opening connection: jdbc:oracle:thin:@ourserver.ourdomain.com:1521:oursid, OURJDBCCLIENT
February 28, 2013 * 9:09:38 * AM paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: successfully connected to the database (number 0 connection)
February 28, 2013 09:09:38 paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: opening connection: jdbc:oracle:thin:@ourserver.ourdomain.com:1521:oursid, OURJDBCCLIENT
February 28, 2013 09:09:38 paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: successfully connected to the database (connection number 1)
February 28, 2013 09:09:38 paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: opening connection: jdbc:oracle:thin:@ourserver.ourdomain.com:1521:oursid, OURJDBCCLIENT
February 28, 2013 09:09:38 paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: successfully connected to the database (number 2 connection)
February 28, 2013 09:09:38 paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: opening connection: jdbc:oracle:thin:@ourserver.ourdomain.com:1521:oursid, OURJDBCCLIENT
February 28, 2013 09:09:38 paradigm.ems.dbobjects.implementations.JDBC.DBObjectConnectionHandler openConnection FINE: successfully connected to the database (number 3)

Listener.log:
February 28, 2013 * 09:09:11 * (CONNECT_DATA = (SID = oursid) (CID = (= JDBC Thin Client PROGRAM) (HOST = __jdbc__) (USER = ourjdbcclientuser))) * (ADDRESS = (PROTOCOL = tcp (PORT = 56495))(HOST=10.0.10.1)) * establish * oursid * 0
February 28, 2013 09:09:13 * (CONNECT_DATA = (SERVICE_NAME = othersid1.ourserver.ourdomain.com) (INSTANCE_NAME = othersid1) (CID = (PROGRAM = oracle) (HOST = qa001.ourdomain.com)(USER=oracle))) * (ADDRESS = (PROTOCOL = tcp (PORT = 47848))(HOST=10.0.10.34)) * establish * othersid1.ourserver.ourdomain.com * 0
February 28, 2013 09:09:16 * (CONNECT_DATA = (SERVICE_NAME = othersid1.ourserver.ourdomain.com) (INSTANCE_NAME = othersid1) (CID = (PROGRAM = oracle) (HOST = ourserver.ourdomain.com)(USER=oracle))) * (ADDRESS = (PROTOCOL = tcp (PORT = 38159))(HOST=10.0.10.35)) * establish * othersid1.ourserver.ourdomain.com * 0
February 28, 2013 09:09:22 * service_update * othersid1 * 0
February 28, 2013 09:09:32 * (CONNECT_DATA = (SERVICE_NAME = othersid1.ourserver.ourdomain.com) (INSTANCE_NAME = othersid1) (CID = (PROGRAM = oracle) (HOST = ourserver.ourdomain.com)(USER=oracle))) * (ADDRESS = (PROTOCOL = tcp (PORT = 38165))(HOST=10.0.10.35)) * establish * othersid1.ourserver.ourdomain.com * 0
February 28, 2013 09:09:37 * (CONNECT_DATA = (SERVICE_NAME = othersid1.ourserver.ourdomain.com) (INSTANCE_NAME = othersid1) (CID = (PROGRAM = oracle) (HOST = ourserver.ourdomain.com)(USER=oracle))) * (ADDRESS = (PROTOCOL = tcp (PORT = 38166))(HOST=10.0.10.35)) * establish * othersid1.ourserver.ourdomain.com * 0
February 28, 2013 * 09:09:38 * (CONNECT_DATA = (SID = oursid) (CID = (= JDBC Thin Client PROGRAM) (HOST = __jdbc__) (USER = ourjdbcclientuser))) * (ADDRESS = (PROTOCOL = tcp (PORT = 56496))(HOST=10.0.10.1)) * establish * oursid * 0
February 28, 2013 * 09:09:38 * (CONNECT_DATA = (SID = oursid) (CID = (= JDBC Thin Client PROGRAM) (HOST = __jdbc__) (USER = ourjdbcclientuser))) * (ADDRESS = (PROTOCOL = tcp (PORT = 56497))(HOST=10.0.10.1)) * establish * oursid * 0
February 28, 2013 * 09:09:38 * (CONNECT_DATA = (SID = oursid) (CID = (= JDBC Thin Client PROGRAM) (HOST = __jdbc__) (USER = ourjdbcclientuser))) * (ADDRESS = (PROTOCOL = tcp (PORT = 56498))(HOST=10.0.10.1)) * establish * oursid * 0
February 28, 2013 09:09:40 * service_update * othersid1 * 0
February 28, 2013 09:09:40 * service_update * othersid1 * 0
February 28, 2013 09:09:42 * (CONNECT_DATA = (SERVICE_NAME = othersid1.ourserver.ourdomain.com) (INSTANCE_NAME = othersid1) (CID = (PROGRAM = oracle) (HOST = ourserver.ourdomain.com)(USER=oracle))) * (ADDRESS = (PROTOCOL = tcp (PORT = 38169))(HOST=10.0.10.35)) * establish * othersid1.ourserver.ourdomain.com * 0
February 28, 2013 09:09:47 * (CONNECT_DATA = (SERVICE_NAME = othersid1.ourserver.ourdomain.com) (INSTANCE_NAME = othersid1) (CID = (PROGRAM = oracle) (HOST = ourserver.ourdomain.com)(USER=oracle))) * (ADDRESS = (PROTOCOL = tcp (PORT = 38170))(HOST=10.0.10.35)) * establish * othersid1.ourserver.ourdomain.com * 0

Note that you referred, stipulates however a fix in 11.2.0.3 - so perhaps Oracle has of a workaround in this version? Or a better way to do what to do.

This score gave strace results where socket connect() calls are made to (DNS?) IP addresses on port tcp 53 (DNS service port). That seems to be the problem... However, the note provides more technical details.

And seeing that 11.2 is widely used and not widely, this occurs, it means something different in your installation and/or the environment.

It would also be that this note has nothing to do with the question that you have, apart from sharing similar symptoms.

I'd still go to isolate the error using SQL * more than the client (with debugging SQL * Net tracing on). Once the error can be triggered reliably somehow, then I turn on the SQL Server side * Net / debug tracing listener and resort to using commands like lsof and strace.

You can also file an SR with Oracle support and let them provide you with clear instructions of what to do in order to provide useful diagnostics to solve the problem.

Tags: Database

Similar Questions

  • Strange delay on starting an exe with DAQmx

    I see a very strange delay when launching a program that loads a LabVIEW generated DLL that uses DAQmx. I also see the same thing on a LabVIEW EXE and maybe on a loading a LabVIEW VI that calls the DLL LabVIEW. The funniest, it is this delay only occurs when the sensors are connected. In this case, I use two 4462 s with approximately 50 feet of cable with a bit of connections between the two and accels IEPE. I don't see a delay when the sensors directly connected with a few feet of cable, or when the sensors are not connected to the cable.

    I will try to narrow the problem down to a particular card or a detector of tomorrow. The delay lasts 2 minutes and occurs before appears vi loading screen. At the launch of the program in C that loads the dll of LabVIEW on launch, basically I get no feedback, but the process appears in Task Manager. When you load a vi in LabVIEW to a project that calls the dll, I get a cursor busy until the loading screen screw rises. So the question is: what happens before that appears the VI loading screen?

    This is all before my code runs, so I don't see how any configuration software comes into play.

    Any thoughts?

    Chris


  • problem to generate an installation program for a project of database connectivity

    Hello

    I create a project using labview 2011, this project all simply select, edit and insert a file of access database by using the database connectivity Toolkit.

    There is no problem when I run this labview project, everything is perfect, but when I create a Setup program to run this project from another computer, I found something strange...

    the project do not insert or update the database, but it may choose the form, so I can say that the connection is good, so can any body tell me what is the problem.

    Help, please

    Thank you


  • Database connection - error of creation of the admin user Setup. No route to host

    During step 2: configuration of the database connection we select the "internal database".
    After a short delay, we get a message saying "error of creation of the admin user. No route to the host.
    I have been more before DNS records and back and everything seems in good condition.
    Can someone point me in the right direction to solve this error?
    HW-Error.jpg

    This is an SSL certificate error. Have you changed the default self-signed SSL certificates?

  • I can actually achieve with database connections?

    This may seem like a strange question, but once I set a MySQL connection in Dreamweaver, which actually do with it? Let me clarify what I do:

    I just discovered that we can define the MySQL connections when a PHP/MySQL site is defined. I'm used to manage my databases via MySequel or phpMyAdmin. To access the databases in rock Dreamweaver!

    So now I have a connection, I can read all my paintings... but I can't do anything with them. I can't add data, I can't change the data - all I can do is look at what is already there. I can click on the 'embed code' or the 'Show data' option, but they do not seem to do something useful: the first glue option only what is highlighted in my code, and the second brings up a window that displays data.

    What Miss me? Can I change the data somehow and just could not find the option yet? Or what else can I use my database for?

    For example, export or import data, synchronization with another host of database/database, etc.?

    Database connections are used to develop the data by web sites. So, if you are familiar with the side server script you can write code to make your site dynamic. In the past, DW had server behaviors which has simplified the process of creating web forms and displays for insert, update and select database tables, but these have been deleted because the code was never quite up to standards in force.

  • Database connectivity Kit

    Hello

    I use the database connectivity toolkit to create a Microsoft access database.  I'm new to the Toolbox.  I've read the tutorials online and following the instructions.  I created an empty Microsoft Access file with an .mdb extension.  I also created a link to data .udl with tools > create data... in LabView and linked to the mdb file.  My code VI is attached.  I get the following error when I run the program (also attached).  I don't know what causes this error.  I appreciate your help.

    Thank you

    You can not create a table with the name "table".  It is a key word.

  • Reading large data using the database connectivity

    Hello

    I use the Labview database connectivity toolkit to connect to my database sqlitev3 (I'm using ODBC). I just have to connect to the database (using the block of open_connection) and read all the values inside (using the select_data block). The problem is that my database is huge (about 2 GB), and I get this error:

    . VI NI_Database_API.lvlib:Rec FETCH Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCallerADO error: 0x8007000E Exception occurred in provider: not enough memory is available to complete this operation. in .vi NI_Database_API.lvlib:Rec Fetch Recordset Data (R)-> NI_Database_API.lvlibB Tools Select Data.vi-> real_web.vi-> real_web.vi.ProxyCaller

    What should I do? It seems that he reads the data in the memory and it doesn't have enough space for it. When I read the data I want to write to a file.

    Read it in pieces. Write each piece to the file, and then repeat with the next segment. Try to read and process all data in one shot is not very practical and you found out will not work.

  • How to send the SQL for SQL Server statement and return data without using database connectivity Kit?

    Hi, I tried to figure out how to extract data from my SQL Server databases and reading messages and to do some tests with examples, I can get data connection type in my SQL server, but so far nothing helps.  Is it possible to get data from a SQL Server database without using the database connectivity Toolkit?  and if so, how?  are there whitepapers and/or examples of this?  So far, I can't find something that works.  Thank you.

    Jesse - what is your reason for not using the database connectivity Toolkit? It is by far the best way to recover the data.

  • Problem installation database connectivity Kit

    My company manufactures in several factories around the world.  I have a problem in China and that you want to debug, and because the code is distributed in the form of exe, it is a problem.  My approach was to install a trial license of 30 days of LV2010 SP1, intend to withdraw when debugging is done.  So far, so good.  The problem is that the application requires the database connectivity Toolkit.  I downloaded a copy and tried to install.  It says it can't install because LV2010 is not installed.  Is it because of the eval license?

    If I wanted to rewrite hundreds of applications running, I could do that, but what I want is to install the DB Toolkit for a bit of troubleshooting.

    If NEITHER would alter the conditions on their license server, I would not have these problems.

  • Database connectivity error: ADO...?

    I'm trying to export data in an Oracle database local using the Toolbox Database Connectivity.

    (I created my TEST table in the local Oracle database, I can access, write, read, etc. using SQL.) I also have the .dsn file that works with SQL)

    I get the following error:

    I found the problem. Not associated with LabVIEW (Duh...).

    Basically I have two copies of .tns names in two different folders. One of the files that I used to make a connection

    to the database did not have the correct login info and the other did. One who did was one I used.

  • database connection status indicator

    I want to put something on the front of my program which will indicate the status of database connection. I think to ask at the tables in the list (it should be displayed), if the connection is good, it shows error. I tried and I think it works very well, but I don't know if it's the right way to do it, there may be better ways there, could someone point out he for me?

    Best regards

    You certainly don't want to open and close the connection. Maybe it will fail, but the 'real' connection is good. Maybe the real one has failed but this other works opening and closing. This could happen if the server has the maximum number of connections.

    Your connection is little go far?

    A simple method to check the connection just must have a loop that executes periodically a meaningless statement.

  • Calling stored procedures with parameters with the database connectivity Toolkit

    Hi all

    I'm new to the forum and struggling to find a solution to a particular problem I have in this respect, using the LabVIEW Database Connectivity Toolkit on a project, I am currently working on my work.  I have a database in which I tables and stored procedures with parameters.  Some of these stored procedures have input, output and return parameters.

    I tried to follow this example, but to no avail: http://digital.ni.com/public.nsf/allkb/07FD130746083E0686257300006326C4?OpenDocument

    Such a stored procedure I am working on the implementation is named "dbo.getAllowablePNs", running "SELECT * from DeviceType" (DeviceType is the table).  In this case, it requires no input parameter, it has an output parameter that generates the table [cluster] and has a return parameter that returns an integer value (status code for execution) to show if an error occurred.  The DeviceType table has 3 columns; ID (PK, int not null), PN (nvarchar ((15), null) and NumMACAddresses (int, null).)  I have surpassed many examples and I talk to the support OR try to implement this and similar procedures stored in LabVIEW but have not been successful.  I am able to connect to the database with the VI of open connection without error, but spin in some confusion as a result of this step.  I then try to use the VI of parameter query create to call the stored procedure and set the parameters.  I guess I would then use the Set parameter value for each parameter that is connected to the entry of parameters on the previous query with parameters VI VI?  I am also having some confusion during and after these steps as well.  I would greatly appreciate advice or suggestions that anyone could have in this situation because I am not a SQL expert.  Also, I would be happy to provide more information that might be useful.

    Kind regards

    Jon

    Here's what I use to do this.  I think I had to change him create parameterized query VI for him to work.  There is a post on the forum about this somewhere.

  • Database connectivity broken vi Toolkit

    Hi all

    I upgraded from LV 8.5 to 8.6 (windows XP platform) a couple of weeks and have had no problems until today when all of sudden my vi toolkit database is coming from broken, with: "one or more of the inputs needed for this function are not wired or are wired incorrectly. Display the context-sensitive Help window to see what should be the connections to this function. ' Mistakes however is not the case on all my vi using the objects in the Toolbox.

    Measures taken so far without success:

    1 mass compilation of my vi

    2 mass compilation of database Toolbox

    3 re install Database Resource Kit

    4 mass compile the directory vi.lib

    5 in the old knowladge base article Document ID: 2RO7J544, assured the latest microsoft MDAC is installed.

    Any help is appreciated as we use this receptive toolkit.

    Thank you

    Chris

    PLATES

    Hi Chris,

    Thanks for the reply and I hope that your well.

    I need to try to understand something, when you say that the LabVIEW 8.6 upgrade have you improved the Toolbox?

    Toolkit LabVIEW Database Connectivity 1.0.2 is for LabVIEW 8.6. If, on the other hand your trying to use LabVIEW 8.6 with DC Toolkit 1.0.1 so I think that they are not officially compatible. However, these links may be of interest knowledge base: (after all, they are just screws). However, to say this - if you read the Readme for the new toolkit, that many things have changed for LabVIEW 8.6 - so becareful.

    You will have to manually copy all the files in one version of LabVIEW to another. Use the following instructions to achieve:

    1. Install the database connectivity toolset to the version of LabVIEW, say X.
    2. Copy the following files/directories in the directories right in the latest version of LabVIEW, say Y.
      • Copy the data directory from \LabVIEW X\vi.lib\addons\ to \LabVIEW Y\vi.lib\addons\
      • Copy the file database.llb \LabVIEW X\project\ to \LabVIEW Y\project\
      • Copy the data directory from \LabVIEW X\examples\ to \LabVIEW Y\examples\

    OR also check this,

    Installation of toolkits for use with several Versions of LabVIEW:

    http://digital.NI.com/public.nsf/allkb/58BE852CB35237C786256A290079DF39?OpenDocument

    Other questions that you may have encountered,

    Database connectivity tools claims are a polymorphic Subvi Broken

    http://digital.NI.com/public.nsf/allkb/0FA97221637E74CA86256C7C005069A5?OpenDocument

    "Update to the latest MDAC will solve this problem."

    I would also check that you have installed the Toolkit for LabVIEW 8.6 - toolkits are now specific for labVIEW 8.6. Then maybe try to reinstall and the Toolbox for LV8.6.

    Hope this helps and please let me know (Please specify a little more).

  • I use windows 7 64-bit edition Home premium and I cannot connect to access database in java program.it shows error database connection driver not installed.

    I am using windows 7 64 bit home premium I installed ms office 2007 and did all the settings.
    but I am unable to connect to the Access database in java program.it shows error database connection driver not installed.
    Please give me the solution...

    Hello

    I suggest you to ask your question about Java programming forums on the subject.

    https://forums.Oracle.com/Forums/Forum.jspa?forumid=922

    You can also ask your question on the forums to access.

    http://answers.Microsoft.com/en-us/Office/forum/access?page=1&tab=all&TM=1349633636662

  • Drop database connectable to including the file system data sheets files

    I did experiments with the connectable Oracle12c to database functionality and have noticed that when I "drop database connectable to pdb1 including datafiles', I get the message that the database snap-in has been dropped."  I also see that all files in the tablespace for the PDB except the SYSTEM data file have been deleted.


    I want to remove the folder that has been used for the pluggable database after that the PDB fell, but cannot because the file SYSTEM data is left behind.

    Is it possible to delete the data file SYSTEM for a pluggable database once he fell?  Or this part forever from the database of the container?

    Thank you

    This forum works on a Server Windows 2012.

    Thanks for the Bug information.  There is no error in the alert.log file, but I found a trace file with:

    ORA-01265: cannot remove the D:\ETC\ETC\SYSTEM01 DATA. DBF

    ORA-27056: could not delete file

    OSD-04024: cannot delete the file.

    S/O-error: (32 OS) the process cannot access the file because it is being used by another process.

    This seems to be the same problem as described in bug 17659954, so I can follow in investigating the recommendations of bug

    Thanks again

Maybe you are looking for