RE: [Info-ingres] Where to look for more debugging info (Embedded SQL Fortran)?
- From: "Peter Gale" <PGale@xxxxxxxxxxxxxxx>
- Date: Thu, 18 May 2006 21:10:28 +0100
Hi Jim,
You do not need any privileges for printqry tracing as I described. What
errors did you get?
--
Peter
T: +44 (0)1398 341777
PGale@xxxxxxxxxxxxxxx
-----Original Message-----
From: info-ingres-admin@xxxxxxxxxxxxxxx
[mailto:info-ingres-admin@xxxxxxxxxxxxxxx] On Behalf Of J. F. Cornwall
Sent: 18 May 2006 20:12
To: info-ingres@xxxxxxxxxxxxxxx
Subject: Re: [Info-ingres] Where to look for more debugging info (Embedded
SQL Fortran)?
Peter Gale wrote:
Hi Jim,
From what you are saying it would seem that a rule is firing on the last
DELETE which raises and error and causes the rollback.
You can trace rule and procedure execution using 'set printrules' thus
(assuming korn shell)
export ING_SET='set printqry;set printrules'
export II_EMBED_SET='printtrace;tracefile trace.txt'
then run the program.
The qry trace and rule firings will be in the trace.txt file which will
hopefully allow you to see which rule is causing the problem.
The SQL reference manual explains all the options for tracing with the SET
sql statement. The System Reference Manual explains the use of environment
variables for tracing. Hopefully you have the 2.6 editions but if not you
can download the 2006 documents from
www.ingres.com/products/Prod_Download_Documents.html
Thanks much. I tried the printtrace, but it seems I don't have the
necessary privileges for it. However, talking to our database designer
we thought perhaps there was some agressive optimzing of the query
string being done "under the hood", so I added a COMMIT after each
operation to prevent the UPDATEs froim being optimaized out of
existence. It seems to work now, so our Ops folks are going to build
and install a new production version for further testing.
Thanks again,
Jim
Hope that helps.
--
Peter Gale
Managing Director
Comprehensive Solutions International
T: +44 (0)1398 341777 M: +44 (0)7831 513181
PGale@xxxxxxxxxxxxxxx www.Comp-Soln.co.uk
"Business Savvy. IT Smart" R
_______________________________________________
Info-ingres mailing list
Info-ingres@xxxxxxxxxxxxxxx
http://mailman.cariboulake.com/mailman/listinfo.py/info-ingres
.
- Prev by Date: Re: Where to look for more debugging info (Embedded SQL Fortran)?
- Next by Date: [Info-ingres] Ingres 2006 on Linux
- Previous by thread: Re: [Info-ingres] Where to look for more debugging info (Embedded SQL Fortran)?
- Next by thread: embedded QUEL in a C program
- Index(es):
Relevant Pages
|