Solved

Oracle Trigger Problem - ORA-06519

Posted on 2012-03-26
2
884 Views
Last Modified: 2012-03-27
I write this trigger and I compile it without errors

DECLARE
tmpVar NUMBER;
pragma AUTONOMOUS_TRANSACTION;
/******************************************************************************
   NAME:       
   PURPOSE:    

   REVISIONS:
   Ver        Date        Author           Description
   ---------  ----------  ---------------  ------------------------------------
   1.0        17/03/2012             1. Created this trigger.

   NOTES:

   Automatically available Auto Replace Keywords:
      Object Name:     
      Sysdate:         17/03/2012
      Date and Time:   17/03/2012, 11:24:45 Õ, and 17/03/2012 11:24:45 Õ
      Username:         (set in TOAD Options, Proc Templates)
      Table Name:       (set in the "New PL/SQL Object" dialog)
      Trigger Options:  (set in the "New PL/SQL Object" dialog)
******************************************************************************/
BEGIN
   tmpVar := 0;
   
   execute immediate 'insert into tbl_testxx select * from tbl_EmpMONTHSALARY';
	/*IF :NEW.emp_id = 30 THEN*/
		/*update TBL_EmpTest
		set fld_EmpId = :NEW.emp_id
		where fld_EmpId not in (:NEW.emp_id);*/
		
		/*INSERT INTO tbl_EmpTest
		FLD_EMPID
		VALUES
		(:NEW.emp_id);*/
	/*END IF;*/			    
END ;

Open in new window


I get this error
ORA-06519
ORA-06512
ORA-04088

Open in new window

0
Comment
Question by:egovernment
2 Comments
 
LVL 34

Expert Comment

by:johnsone
ID: 37768408
You are going to need to post the entire trigger definition.

My guess is that the trigger is causing itself to fire again?  Not sure without the full trigger definition.
0
 
LVL 20

Accepted Solution

by:
flow01 earned 500 total points
ID: 37768580
beside answering johnsone's post

try coding an  


exception when others then
    rollback;  -- before leaving an AUTONOMOUS_TRANSACTION
                   --  a COMMIT or ROLLBACK should occur
    raise;  -- there was a failure  so reraise
end;

-- to loose the ORA-06519
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This video shows how to recover a database from a user managed backup
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now