Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALTER TRIGGER in a PL SQL CODE

Status
Not open for further replies.

Kalyan Ganesan

Programmer
May 10, 2017
93
US
I want a code like this to work


BEGIN

ALTER TRIGGER SCEHEMA.TEST_UPDATE_TRG DISABLE;

EXCEPTION
WHEN OTHERS
THEN
WHEN OTHERS
THEN
err_num := SQLCODE;
err_msg := SUBSTR (SQLERRM, 1, 100);
err_loc := 'TEST_UPDATE_TRG';
err_date := SYSDATE;

INSERT INTO ERRORS
VALUES (err_num, err_msg, err_loc, err_date);
END ;


But i get this error below

ORA-06550: line 3, column 4:
PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:

( begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
continue close current delete fetch lock insert open rollback

How to fix it..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top