I’m doing some basic database learning on Oracle 11g over a Citrix client. The problem is, if I’m idle about 5 minutes, I get disconnected. What would be the simplest SQL statement or PL/SQL procedure for keeping a sort of ping of activity going every minute to stay connected?
Share
If you have access to dbms_lock you can create an infinite loop that sleeps 60 seconds each time. If you don’t have access to dbms_lock try user_lock.sleep instead, although that function is not installed by default. (And if you do use it, change the 60 (seconds) to 60000 (milliseconds)).