会话数sql怎么查

oracle 租户会话数sql select value from v$parameter where name = ‘sessions’; 这样不能查嘛

要查看OceanBase的Oracle模式下的会话数,可以使用如下SQL语句:SELECT COUNT(*) FROM v$session WHERE username = 'your_username'; 其中,your_username是你要查询的用户名。

OB租户没有对会话数的限制,OB针对事务、sql、连接 设计了对应的timeout超时限制,比如: ob_query_timeout、 ob_trx_timeout、 connect_timeout、 wait_timeout、 interactive_timeout、 ob_trx_lock_timeout、 ob_trx_idle_timeout 等等,官方都有详细介绍