CONNECT_TIME
I had to limit a SQL*Plus session’s connection time today while I was setting up a new environment so I decided to document how I did it. The example below was run on an Oracle 11.2.0.2.7 database. First I connected as SYS and limited CONNECT_TIME to 1 minute in the DEFAULT profile:
SQL> conn / as sysdba
SQL> conn / as sysdba
Connected.
SQL> alter profile default
2 limit connect_time 1
3 /
Profile altered.
SQL>
Then I set RESOURCE_LIMIT to TRUE so that limits would be enforced:
SQL> alter system set resource_limit = (more...)
RSS