RE: what package/procedure did SQL come from?
Date: Wed, 3 Jun 2009 04:56:54 -0400
Just noticed, looks like the MetaLink script was lifted from Steve's library. I could be wrong, but, it has the same set of hints, in the same order, line breaks are in the same place, table aliases are identical. The only differences are: copyright notice stripped, one column format is reduced in size, and the references to the x_$ views that Steve uses on all his stuff is replaced with the actual x$ table names.
From: oracle-l-bounce_at_freelists.org [oracle-l-bounce_at_freelists.org] On Behalf Of Bobak, Mark [Mark.Bobak_at_proquest.com] Sent: Wednesday, June 03, 2009 4:30
To: Tanel Poder; oracle-l_at_freelists.org Subject: RE: what package/procedure did SQL come from?
The amusing part is how I first learned of this X$.....
Years ago, in the days of 8i, I think, I found a script on MetaLink that would provide the name of the stored PL/SQL object, given a SQL statement. But, the script itself was wrapped PL/SQL. The ironic part was, the string 'X$KGLRD' was visible, even in the wrapped source. :-)
Once I noticed that, it didn't take too long for me to experiment a bit and figure out how to directly use this X$, so I no longer needed the wrapped PL/SQL. :-) So, in this case, at least, wrapping wasn't very effective... :-)
P.S. FYI, I just did a MetaLink search on x$kglrd, and got a couple of hits on a script that shows an example of how to join to x$kglob and x$kglcursor.
From: Tanel Poder [tanel_at_poderc.com]
Sent: Wednesday, June 03, 2009 4:16
To: Bobak, Mark; oracle-l_at_freelists.org Subject: RE: what package/procedure did SQL come from?
Nice one, Mark!
I thought that v$object_dependency had x$kglrd in it too but I just checked, it only has x$kgldp..
-- Regards, Tanel Poder http://blog.tanelpoder.comReceived on Wed Jun 03 2009 - 03:56:54 CDT
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Bobak, Mark
> Sent: 03 June 2009 01:35
> To: kylelf_at_gmail.com; oracle-l_at_freelists.org
> Subject: RE: what package/procedure did SQL come from?
> Ah ha!
> I was thinking about this yesterday....I could have sworn I
> learned this at some point in the past, but then
> forgot....and after much digging yesterday, I got busy w/
> other stuff and forgot about it.
> Well, today, I was swamping though some X$ tables, in pursuit
> of other information, and I stumbled across it!!
> See X$KGLRD for the information you're looking for!
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-l