dbTalk Databases Forums  

SQL Anywhere Monitor - query of null

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss SQL Anywhere Monitor - query of null in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian
 
Posts: n/a

Default SQL Anywhere Monitor - query of null - 11-03-2009 , 08:18 AM






We get this message:

A query has been running longer than the 10 s threshold. A query
issued by connection 'Apply' (ID 2,916) has been running for 45 s. The
query is as follows:

null

Any ideas where we are getting null instead of the actual query?

v10.01.3629 database being monitored by v11.0.1.2324 client (on
separate machine from database server).

Thanks,
Brian

Reply With Quote
  #2  
Old   
Dan Petker [Sybase iAnywhere]
 
Posts: n/a

Default Re: SQL Anywhere Monitor - query of null - 11-03-2009 , 09:28 AM






Hi Brian,

The most likely reason why you're not seeing the query text is that the
"RememberLastStatement" server option has been turned off. The SQL
Anywhere Monitor does turn this option on, but another application using
your database could have turned it back off again.

To test to see if RememberLastStatement is on, execute the following in
DBISQL:

SELECT PROPERTY ( 'RememberLastStatement' );

If it is turned off, you can turn it back on by executing the following:

CALL sa_server_option( 'RememberLastStatement','ON' );

Once you've turned it on, you should see the query text in your long
running query alerts.

Dan Petker
iAnywhere Tools Development

Brian wrote:
Quote:
We get this message:

A query has been running longer than the 10 s threshold. A query
issued by connection 'Apply' (ID 2,916) has been running for 45 s. The
query is as follows:

null

Any ideas where we are getting null instead of the actual query?

v10.01.3629 database being monitored by v11.0.1.2324 client (on
separate machine from database server).

Thanks,
Brian

Reply With Quote
  #3  
Old   
Brian
 
Posts: n/a

Default Re: SQL Anywhere Monitor - query of null - 11-03-2009 , 09:40 AM



RememberLastStatement was indeed off. I have changed value and I
think this should resolve our issue.

Thanks,
Brian

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.