infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Hanging odbc connections
Mike Campbell
Seems that the tclproc we have to query an odbc database doesn't always release or end the process creating numerous non-current but 'active' odbc theads. The tclproc has the final line as:
# free ODBC handles
set err [odbc SQLFreeHandle SQL_HANDLE_STMT $hstmt]
set err [odbc SQLDisconnect $hDBConnection]
set err [odbc SQLFreeHandle SQL_HANDLE_DBC $hDBConnection]
set err [odbc SQLFreeHandle SQL_HANDLE_ENV $henv]
# Return
return ""
Is there something else I need to include to ensure the process releases or frees the database?
Thanks.
Mike Campbell
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Mike,
Did all of those commands succeed (particularly the disconnect)?
I do not see any check of the $err variable.
Mike Campbell
I'll check on those. As always good idea Jim. :oops:
Mike Campbell
So far for the past 5 hours, all process have ended with SQL_SUCCESS. I'll continue to monitor the processes.