PL/SQL (MOSC)

MOSC Banner

Newbie: variable value is empty

edited May 14, 2015 10:02AM in PL/SQL (MOSC) 4 commentsAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center