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

后端 未结 7 2062
独厮守ぢ
独厮守ぢ 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:13

    The sessions parameter is derived from the processes parameter and changes accordingly when you change the number of max processes. See the Oracle docs for further info.

    To get only the info about the sessions:

        select current_utilization, limit_value 
        from v$resource_limit 
        where resource_name='sessions';
    
    CURRENT_UTILIZATION LIMIT_VALUE
    ------------------- -----------
                    110         792
    

    Try this to show info about both:

        select resource_name, current_utilization, max_utilization, limit_value 
        from v$resource_limit 
        where resource_name in ('sessions', 'processes');
    
    RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION LIMIT_VALUE
    ------------- ------------------- --------------- -----------
    processes                      96             309         500
    sessions                      104             323         792
    

提交回复
热议问题