Side-by-side comparison of 08003 and 08006 — understand the differences, causes, and fixes.
The specified database connection does not exist or has been closed.
The application is using a connection that was closed, timed out, or never properly established. Connection pool eviction may have closed it.
Implement connection validation before use. Configure connection pool to test on borrow. Handle connection loss with retry logic.
An established database connection was unexpectedly lost.
The server crashed, was restarted, or the network connection was interrupted. Server-side idle timeout may have closed the connection.
Implement automatic reconnection logic. Configure connection pool validation. Check server logs for the disconnect cause.