How to call a stored procedure inside a trigger? Give an
example.



How to call a stored procedure inside a trigger? Give an example...

Answer / pardeep

Using Call keyword we can call procedure inside trigger.
e.g.
CREATE OR REPLACE TRIGGER foo
BEFORE DELETE OR INSERT OR UPDATE ON <<table_name>>
FOR EACH ROW
BEGIN
CALL PROCEDURE_NAME();
END;
/

Is This Answer Correct ?    16 Yes 5 No

Post New Answer

More Oracle General Interview Questions

What are the different approaches used by Optimizer in choosing an execution plan ?

2 Answers  


Two triggers one is before insert and other is after insert are firing on a table.If 10 times you insert in a table.Then how many times before trigger and how many types after trigger will fire in pl/sql.

1 Answers  


How do I find my oracle client driver version?

0 Answers  


What are the commands youd issue to show the explain plan for select

2 Answers  


10. Display the client number, order date and shipping date for all orders where the shipping date is between three and six months after the order date.

3 Answers   Wipro,


How many types of tables are there in oracle?

0 Answers  


What is the recommended interval at which to run statspack snapshots, and why?

0 Answers  


How to drop an existing table in oracle?

0 Answers  


What is the sql query to concatenate column values from multiple rows in oracle?

0 Answers  


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

0 Answers   EDC,


What is a server parameter file in oracle?

0 Answers  


What is the use of Control File ?

3 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)