Are there any way to decompile or reverse engineer Oracle trigger? Any tools available, any free ones?
Thanks!
Like a stored procedure, a trigger is a named PL/SQL unit that is stored in the database and can be invoked repeatedly. Unlike a stored procedure, you can enable and disable a trigger, but you cannot explicitly invoke it. So no, a trigger cannot be explicitly called.
In ODI, reverse-engineering is the process of selecting metadata from a data server and populating the selected metadata into an ODI model. An ODI model contains objects or datastores such as tables, views, queues, and synonyms. ODI models also contain attributes, keys, and constraints for each datastore.
This may be done querying user_triggers or dba_triggers as such:
SELECT trigger_body FROM user_triggers where trigger_name = 'THENAME';
or
SELECT DBMS_METADATA.GET_DDL('TRIGGER','....') FROM DUAL
If the trigger code calls other code that is Wrapped (obsufacted) you will need to unwrap it, see this article or do a google search for "oracle unwrap pl/sql"
You can also use a Oracle managment or development tool to get the trigger source code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With