Re: runnable process search count
Others have already commented on the fact that ASE's threaded kernel uses a different model than the process kernel. Thread pools have an idle timeout defined in microseconds. Rarely would you need...
View ArticleRe: granular permissions required to see execution plans
What version of ASE are you using (select @@version)? How would the users be accessing query plans? - looking for query plans for their own queries?- looking for query plans of other users and/or...
View ArticleStored procedure waiting too long to start executing
Hi, We have recently migrated from ASE 15.0.3 to ASE 15.7 SP132 on Solaris 10 platform. A 343 line stored procedure was modified to print a timestamp value at the start of the execution along with one...
View ArticleRe: Stored procedure waiting too long to start executing
Too many unknowns at this point ... what your proc is doing, how the ASE is configured, other activity on the ASE, etc, etc, etc. Can you post a (small) proc that reproduces the issue? Alternatively,...
View ArticleRe: Stored procedure waiting too long to start executing
Mark, Thanks for the response. Since it happened in the evening when other stored procedures were running and using tempdb resources, I will try to reproduce it this evening by first dropping and...
View ArticleRe: granular permissions required to see execution plans
Hi Mark,the version is 15.7 as shown below: We have a set of users who want to access all the query plans: How would the users be accessing query plans? -- I'm assuming using sp_showplan to do this -...
View ArticleRe: Stored procedure waiting too long to start executing
Is this delay seen if the procedure is executed a second time fairly soon?As it sounds like it was a constant problem when "with recompile" was on, I'm wondering if a good deal of the time might be in...
View ArticleRe: Stored procedure waiting too long to start executing
Mark/Bret, Bret: Your assumption is correct. The second and subsequent runs execute extremely quickly because the plan is in cache. Also, the stored procedure has a number of complex joins along with...
View ArticleRe: Stored procedure waiting too long to start executing
OK, really slow first run (with tons of cpu usage), really fast second run, definitely sounds like a compilation issue. NOTE: Some of the following may be buried in those stacktraces ... I'll leave...
View ArticleRe: Stored procedure waiting too long to start executing
Mark, First, thanks for taking time to answer this so elaborately! Here are the answers for each of the above sections. optimization timeout limit (default 10)sproc optimize timeout limit (default 40)...
View ArticleRe: Stored procedure waiting too long to start executing
re: estimated execution time The short answer is the optimizer looks at table/index/column stats, optimization goal/options, and query complexity. While you could try tweaking your system to get a more...
View ArticleRe: Why do we need to setup SYBASE environment variables even after...
Hi Kim, Can you please help to explain me the importance of SYBASE.sh, SYBASE.env and SYBASE.csh? What exactly they contain and also their uses? Regards,Dilip Voora
View ArticleRe: Stored procedure waiting too long to start executing
Mark, I repeated Friday's experiment with the session level optimizer goal set to 'allrows_oltp'. The stored procedure compiled and finished execution in 13s. Also, I ensured that the stored procedure...
View ArticleHints to speed-up select into statement
sybase version: Adaptive Server Enterprise/15.0.3/EBF 17686 ESD#1.1 RELSE/P/Sun_svr4/OS 5.8/ase1503/2681/64-bit/FBO/Thu Aug 20 14:20:57 2009Server page size is 4K--Hi all, I'm looking at any hints that...
View ArticleRe: Sybase ASE not able to connect through ConnectionString and DSN ?
You need to run isql -v at the command line to really know which OpenClient (ASE SDK) version you are running. SQL Advantage is loooooong gone. It was the GUI interface for ASE in the 11.x days. Some...
View ArticleRe: Sybase ASE not able to connect through ConnectionString and DSN ?
The thing to remember with a Windows ASE installation is that the Windows ASE service is NOT started using the .bat file. When the ASE is first created using the Windows server configuration utility,...
View ArticleRe: Hints to speed-up select into statement
Hello Simon, As this is not about an ASE for Business Suite environment, I'm moving your question to space SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications. Thank you! Regards, Cris
View ArticleRe: Hints to speed-up select into statement
I'd suggest monitoring the select/into (sp_sysmon while query is running, monProcessWaits, monProcessActivity, etc) for potential performance bottlenecks. Where is most of the 40 mins being used =>...
View ArticleRe: Stored procedure waiting too long to start executing
13 secs still sounds a bit high, but obviously much, Much, MUCH better than what you were seeing before. Improving on the compilation time will likely mean tracking down, and working on, the query(s)...
View Article