How to check the maximum number of allowed connections to an Oracle database?

后端 未结 7 2055
独厮守ぢ
独厮守ぢ 2020-11-28 01:59

What\'s the best way, using SQL, to check the maximum number of connections that is allowed for an Oracle database? In the end, I would like to show the current number of se

7条回答
  •  佛祖请我去吃肉
    2020-11-28 02:29

    Note: this only answers part of the question.

    If you just want to know the maximum number of sessions allowed, then you can execute in sqlplus, as sysdba:

    SQL> show parameter sessions
    

    This gives you an output like:

        NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    java_max_sessionspace_size           integer     0
    java_soft_sessionspace_limit         integer     0
    license_max_sessions                 integer     0
    license_sessions_warning             integer     0
    sessions                             integer     248
    shared_server_sessions               integer
    

    The sessions parameter is the one what you want.

提交回复
热议问题