12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Running and Debugging Functions and Procedures1.5 Running and Debugging Functions and ProceduresYou can use <strong>SQL</strong> <strong>Developer</strong> to run and debug PL/<strong>SQL</strong> functions and procedures.■To run a function or procedure, click its name in the Connections navigator; theneither right-click and select Run, or click the Edit icon and then click the Run iconabove its source listing.■ To debug a function or procedure, click its name in the Connections navigator. Ifthe procedure in its current form has not already been compiled for debug,right-click and select Compile for Debug. Then click the Edit icon and click theDebug icon above its source listing.In both cases, a code editing window is displayed. The following figure shows thecode editing window being used to debug a procedure named LIST_A_RATING2,which is used for tutorial purposes in Debugging a PL/<strong>SQL</strong> Procedure.The code editing window has the following tabs:■■The Source tab displays a toolbar and the text of the function or procedure, whichyou can edit. You can set and unset breakpoints for debugging by clicking to theleft of the thin vertical line beside each statement with which you want to associatea breakpoint. (When a breakpoint is set, a red circle is displayed.)The Privileges tab displays, for each privilege associated with the function orprocedure, the grantor and grantee, the object name, and whether the grantee cangrant the privilege to other users.1-14 <strong>SQL</strong> <strong>Developer</strong> Online Help

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!