Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to trace what is happening inside the stored procedure
on 2/6/05 2:56 PM, Nuno Souto at dbvision_at_iinet.net.au wrote:
> Tim Gorman apparently said,on my timestamp of 7/02/2005 4:40 AM:
>
>> >> The session info (i.e. V$SESSION) is not the only place where MODULE and >> ACTION are used. If you notice, they are also used in the Library Cache, in >> the Shared SQL Area, as exposed by the V$SQL view. Thus, the same SQL >> statement executed while either MODULE or ACTION have different values will >> result in a new entry in V$SQL.
I said that MODULE and ACTION become part of a "unique key" of V$SQL, in addition to being posted within V$SESSION. It turns out that it is not. They are just recorded in V$SQL when the SQL is parsed. My bad...
>
>> So, MODULE and ACTION are also taking up space in the Shared Pool, as well >> as the session global areas. Not only are they taking up space, but they >> are being used as part of a "primary key" value. Like any other "primary >> key" then, there are a lot of good reasons to keep the values concise.
I was wrong about them being used as a unique key (as mentioned above), so that's a moot point.
But if you're in the habit of building apps with mile-long unique/primary key values, then I hope I never have to maintain or replicate from applications you've designed or built.
>
>> Besides, what's wrong with 32 bytes and 48 bytes? If you can't say >> something unique in 32-48 characters, it's probably not worth saying.
Then don't do that.
Besides, wouldn't you be better off using the SET_SESSION_LONGOPS procedure in the DBMS_APPLICATION_INFO package to put that type of stuff (i.e. counters, progress, etc) to the V$SESSION_LONGOPS view? MODULE, ACTION, and CLIENT_INFO are not the only option for that type of information...
>
>> Reference "The Elements of Style" by Strunk and White... :-)
Then you've not referenced it. It is about being concise. Kernighan and Plauger found that message relevant enough to pay homage with "The Elements of Programming Style" in 1978. It has everything to do with writing in general, whether prose or programming.
>
>> So, I wouldn't call it "short-sightedness", but I would call it poor >> documentation...
You feel that the DBMS_APPLICATION_INFO package is well documented?
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Feb 06 2005 - 22:44:50 CST
![]() |
![]() |