Forum
Hi Peter,
wenn Du einen CONNECT ausführst, solltest Du auch einen DISCONNECT ausführen. Dann ist aber eine CLOSE nicht erforderlich, da er vom DISCONNECT implizit durchgeführt wird:
Using DISCONNECT is optional. Without it, DB2 performs the same functions when the task terminates. (The function is an implicit DISCONNECT.) If the objective is to shut down your application, you can improve shut down performance if you request DISCONNECT explicitly before the task terminates.
If an OPEN is in effect when the DISCONNECT is issued (that is, a plan is allocated), CAF issues an implicit CLOSE with the SYNC parameter.
Gruß
Gernot
PS: Die Anwort mag Dir trivial erscheinen, Â :-/ sorry, ich versuche mir nur einen Reim aus den wenigen Informationen zu machen.