Originally posted by Avi Abrami:
Paul,
I believe the WHERE clause in your query should be:
Deb, the Oracle documentation will probably be helpful to you.
You can access it via:
http://www.oracle.com/technology
Good Luck,
Avi.
Originally posted by deb platt:
Thanks to both of you for your additional input. Via sqlplus, when I execute
I get the anticipated output. However when I execute:
zero rows are returned;
Here's my motivation for learning more about triggers. I am a Java programmer who was hired to maintain a many-years old web-based application with an Oracle8i backend. A typical work scenario might be a sales person reporting that under certain conditions, when they delete an ordered item, the total item count for the order does not get updated. Since the web app uses JDBC, I first try searching the Java source code to find the relevant embeded sql. Except many times there isn't any. So speaking more generally, I can conclude that TABLE.COLUMN is being changed by a trigger, but I don't know which trigger and/or event is causing the update. Prior to finding the Oracle8i tip of the week, I had to look at various triggers, one at a time, via my GUI client. I picked which trigger to look at by guessing from the trigger name that this or that one might be relevant. And after I found one that did update TABLE.COLUMN, I didn't know if I could stop looking or whether there might be another trigger that also impacts TABLE.COLUMN. However since I am connecting to the database with the same user name whether I am using the GUI client or sqlplus, I would think the same data should be available if I only knew how to formulate the sqlplus query. But maybe the GUI client is using the USER_TRIGGERS table, and it's just doing all the work required to convert the LONG data into text.
As an aside, I inherited a very large piece of poster paper with an incomplete entity relationship diagram sketched in pencil. So the documentation on the database isn't as complete as I would have liked.
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Prior to Oracle9i metadata could only be extracted using SQL statements, export utilities and the OCIDescribeAny interface, all of which are limited...To solve these issues Oracle9i has introduced the DBMS_METADATA package which can be used to retrieve object definitions as XML or SQL DDL
Originally posted by deb platt:
I tried pursuing Shailesh's suggestion without luck. Further google-ing around led me to this information at oracle-base.com:
The above statement leads me to believe that unfortunately Oracle8i does not have the DBMS_METADATA utility package.
Nonetheless, thanks for your input.
Well THAT's new! Comfort me, reliable tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|