how to run proc in Oracle 10g

351905 pts.
Tags:
Oracle 10g
I have oracle 10G (GUI based-running in IE) .how do i compile and run proc code in it

Software/Hardware used:
Oracle 10g

Answer Wiki

Thanks. We'll let you know when a new response is added.

To compile the proc, then run compile with procedure name and options. To run the procedure by running exec procedure command with passing variables.

systax for compilation
ALTER PROCEDURE [ schema. ]procedure
COMPILE
[ compiler_parameters_clause
[ compiler_parameters_clause ] … ]
[ REUSE SETTINGS ] ;

e.g. Alter Procedure scott.sample Compile ;

To run procedure example,

Exec Sample;

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    What edition of 10g are you using ? (enterprise, express, etc...)
    70,200 pointsBadges:
    report
  • Durgadevi
    CREATE PROCEDURE MyProc (ENO NUMBER) AS BEGIN DELETE FROM EMP WHERE EMPNO= ENO; END; this procedure program in not execute.so plz tell how to execute the proc in 10g oracel..
    10 pointsBadges:
    report
  • FredMate

    Once compiled, you can run the procedure SQL*Plus as:
    SQL> EXECUTE yourProc;
    or Exec yourProc; for short.

    In the IE interface SQL Commands window:
    Run the procedure in an anonymous PL/SQL block.

    Begin
       yourProc;
    End;

    Click Run.

    105 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following