Forum Discussion

MarcS's avatar
MarcS
Occasional Contributor
3 years ago

ADO: Connection to the database still exists, after calling connection.close (Oracle)

If I execute the following code snipped, the user for the ADO connection is still connected to the database in the background. I'm not able to delete the database scheme for this user, after closing ...
  • MarcS's avatar
    MarcS
    3 years ago

    Hi Alex,

    thank you for your reply.

    The hint with the garbage collection would fit with the following, which I've found out in the meantime.

    After a 2 minute wait, the connection is terminated. But the variable is only defined within the function.

     

    I was able to solve my problem first by using the user SYSTEM. This way I have no connection to the schema, which I first query and then possibly delete.

     

    It would be interesting to see what happens, If I could call the "collect function" of the garbage collection from TestComplete

     

    Regards MarcS