I need to create a table with sessions. New users who are successfully authenticated will be added to the table. Every time when the users are opening the pages the user will checked in this table. So I want to use PL/SQL procedure which will run every minute and delete sessions older than 30 minutes to flush the “death” sessions.
Or maybe executing DELETE FROM "Dates" WHERE "Date" < SYSDATE - 1/48; every time when pages are reloaded will be a more optimized solution?
You don’t need procedure to do that. Simple delete query is enough.
If you necessarily need procedure, you should wrap this query into proc.