How do I check the maximum number of connections in an Oracle database?

1146470 pts.
Tags:
Oracle Database
SQL
Would be the best way, using SQL, to actually check the maximum number of connections that are allowed in an Oracle database. I need it to show the current number of sessions and the total number allowed. Appreciate any help.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

From http://stackoverflow.com/questions/162255/how-to-check-the-maximum-number-of-allowed-connections-to-an-oracle-database
SELECT
  ‘Currently, ‘
  || (SELECT COUNT(*) FROM V$SESSION)
  || ‘ out of ‘
  || DECODE(VL.SESSIONS_MAX,0,’unlimited’,VL.SESSIONS_MAX)
  || ‘ connections are used.’ AS USAGE_MESSAGE
FROM
  V$LICENSE VL

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: