(8.0.22)
https://gihyo.jp/dev/serial/01/mysql-road-construction-news/0075
show variables like 'wait_timeout';
SET @@session.wait_timeout=3;
指定する単位は秒
(19c)
https://qiita.com/plusultra/items/3622ac81e57617ef7b9f
(1)初期化パラメータ
show parameter max_idle_time;
指定する単位は分
インスタンス単位で指定する。セッション単位では指定できない。
(2)データベースプロファイル
ユーザ単位で指定する。
指定する単位は分
select * from dba_profiles
where PROFILE in ('DEFAULT','PROFILE01')
and RESOURCE_NAME = 'IDLE_TIME'
;
create profile PROFILE01 limit idle_time 1;
alter user TEST profile PROFILE01;
select username, profile from dba_users where username='TEST';
alter user TEST profile DEFAULT;
※次のセッションから有効
行1でエラーが発生しました。:
ORA-02396: 最大アイドル時間を超えました。再接続してください。
(14)
https://www.sraoss.co.jp/tech-blog/wp-content/uploads/2021/08/pg14_report_20210818.pdf
#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
#idle_session_timeout = 0 # in milliseconds, 0 is disabled
show idle_in_transaction_session_timeout;
show idle_session_timeout;
set idle_in_transaction_session_timeout = 3000;
set idle_session_timeout = 3000;
(2019)
調べた限りなし。