Cx_oracle ping (OCIPing) hangs when connection to server lost

The cx_oracle ping function appears to be blocking and will wait forever when the connection to the database is broken but the socket still remains.
we're running cx_oracle 4.4 on an Oracle 11.1 server with python 2.5, and have a remote client pushing data to the server across a flakey link.
The basic structure of our python client is
db = cx_Oracle.connect()
while True:
try:
db.ping()
cursor = cx_Oracle.Cursor(db)
cursor.execute(query, params)
except:
print "DB error"
so the socket pointer will be there which is checked in the ping command, so it will pass that, but then it will attempt to issue a ping to the server which is where it hangs forever.
Any advice on the best way to get around this?

I would suggest to take this kind of question to the cx_Oracle developer himself here for an exact answer.

Similar Messages

  • Long hangs when connecting to server

    This has been a long-standing annoyance...
    We have an Xserve with 10.5 in the office.
    When I click on the "Network" icon in the sidebar on my Mac, it almost
    instantly displays a list of all machines on the nework.
    I then double click the Xserve's icon and the wait begins: first the
    beach ball followed after a while by a message window "Looking up
    server.local...".
    That continues for more than a whole minute until I'm prompted for my
    password (it's stored in the keychain) and finally a window pops up
    listing all the available shared folders/volumes on the server.
    Double-clicking any of them mounts it immediately on my Mac.
    Now I keep aliases for the volumes I need to mount regularly. One of
    them connects with only a short delay of around 15 secs and no password
    prompts.
    However a new alias I created today takes *several minutes* to mount the
    respective volume and that just doesn't seem right.
    What could possible cause these varied delays?
    Why does it do the "looking up" thing if the server can be seen in the
    network pane?
    Martin

    That's consistent with a DNS error and DNS timeouts (or maybe network or routing errors), and the use of the .local mDNS Bonjour domain implies no DNS is configured, and Mac OS X Server expects to have DNS. Put another way, set up DNS services, and get out of the .local domain. [Here's an explanation of configuring DNS services|http://labs.hoffmanlabs.com/node/1436]

  • 31.3.0 hangs when connecting to my IMAPS server (problem with intermediate certificates or SSL in general?).

    After update to 31.3.0 Thunderbird hangs when connecting to IMAPS server aie.de (intermediate certificates in chain). No error message is given, Thunderbird just hangs with out updating the subject lines of the inbox.

    It is a configuration problem of the courier imap ssl daemon, resolution is shown [http://xf.wiki.mithi.com/index.php/Error_observed_in_/var/log/messages_log,_imapd:_couriertls:_accept:_error:1408F10B:SSL_routines:SSL3_GET_RECORD:wrong_version_number#Resolution here]

  • I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".

    I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".  I could swear the last time I used cellular data you would see the signal in the upper left corner and I only see "no service" there, I am in a location where I know I should have service.  Is there something I should do to my IPAD?  I tried resetting, I tried clearing cookies and history in Safari (after reading a post n these discussions).  I don't know what to do next. My IOS version is 6.1.3.  I did go into Network from the general tab and I see it says "SIM not provisioned".    HELP and Thank you in advance.

    Hello Theresa818,
    Thank you for using Apple Support Communities!
    It sounds like the cellular data will not activate for some reason on the iPad.
    I found this article that will help you resolve this issue here, named iPad (Wi-Fi + Cellular Models): Troubleshooting a cellular data connection, found here http://support.apple.com/kb/TS4249
    Check for a carrier settings update.
    Update your iPad.
    Toggle the Cellular Data setting off and on under Settings > Cellular Data.
    Restart your iPad.
    Tap Settings > General > About. Locate the Carrier entry and make sure that your carrier is correct.
    If your SIM card has SIM PIN enabled, try turning it off: Tap Settings > Cellular Data > SIM PIN.
    Make sure you're in an area of good coverage. If the cellular data connection works in another area, contact your carrier to report the original affected area.
    Reset network settings: Tap Settings > General > Reset > Reset Network Settings.
    Restore the iPad as new.
    If none of the above steps resolves the issue, make an appointment at an Apple Retail Store, contact your carrier, or contact AppleCare to troubleshoot further.
    I know you may have done one or two of the steps here, so you can skip those.
    Take care,
    Sterling

  • ITunes 11.1 hangs when connecting to iCloud. How can I download 11.0.5?

    Arrrrgh! iTunes 11.1 hangs on my system Windows 7 x64 when trying to connect to iCloud. It runs fine if I start it in safe mode (I have no third party plug-ins installed).
    How do I download iTunes 11.0.5???? I've been searching on the Internt for the last 1/2 hour and it looks like Apple prevents users from downloading 11.0 once 11.1 (piece of crap) is out. WHY?????????

    Hi,
    I've been able to resolve the problem of iTunes crashing by emptying the SycServices folder - by following the steps described at the foot of this comment. I've also been able to sync my iPhone contacts with my Address Book ...but I cannot sync my Address Book with Outlook 2011 ...  and thus my iPhone linking to Outlook 2011.
    I'm aware that 'Sync Services' were depreciated in 10.8 and was hoping that this would be restored in full in v: 10.9.3. I understand that MicroSoft needs Sync Services to be reintroduced into the OS to enable the sync to work again for linking up with Outlook 2011 - which appear to be blank in my Sync Services preferences window as follows ....
    I would be mighty grateful for any ideas/solutions on how to resolve this problem. Synching Outlook 2011 with my iPhone was so easy in the past!
    Simon
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Application Support/SyncServices
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash. Log out or restart the computer and empty the Trash. Test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    Re: iTunes ver 11.2.1 hangs when connecting to iPhone 

  • IB Design: Connection to server lost

    Hi
    After upgraded to SP16 stack, when I try to create new Business System in Intergration Builder Design, the connection always lost and prompted for password, the message is as below:
    Connection to server lost
    You can log on again once the server is available again Do you want to log on again?
    What has been wrong? The upgrade done without any error.
    //Jack

    Jack,
    Check out SAP Note 938980
    To analyze the error further, perform the following steps:
    1. Activate the logging on the affected client as described in note 912414.
    2. Analyze the log file if it contains the following error messages:
                        com.sap. engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext.
                         Caused by: java.lang.NullPointerException at com.sap.engine.services.security.remote.RemoteSecurity_Stub.getRemoteLoginContext(RemoteSecurity_Stub.java:607)

  • Connection Interrupted, Connection to server lost at ID

    Hello Experts,
    I have a crazy issue, as and when I logon to Integration Directory on my personal system, and try to create a Communication Channel under Business Service. It pops up the following error
    Connection Interrupted
    Connection to server lost
    You can login once the server is available again
    Do you want to log on again?
    But when I login again it saysu2026
    Reconnection to server was successful. Repeat the action.
    And when I retry to create the Communication channel the same error reoccurs and continues in the same fashion,
    Same case happens when I try to import a Business System to ID from SLD.
    Thanks
    sk

    Hi Satya,
    And when I retry to create the Communication channel the same error reoccurs and continues in the same fashion,
    Same case happens when I try to import a Business System to ID from SLD.
    I guess this patch might help you in getting rid of the connection dropping error. Get in touch with your basis folk for implementing this patch.
    Else go to -
    http://service.sap.com/nw2004s  -> Support Package Stacks Information
    for the implementation guide and the detailed steps are mentioned there.
    Hope this helps.
    Regards,
    Neetesh

  • Connection to server lost

    Hello,
    After upgrading to SP12 and then returning back to SP10 we have no access anymore to the integration processes in IB.
    error message is :
    "<b>Connection to server lost
    you can log on again once the server is available again
    Do you want to logon again?</b>"
    Strange is old user who didn't connect for a long time still has access to the processes.

    Hi Nilesh,
    I have restarted Java J2ee in transaction SMICM but the error still persist.
    When i go in SM21 i have following error :
    10:27:55 RD    Q0  I Operating system call recv failed (error no. 10054)
    10:27:55 RD    S2  3 Connection to CPI-C client 129 was closed
    10:27:55 RD    S7  4 > Partner LU name:
    10:27:55 RD    S0  R > Host: 10.155.62.52
    10:27:55 RD    S0  I > Partner TP Name: jlaunch
    10:27:55 DIA  003 200 SAPJSF  R4  9 Communication error, CPIC return code 020, SAP return code 223
    10:27:55 DIA  003 200 SAPJSF  R5  A > Conversation ID: 96353898
    10:27:55 DIA  003 200 SAPJSF  R6  4 > CPI-C function: CMSEND(SAP)
    It seems like a network problem but how can you handle this?
    Regards,
    Laurent.

  • Error : connection to server lost

    Hi,
    After upgrading support pack from PI7.1 EHP1 sp1 to sp8,we are experiencing problem with both ESR and ID timeout,
    In 2mins the connection to server is terminated and we need to reconnect to it again with password
    Error:
    connection interrupted
    connection to server lost
    What parameters value needs to be changed apart from http_timeout increased to 100000 in sxmb_adm,and i did not timeout/keepalive paramter in configtool or NWA
    what changes and where to be done
    Thanking you

    Hi ,
    The Memmory and Heap Memmory seems to be ok,I think some parameter related to timeout  should be increased
    any idea what it is ? if that is the issue

  • Sqlplus hanging when connecting by specifying user/pwd

    Hi All,
    Oracle 11G R2 on WIndows 2008 R2
    I have cloned a server, serverA, and created a new server, lets say serverB. Two things i changed for this serverB:
    1) edited tnsnames entry so that the alias TST now points to this new serverB hostname (previously it was pointing to serverA)
    2) deleted and recreated the listener
    Now when i try to connect to my instance using sqlplus and the username/pwd, it hangs here:
    D:\ORACLE\DATABASE\ORA11G\database>sqlplus sys/blahblhablhar@tst as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Tue May 7 15:18:36 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.If i try to connect using
    D:\ORACLE\DATABASE\ORA11G\database>sqlplus / as sysdba - IT WORKS.
    I tried to recreate my pwd file using orapwd and no luck.
    Any ideas as to why i cannot connect using the first method? Also, when i try to connect to this instance using SQL developer from my laptop, it also hangs when i do the 'Test' button..??
    Thanks in advance.
    Edited by: MSandico on 7-May-2013 12:43 PM
    Edited by: MSandico on 7-May-2013 12:47 PM

    Here it is:
    D:\ORACLE\DATABASE\ORA11G\database>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 13:32
    :59
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERA.corp.XXX.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Produ
    ction
    Start Date                07-MAY-2013 10:57:31
    Uptime                    1 days 2 hr. 35 min. 28 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\Oracle\Database\ora11g\network\admin\listener.ora
    Listener Log File         D:\ORACLE\DATABASE\diag\tnslsnr\IDCORATST01\listener\a
    lert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SERVERA.corp.XXX.com)(PO
    RT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 4 handler(s) for this service...
    Service "MMSPRD7XDB" has 1 instance(s).
      Instance "mmsprd7", status READY, has 1 handler(s) for this service...
    Service "mmsprd7" has 1 instance(s).
      Instance "mmsprd7", status READY, has 1 handler(s) for this service...
    The command completed successfully
    D:\ORACLE\DATABASE\ORA11G\database>lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 13:33
    :22
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERA.corp.XXX.com)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 4 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
          "ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready
             CLRExtProc
             (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_498_D98D5B78_8ADC.ORA))
          "ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready
             CLRExtProc
             (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_498_D98D5B78_4773.ORA))
    Service "MMSPRD7XDB" has 1 instance(s).
      Instance "mmsprd7", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: SERVERA, pid: 2136>
             (ADDRESS=(PROTOCOL=tcp)(HOST=SERVERA.corp.XXX.com)(PORT=521
    94))
    Service "mmsprd7" has 1 instance(s).
      Instance "mmsprd7", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:7 refused:0 state:ready
             LOCAL SERVER
    The command completed successfully
    D:\ORACLE\DATABASE\ORA11G\database>Anything strike y'all yet?

  • OCIStmtExecute hangs when connection is lost

    Hi,
    If the connection to the Oracle server for some reason is lost, the call to OCIStmtExecute could hang for several minutes. When OCIStmtExecute finally returns a new call to OCIStmtExecute does not hang but of course it returns with error.
    How can I prevent OCIStmtExecute from hanging several minutes first time when connection is lost?
    I'm using nonblocking mode, but it obviously doesnt prevent OCIStmtExecute from hanging the first time after connection loss.
    Can anybody help me?
    Thanks in advance!
    Br,
    Ole Hansen

    Although Bug 18336207 is still in status  "80 - Development to QA/Fix Delivered Internal" - it seems that it was fixed in the final Release 3 (v4.121.2.20141216)
    (at least I can't reproduce it anymore).
    Thanks

  • 6.02 updater hangs at "connecting to server"

    Ever since I upgraded to Firefox 6.X, and I get prompted for an upgrade, the updater window hangs endlessly at "connecting to server". This has been occuring with 6.01 and now 6.02. Since I like to keep Firefox updated, I mainually went and downloaded the 6.01 package and installed it. Seems whatever this is, is still occuring on 6.02. I'm on Ubuntu 10.04.

    It looks that the update wasn't successful because your "More system details" list still shows a Firefox 3.5.19 version.
    If there are problems with updating then best is to download the full version and uninstall the currently installed version.
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    See also:
    * http://kb.mozillazine.org/Software_Update (Software Update not working properly)

  • Install hanging when registering automation server

    I'm tearing my hair out, as well as getting my 4rse kicked by the other half!
    We've had iTunes up and running on our Vista Home Premium box for a while, then it just stopped working coming up with an error.
    So I've tried re-installing, but 7.3 keeps hanging when trying to register the automation server. Worst still I have to kill it with Task Manager and it leaves a partial install that refuses to uninstall!
    Any guidance would be much appreciated.
    Thanks,
    Stuart

    Registering Automation Server hangs are actually a 7.x.x.x thing rather than a 7.3.0.54 thing. I've seen them with 7.2.0.x too.
    Perhaps try this strategy.
    First download and then install the QuickTime standalone installer:
    Latest Quicktime Installers … get the one that doesn’t mention iTunes
    If that install goes through properly, then try another iTunes install.
    (The theory here is that if your QuickTime is already up to date, the iTunes installer bundle skips the QuickTime part of the install. If the iTunes installer is given less to do, sometimes it gets past the Registering Automation Server hang.)

  • Too many sharepoints when connecting to server

    I have a 10.5.8 Tiger server. I am upgrading to the new Lion Server. I have setup the server, created users and groups and setup Sharepoints using the Server App. The problem is I have several sharepoints specific to certain groups. In Tiger the user would mount the server from GO/Connect to Server.
    There would be only one volume or sharepoint available. Once mounted they would only have access to the directories/sharepoints for their group. The
    other directories would be locked. This is still the case with Lion once they mount the main volume.
    However the difference in Lion I am trying to figure out is ALL the sharepoints I have created show up in the list of the mounted server when connecting through GO/Connect to Server. Even the sharepoints a certain user does not have access to. When they try and mount the shrepoint they do not have access to they are given a message that they do not have access to this sharepoint. How can I hide those sharepoints from showing up in the mount window? In Tiger I have the same amount of sharepoints but only one volumes shows up for the users to mount.

    Dick,
    I know this sounds silly but while in Finder goto (Finder)/(Preferences) and then make sure your on the (General) tab, make sure all the things you want to show are checked.
    If that doesn't help move the com.apple.finder.plist to the desktop you can find in in ~/Library/Preferences ( ~ = Your Home Folder), log out/log in, and see if that fixes the problem if not go ahead and move the plist file back.
    hope that helps,
    Weston

  • Finder error -36 when connecting to server - smbclient in terminal works

    Finder > Go > Connect to Server
    When ever I need to connect to a smb server using Finder, I get the constant error -36.
    In console :
    mount_smbfs: session setup phase failed: syserr = Socket is not connected
    mount_smbfs: could not login to server EXIT15: syserr = Socket is not connected
    mount_smbfs: 2 failures to open smb device: syserr = Resource busy
    mount_smbfs: session setup phase failed: syserr = Authentication error
    mount_smbfs: error from NetrShareEnum call: exception = 382312500
    I can sometimes select the share to mount, and it tries for a few seconds, never succeeds.
    10.4.10, but this was also case previously. We have every single Mac with this symptom so it is 7 work units at the moment, a Mac Pro, MacBook Pros, MacBook, Mac mini.
    Wired, wireless, and even VPN, no matter how the mac is connected to the net.
    Every non-Mac server at work tested gives this error when trying to connect to their shares.
    smbclient in terminal works.
    http://www.macwindows.com/tiger.html and Apple kbase article 301580 suggestions for nsmb.conf didn't make any difference. (the nsmb noauth being a very poor choice if it would work)
    smb.conf and nsmb.conf any security settings don't make any difference.
    I have working details for connection, so share, ip and dns name, username and password for connection work.
    Connecting from Terminal works.
    Connecting from any Windows or Linux virtual machine on Fusion on these same Macs work too.
    I have changed the workgroup to the correct one in Directory Access.
    I have tried all connection syntaxes suggested in http://www.macwindows.com/tiger.html - none of them still work in Finder, always identical results.
    smbclient //dns-name-or-ip/sharename -W workgroup -U username
    is the only viable workaround at the moment.
    Domain=[dnsnameofwhereconnected] OS=[EMC-SNAS:T5.4.21.400] Server=[NT1]
    is what smbclient gives for server details when its connected.
    As smb works from command line, it's not smb itself that is affected. Just Finder.
    I don't have access to edit any settings on the servers that we need to connect to. Only sharename and password that work for connection, but don't allow any editing on the server's settings.
    Ideas? This should work in Finder.
    Smbclient and Fusion area already somewhat workarounds, so I'm not looking for any third party software for dealing with this.
    I spent way too much time with AppleCare on this, and all I got was 90 minutes wasted.
    Ideas anyone???

    I think I have found what caused it. Not solved, but at least this seems so far the most likely cause:
    The share name contains hyphen.
    http://docs.info.apple.com/article.html?artnum=106471 Mac OS X 10.1 or later: How to Connect to Windows File Sharing (SMB) : Date Modified: August 01, 2007
    “6. You cannot connect to a share with a name that contains a hyphen. Resolve the issue by giving the share a name that does not contain a hyphen.”
    smbclient in Terminal is not limited to this "feature" of Finder of Mac OS X 10.1 that was not fixed or recoded to solve it or modify it since adding smb in it in 2001.
    It's not possible to test this changing the share name to one that does not contain a hyphen, nor to have one added in this server.
    For users that won't have Terminal access, the solution are .. remote desktop with admin user, have admin user come to mount the share in location, or use virtualization software and with it anything that works.
    Probably too optimistic to think the smb parts would have been rewritten for 10.5.

Maybe you are looking for

  • My Do Not Disturb setting is ON and I am still receiving calls and text notifications... PLEASE HELP!

    Help - I have my DND setting ON - yet I am still receiving all notifications, texts, and phone calls from numbers other than my favorites.  Please help!  Is anyone else experiencing this issue? I have an iphone4, maybe that is the reason?

  • MacBook Pro 15-inch, Mid 2010 2.4 GHz Intel Core i5 with Mavericks is very slow

    Hi everybody, i have already seen this discussion (https://discussions.apple.com/message/24018625#24018625) started by campitor and allegedly solved by arthur but only for campitor's concrete case and already closed. Therefore I have made the same ch

  • Background process

    Hi Experts,                 I have  developed  report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.      

  • Problems with Click a row in the Table

    Dear All, I am new to Java GUI. I got some problems with clicking the row in a table. My table allows the user to delete some rows fromt the table. When the user click a row or some rows in my table, the delete button should be enabled. It does work

  • Kerberos Authentication Setup for MSCRM in cross forest oneway trust environment.

    Dear All, Kindly help related to implement Kerberos authentication on CRM application with multiple Forest environment. My environment details are as below: Number of forests: 2 1. First is with name of domain1.local 2. Second is with name of domain2