PL/SQL Help

PL/SQL Help

 

  

Anyone:

This bit of pl is not working:

BEGIN
FOR arec IN (SELECT SID, SERIAL# FROM V$SESSION)
LOOP
EXECUTE IMMEDIATE ''BEGIN dbms_output.put_line(arec.sid); END;'';
END LOOP;
END;



Can ne1 spot the reason please?

Thanks,
Luis

-----------------------------------------
This e-mail is sent on behalf of Trader Media Group Limited,
registered office: Unit 6, Thatcham Business Village, Colthrop
Lane, Thatcham, Berkshire RG19 4LW (Registered in England No.
4768840). This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error please notify the sender. This email message has been
swept for the presence of computer viruses. www.ciphertrust.com

Oracle LazyDBA home page