Python Forum
python script is hanging while calling a procedure in database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python script is hanging while calling a procedure in database
#4
- What interface are you using to manage the database? Does it hang or experience slowness?
- Did you try another language, does it also hangs or just python?
- Is your table large or did you indexes get dropped? Do you have dependencies in the data? Does this procedure execute properly if you do it through your DBMS interface?
- Have you look at the driver documentation, perhaps there is a known bug? Are you using the latest version? Is your driver version compatible with you python version?
- Check your connection string. Maybe there is something there that makes it behave weirdly. Try creating it in a different way.
- What OS are you running? Do you have a firewall/antivirus thing running? Perhaps they are killing your connection, try to disable them and see what happens.
- In my experience sometimes databases can work better if you "ping" them. Try to connect, and then disconnect and reconnect. Does it make any difference? How long does it take to connect?
- Is you DB hosted on your computer? Is it on a separate disk? Maybe that disk has issues/bad sectors/is dying. Check it's health.
Reply


Messages In This Thread
RE: python script is hanging while calling a procedure in database - by sgrey - Jan-17-2024, 10:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,468 Jun-29-2023, 11:57 AM
Last Post: gologica
  python call stored procedure mg24 2 1,131 Oct-18-2022, 02:19 AM
Last Post: mg24
  python call stored procedure with two parameter mg24 4 1,638 Sep-27-2022, 05:02 AM
Last Post: deanhystad
  PyRun_SimpleFile calling multiprocessing Python Class cause endless init loop Xeno 2 1,092 Sep-19-2022, 02:32 AM
Last Post: Xeno
  Calling this script Extra 4 1,668 Jan-10-2022, 09:34 PM
Last Post: Extra
  Calling python from c++ in visual studio pdk5 0 2,197 May-24-2021, 10:18 AM
Last Post: pdk5
  Calling Oracle REST SQL from Python johnjacob 2 2,095 Nov-05-2020, 04:19 AM
Last Post: johnjacob
Bug maximum recursion depth exceeded while calling a Python object error in python3 Prezess 4 3,823 Aug-02-2020, 02:21 PM
Last Post: deanhystad
  How to kill a bash script running as root from a python script? jc_lafleur 4 6,022 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,360 May-28-2020, 05:27 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020