Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 923

Re: Analyze Capture fails in Workload Analyzer

$
0
0

NOTE: Not sure how much troubleshooting you've done so far .. so some of this may be a repeat of what you already know ... ymmv ...

 

I'm looking at the installsybcatdb script that comes with ASE 16.0 SP02 PL03 and I'm not seeing anything (obviously) wrong with the T-SQL code:

 

- a table is created called t_baseprocedures (procname varchar(100), proctext varchar(16100))

 

- an entry is added to t_baseprocedures:

 

     insert into t_baseprocedures values ('p_addcapreqtds',"create procedure p_addcapreqtds ....")

 

- a proc named p_setupanalysisenv cursors through t_baseprocedures replacing the proc name with 'proc name' + "_cap" + <number>, and then uses the new source code to create a new proc:

 

     @newprocname = @procname + "_cap" + @logicalcapid

     @proctext = str_replace(@proctext, @procname, @newprocname)

     ....

     exec(@proctext)

 

------------------

 

I'm not at the point (yet) of creating a ASE 16.0 server, but running the above code snippets (via isql) in a ASE 15.7 dataserver shows no problems with generating the proc 'p_addcapreqtds_cap_5'

 

For your situation, it sounds like the installsybcapdb script was installed (ie, p_setupanalysisenv is being run but the exec(@proctext) is failing) but there's either a problem with your installsybcapdb script, or a bug with the client application (COCKPIT?) that installed the script, sooooo, short of opening a case with tech support, I'm wondering if you can troubleshoot (and fix) the issue yourself?

 

Have you reviewed the installsybcapdb script for any glaring issues with the T-SQL code (eg, missing space between the 'procedure' and 'p_addcapreqtds' strings where the record is added to the t_baseprocedures table)?

 

Could you look at the following items in your sybcatdb database:

 

- has the t_baseprocedures table been created?

 

- does the following return anything:

 

     select * from t_baseprocedures where procname = 'p_addcapreqtds'

 

- if the above does return a record, does the source code include a space between the words 'procedure' and 'p_addcapreqtds'?

 

- if the space is missing, update the record to include a space between 'procedure' and 'p_addcapreqtds' [NOTE: You'll probably want to review the other chunks of source code in t_baseprocedures for any other syntax issues)

 

- can you manually create the proc in question (p_addcapreqtds_cap_5) by running the following:

 

     exec p_setupanalysisenv 5

 

- if calling the proc generates an error, take a look at the source code for p_setupanalysisenv, perhaps add some 'print' commands before and after modifying @proctext ... see if that shines a light on the issue?


Viewing all articles
Browse latest Browse all 923

Trending Articles