Is there any limitation like these many query preparation only allowed in a single db connection?
I doubt DBI has any such restriction.
can anybody please suggest me an idea for this failing reason?.
The DBD driver is buggy? The server has a pre-defined chunk of memory available per connection which is exceeded on the 151st run of the stored proc? The server is configured with a hard limit of transactions per connection (as opposed to DBI)? The phase of the moon?
I'm sure I can't help, but someone perhaps will be able to help if you post your code, and the error message retrieved from DBI.
Please don't forget to follow the Writeup Formatting Tips.
-David
| [reply] |
Please post the actual error message that you get.
My guess at this point is that you aren't processing the results from the proc execution correctly, so something stays allocated and prevents the 151st execution from functioning correctly.
Michael
| [reply] |
Hi Michael,
Thanks For your above information.
Below is the error, what i am getting, while executing the perl script.
"DBD::Sybase::db prepare failed: OpenClient message: LAYER = (6) ORIGI
+N = (8) SEVERITY = (5) NUMBER = (1)
Message String: ct_connect(): directory service layer: internal direct
+ory control layer error: There was an error encountered while binding
+ to the directory service.
Couldn't prepare the query for procedure execution : OpenClient messag
+e: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (1)
Message String: ct_connect(): directory service layer: internal direct
+ory control layer error: There was an error encountered while binding
+ to the directory service."
And also, this is happened nearly after 150 th excution on one day. the same script when i ran it for next day. it was throwing the same type of error after running thru some 200 th execution.
then, I have introduced 2 more dbh connection with the existing dbh connection. Now it is not throwing any error and the script works faster compared to the Above one.
I am not Sure whether these Approach is fine for that problem.
Please suggest me, if this is the right approach to fix the issue? or Is Anything i need to modify my Script.
Thanks and Regards perlsen
| [reply] [d/l] |
| [reply] |