New 4

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

SQL> sho parameter resource_limit;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
resource_limit boolean TRUE
SQL> SELECT PP.PROFILE, PP.RESOURCE_NAME, PP.LIMIT FROM DBA_PROFILES PP WHERE
PROFILE='DEFAULT' AND RESOURCE_NAME IN ('IDLE_TIME');

PROFILE
--------------------------------------------------------------------------------
RESOURCE_NAME
--------------------------------
LIMIT
--------------------------------------------------------------------------------
DEFAULT
IDLE_TIME
UNLIMITED

SQL> ALTER PROFILE DEFAULT LIMIT IDLE_TIME 30;

Profile altered.

https://serhatcelik.wordpress.com/2022/02/19/how-to-clean-inactive-oracle-sessions-
automatically/

SQL> CREATE PROFILE old_or_inactive_sess_profile LIMIT CONNECT_TIME 120 IDLE_TIME


30;

Profile created.

SQL> ALTER USER apps PROFILE old_or_inactive_sess_profile;

User altered.

SQL> commit;

Commit complete.

You might also like