Bernhard S
Member³
I have the following issues regarding triggers. My database development has to finally be delivered for test and prod DB migrations and is applied there via SQL*Plus. To find out any problems with the currently developped migration I have an automatically run nightly migration, also done via SQL*Plus.
Currently all my trigger changes are done via PL/SQL Developer (PSD) "Command Window" (*.pdc). In order to see any problems with a trigger change in my nightly migration I add after every
the SQL*Plus command
because otherwise in case of any problem I would only get a:
without any indication where there is a problem with the trigger.
I now thought about changing my trigger migrations to done in a PSD "Programm Window - Trigger" (*.trg), because I could just add several triggers in one window, but still visually separated then and still only have to maintain and deliver one file for all trigger migrations. However if I add the SQL*PLUS command again after the trigger code there, and I execute the code in PSD I get a:
I could of course do without that, but then I never see any error codes in my nightly migration, which of course I want to avoid as well.
So is there any way to work around these limitations? What approach would you recommend?
Currently all my trigger changes are done via PL/SQL Developer (PSD) "Command Window" (*.pdc). In order to see any problems with a trigger change in my nightly migration I add after every
SQL:
create or replace trigger ...
the SQL*Plus command
SQL:
show errors
because otherwise in case of any problem I would only get a:
Code:
Warning: Trigger created with compilation errors.
without any indication where there is a problem with the trigger.
I now thought about changing my trigger migrations to done in a PSD "Programm Window - Trigger" (*.trg), because I could just add several triggers in one window, but still visually separated then and still only have to maintain and deliver one file for all trigger migrations. However if I add the SQL*PLUS command again after the trigger code there, and I execute the code in PSD I get a:
Code:
PLS-00103: Encountered the symbol "SHOW"
I could of course do without that, but then I never see any error codes in my nightly migration, which of course I want to avoid as well.
So is there any way to work around these limitations? What approach would you recommend?