<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Hi Mark,<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">If by the server account you mean the instance owner (typically ingres) then yes as they will have trace point privilege. Your own account may not have that privilege.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">The command to set trace record directory and turn on sc930 do NOT need to be placed in your ESQLC code, you can just do those separately at a terminal monitor connection.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">I think Alex has mentioned that if you have multiple dbms servers running then you will have to connect to each one and issue the statement. To determine if you have multiple servers log in as the instance owner and fire up the iinamu
 command. Type the command 'show servers' and then 'quit' at the prompt. You should see a display like:<o:p></o:p></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">[ingres@ithubII ~]$ iinamu<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">Ingres NAME SERVICE MANAGEMENT UTILITY --<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">-- Copyright (c) 2009 Actian Corporation<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">IINAMU&gt; show servers<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">STAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 34106<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">DASVR&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 45373<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">COMSVR&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 43145<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;;background:yellow;mso-highlight:yellow">INGRES&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 33231 (sole server)</span><span style="font-family:&quot;Courier New&quot;"><o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">IUSVR&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 36993<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">IINMSVR&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 46534<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-family:&quot;Courier New&quot;">IINAMU&gt; quit <o:p>
</o:p></span></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">This says on my instance that I have a single server ...the thing labelled INGRES * ... and it is also configured as a sole server.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">If you are not sure what you have then send the output and we can interpret it for you.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">You mentioned in your other email that sqlca.sqlcode was not &lt; 0&#8230;is it zero? If not what value is it?<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Marty<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText"><span lang="EN-US">-----Original Message-----<br>
From: Mark [mailto:i@dontgetlotsofspamanymore.net] <br>
Sent: 16 May 2018 16:12<br>
To: info-ingres@lists.planetingres.org<br>
Subject: Re: [Info-ingres] Weird problem in Ingres 10</span></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">On Wed, 16 May 2018 12:11:08 &#43;0000, Martin Bowes<o:p></o:p></p>
<p class="MsoPlainText">&lt;martin.bowes@ndph.ox.ac.uk&gt; wrote:<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;Just to expand on Karl's sc930...You may already know this...<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;To turn it on, make a recording directory...mkdir /full/path/to/directory'<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;And then...<o:p></o:p></p>
<p class="MsoPlainText">&gt;sql iidbdb &lt;&lt; SQL_END<o:p></o:p></p>
<p class="MsoPlainText">&gt;set trace record '/full/path/to/directory';<o:p></o:p></p>
<p class="MsoPlainText">&gt;set trace point sc930 1;<o:p></o:p></p>
<p class="MsoPlainText">&gt;\p\g<o:p></o:p></p>
<p class="MsoPlainText">&gt;\q<o:p></o:p></p>
<p class="MsoPlainText">&gt;SQL_END<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">Do I need to run this on the server account?&nbsp; I have implemented it<o:p></o:p></p>
<p class="MsoPlainText">currently in the embedded SQL of my program.<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;FYI. The digit after the sc930 indicates a tracing level, 1 should be sufficient.<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;Run the errant query.<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;And turn off the sc930.<o:p></o:p></p>
<p class="MsoPlainText">&gt;sql iidbdb &lt;&lt; SQL_END<o:p></o:p></p>
<p class="MsoPlainText">&gt;set trace point sc930 0;<o:p></o:p></p>
<p class="MsoPlainText">&gt;\p\g<o:p></o:p></p>
<p class="MsoPlainText">&gt;\q<o:p></o:p></p>
<p class="MsoPlainText">&gt;SQL_END<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;You can now access the recording directory and start scanning the files for any sign of life from your query.<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;Marty<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;-----Original Message-----<o:p></o:p></p>
<p class="MsoPlainText">&gt;From: Karl and Betty Schendel [mailto:schendel@kbcomputer.com]
<o:p></o:p></p>
<p class="MsoPlainText">&gt;Sent: 16 May 2018 12:54<o:p></o:p></p>
<p class="MsoPlainText">&gt;To: Ingres and related product discussion forum<o:p></o:p></p>
<p class="MsoPlainText">&gt;Subject: Re: [Info-ingres] Weird problem in Ingres 10<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;On May 16, 2018, at 7:44 AM, Mark &lt;i@dontgetlotsofspamanymore.net&gt; wrote:<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; On Tue, 15 May 2018 12:27:09 -0400, Karl and Betty Schendel<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; &lt;schendel@kbcomputer.com&gt; wrote:<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&gt; It's certainly not something I have heard of or seen before.&nbsp; Do you have any rules<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&gt; defined on the relevant tables?&nbsp; Try enabling LOG_TRACE if the problem is<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&gt; sufficiently predictable, or do a logdump after the problem occurs if it's not;<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&gt; the idea being to try to see whether you actually got any PUT (insert) or<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&gt; REP (replace) log records that were then rolled back, or whether the insert / update<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&gt; was never executed at all.<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; After enabling log_trace all I got was:<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; <o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt;&nbsp;&nbsp;&nbsp; LOG: SAVEPOINT&nbsp;&nbsp; Size written/reserved:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0/&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; Flags:<o:p></o:p></p>
<p class="MsoPlainText">&gt;&gt; -------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;So the insert/update isn't ever being executed.&nbsp; Either it's failing with some sort of<o:p></o:p></p>
<p class="MsoPlainText">&gt;silent error, which would seem odd, or it's not reaching the backend at all, or<o:p></o:p></p>
<p class="MsoPlainText">&gt;it's being pre-empted by a before rule.&nbsp; I think the next step would be to enable<o:p></o:p></p>
<p class="MsoPlainText">&gt;sc930 tracing and see if the backend is getting the insert-update, and what<o:p></o:p></p>
<p class="MsoPlainText">&gt;end-of-query status it's recording.&nbsp; There should be KB articles on enabling<o:p></o:p></p>
<p class="MsoPlainText">&gt;SC930 tracing.<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;Karl<o:p></o:p></p>
<p class="MsoPlainText">&gt;<o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">&gt;_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">&gt;Info-ingres mailing list<o:p></o:p></p>
<p class="MsoPlainText">&gt;Info-ingres@lists.planetingres.org<o:p></o:p></p>
<p class="MsoPlainText">&gt;http://lists.planetingres.org/mailman/listinfo/info-ingres<o:p></o:p></p>
<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">-- <o:p></o:p></p>
<p class="MsoPlainText">&lt;insert witty sig here&gt;<o:p></o:p></p>
<p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">Info-ingres mailing list<o:p></o:p></p>
<p class="MsoPlainText">Info-ingres@lists.planetingres.org<o:p></o:p></p>
<p class="MsoPlainText">http://lists.planetingres.org/mailman/listinfo/info-ingres<o:p></o:p></p>
</div>
</body>
</html>