Newbie: variable value is empty
Hi,
Still a newbie so, the code below is part of a job that will detect and kill sessions. The first IF finds blocking sessions and will later kill them. But before I do that, I would like to gather the SQL causing the locks. As for now, v_sqltext is always empty, even when I kill off a sessions. I tried with dbms_output as well, and that worked fine (ie it did print its output). But when trying to use my variable, I get nothing. So I guess my select into gets no rows. The code compiles fine.