How many inactive sessions have you noticed in the Oracle database for this user?
If you see it, it could be due to the SQL terminal session that you opened with the database.
If you see that it is more than one, and the counter is incremented every time you execute the code, then you are not releasing the connections properly. It could be a connection leak.
Or it may be that you are actually using the connection pool, and inactive connections are connected to the connections that it manages. Inactive here means that they are not currently performing an action. This does not mean that there is a connection leak. Posting your config will help shed some light. You can check if you are using a connection pool by creating a stack trace or debugging code.
Also, make sure that there is no other application that accesses the database with the same credentials.
source share