Unix Technical Forum

SQL/PL Stored Procedures and SYSIBM.SYSDUMMY1

This is a discussion on SQL/PL Stored Procedures and SYSIBM.SYSDUMMY1 within the DB2 forums, part of the Database Server Software category; --> Hi - a straight-forward question for which I would be grateful for an explanation. Why are ALL SQL/PL Stored ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:30 AM
alex.mcshane@btinternet.com
 
Posts: n/a
Default SQL/PL Stored Procedures and SYSIBM.SYSDUMMY1

Hi - a straight-forward question for which I would be grateful for an
explanation.

Why are ALL SQL/PL Stored Procedures associated with SYSIBM.SYSDUMMY1
even though the latter is NOT directly accessed via SQL within the SP?

Both an Explain against the Plan_Table and SYSPACKDEP state that the
Table is used.
>From the Plan_Table:-

- Lock Mode: UR Isolation
- Access: Sequential Scan / No Index.

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:30 AM
Serge Rielau
 
Posts: n/a
Default Re: SQL/PL Stored Procedures and SYSIBM.SYSDUMMY1

alex.mcshane@btinternet.com wrote:
> Hi - a straight-forward question for which I would be grateful for an
> explanation.
>
> Why are ALL SQL/PL Stored Procedures associated with SYSIBM.SYSDUMMY1
> even though the latter is NOT directly accessed via SQL within the SP?
>
> Both an Explain against the Plan_Table and SYSPACKDEP state that the
> Table is used.
>>From the Plan_Table:-

> - Lock Mode: UR Isolation
> - Access: Sequential Scan / No Index.

The SQL Procedure is doing some basic house-keeping which is done using
SQL Statements.
Keep in mind that SYSIBM.SYSDUMMY1 is just a VIEW over VALUES('Y').
None of these statements ever does an I/O or as much as hit the buffer pool.
There may be some fat in there to reduce basic CPU cycles for trivial
procedures, but that's about it.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com