The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, jai.
Asked: May 08, 2017 - 11:21 am UTC
Last updated: May 09, 2017 - 2:52 am UTC
Version: 10g
Viewed 1000+ times
SELECT session_id INTO v_session_id FROM lf_session_log WHERE (ROWID) IN (SELECT row_id FROM (SELECT ROWID row_id FROM lf_session_log WHERE query_state = 'R' AND expdttime > sysdate AND service_type = 1 AND session_type = 'P') WHERE rownum = 1) FOR UPDATE wait 2; UPDATE lf_session_log SET query_state = 'U', expdttime = p_expdttime WHERE session_id = v_session_id RETURNING session_id INTO p_session_id; commit;
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!