How Do I Resolve a "Maximum Number of Sessions Exceeded" Error?

If you see this error when connecting to an Always Free Autonomous Database, then you've reached the maximum limit of simultaneous database sessions.

To see how many sessions are associated with the database, check:

# select status, count(*) from v$session group by status;

You can avoid this error by upgrading to the paid service to obtain more resources for your Autonomous Database. See Upgrade an Always Free Autonomous Database to a Paid Instance in Using Oracle Autonomous Database Serverless.