PL/SQL登录很短时间session就自动断开

1.首先查看你这个用户的profile文件

select profile from dba_users where username='USERNAME';

2.查看一下profile文件中的idle_time设置

select * from dba_profiles where profile='PROFILENAME';

3.如果第二步查找的idle_time值很小,修改为UNLIMITED不限制

alter profile prfilename idle_time=UNLIMITED;

4.如果都改过之后还是自动断开检查一下PL/SQL工具的设置情况

Tools->Preferences->connection:勾选check connection