Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 3rd, 2008, 06:05 PM
Patrick Finnegan
Guest
 
Posts: n/a
Default SQLCACHE_SNAPSHOT function returns no records.


Running 8.2.8 on aix.

Any reason why the dynamic cache snapshot function would return no
records?

db2 "SELECT * FROM TABLE (SQLCACHE_SNAPSHOT()) as SQLCACHE_SNAPSHOT"

0 record(s) selected.

I can see that there is dynamic sql in the cache from "db2 get
snapshot".





  #2  
Old September 4th, 2008, 06:56 AM
4.spam@mail.ru
Guest
 
Posts: n/a
Default Re: SQLCACHE_SNAPSHOT function returns no records.

Running 8.2.8 on aix.
Quote:
>
Any reason why the dynamic cache snapshot function would return no
records?
>
db2 "SELECT * FROM TABLE (SQLCACHE_SNAPSHOT()) as SQLCACHE_SNAPSHOT"
>
0 record(s) selected.
>
I can see that there is dynamic sql in the cache from "db2 get
snapshot".
Hello.

Use SNAPSHOT_DYN_SQL function instead:
http://publib.boulder.ibm.com/infoce...n/r0007094.htm

Sincerely,
Mark B.
  #3  
Old September 4th, 2008, 07:55 AM
Mark A
Guest
 
Posts: n/a
Default Re: SQLCACHE_SNAPSHOT function returns no records.

<4.spam@mail.ruwrote in message
news:2a33edd5-82f8-4616-8e67-53b6049b6905@x16g2000prn.googlegroups.com...
Quote:
>
Hello.
>
Use SNAPSHOT_DYN_SQL function instead:
http://publib.boulder.ibm.com/infoce...n/r0007094.htm
>
Sincerely,
Mark B.
I don't think that is the correct one either. The execution time is a bigint
as the number of seconds, with no decimals. I thought they replaced that one
with another updated one in a later fixpack, but even with that one I have
had problems and it never matched the output of the get snapshot command. I
haven't tried the V9 or V9.5 versions.


  #4  
Old September 4th, 2008, 11:45 AM
Patrick Finnegan
Guest
 
Posts: n/a
Default Re: SQLCACHE_SNAPSHOT function returns no records.

On Sep 4, 7:49*am, "Mark A" <some...@someone.comwrote:
Quote:
<4.s...@mail.ruwrote in message
>
news:2a33edd5-82f8-4616-8e67-53b6049b6905@x16g2000prn.googlegroups.com...
>
>
>
Quote:
Hello.
>
Quote:
Use SNAPSHOT_DYN_SQL function instead:
http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2....
>
Quote:
Sincerely,
Mark B.
>
I don't think that is the correct one either. The execution time is a bigint
as the number of seconds, with no decimals. I thought they replaced that one
with another updated one in a later fixpack, but even with that one I have
had problems and it never matched the output of the get snapshot command.I
haven't tried the V9 or V9.5 versions.
Got a result.

SELECT * FROM TABLE (SNAPSHOT_DYN_SQL (' ', -1 ) ) as SNAPSHOT_DYN_SQL

Thanks.
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles