dbTalk Databases Forums  

transaction logs filling up: detect offending job

comp.databases.ingres comp.databases.ingres


Discuss transaction logs filling up: detect offending job in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Ingres Forums
 
Posts: n/a

Default Re: transaction logs filling up: detect offending job - 10-28-2011 , 10:17 AM






dejan;39974 Wrote:
Quote:
Well, only elite professionals are using Ingres, so there is no need for
DbAnalyser and similar tools.
That is pretty much verbatim what I was usually told.


--
rhann

Reply With Quote
  #22  
Old   
Paul Mason
 
Posts: n/a

Default Re: [Info-Ingres] transaction logs filling up: detect offending job - 10-28-2011 , 10:31 AM






On Wed, 26 Oct 2011 02:59:35 -0700 (PDT)
seldom isnice <seldomisnice248 (AT) gmail (DOT) com> wrote:

Quote:
Is there any way to identify the culprit that is causing the
transaction logs to fill ? Is there some kind of monitoring that would
cross-reference the tx logs to the unix process?

I realise the discussion has moved on a little but I thought I'd share
something from a doc I wrote a while back about identifying the oldest
transactions in the log file via IMA.

The following query almost gives the information required:

SELECT l.tx_server_pid,
l.tx_session_id,
d.server
FROM ima_log_transactions l,
ima_dbms_server_parameters d
WHERE l.tx_status LIKE 'ACTIVE%'
AND l.tx_server_pid=d.server_pid
ORDER BY l.tx_first_log_address

This will give us the server pid, server id and session id of all
active transactions in the logging system ordered by the first log
address of the transaction.

However log addresses are in this form <sequence_no, block,
block_offset> and the column tx_first_log_address is a character type
so the sorted output would like this:

<1119133361,15171,868>
<1119133361,151174,208>
<1119133361,15276,2800>

When what is required is this:

<1119133361,15171,868>
<1119133361,15276,2800>
<1119133361,151174,208>

In order to get around this the individual elements of the log address
are needed so that they can be sort numerically. The ima table
"ima_log_transactions" doesn't provide this, so it is necessary to
define a new one.

The attached copy.in defines a table "pm_ima_log_transactions" which
has the additional columns tx_first_log_addr_seq,
tx_first_log_addr_block and tx_first_log_addr_offset

To create this table within an ima database

sql -u\$ingres imadb < copy.in

Then execute the following SQL which will retrieve the active logfile
transactions ordered oldest to newest:

SELECT p.tx_server_pid,
p.tx_session_id,
d.server
FROM pm_ima_log_transactions p,
ima_dbms_server_parameters d
WHERE p.tx_status LIKE 'ACTIVE%'
AND p.tx_server_pid=d.server_pid
ORDER BY tx_first_log_addr_seq,
tx_first_log_addr_block,
tx_first_log_addr_offset;

This is an example, you could join on ima_server_sessions to find out
more about the sessions associated with these transactions e.g. client
info, current and last query etc.

HTH
Paul

Reply With Quote
  #23  
Old   
Ingres Forums
 
Posts: n/a

Default Re: transaction logs filling up: detect offending job - 10-29-2011 , 02:02 AM



It took us about 6 months 'sf asian escort'
(http://www.sfasianescort.com) to get almost 500 pages. Let's go for 5
months this time. 'sf escorts' (http://www.sfasianescort.com)
"It had to be said. The world is perishing from an orgy of
self-sacrificing." - Howard Roark 'sf escort'
(http://www.sfasianescort.com)
Dean Koontz= Always working! 'sf asian escorts'
(http://www.sfasianescort.com)


--
xliang

Reply With Quote
  #24  
Old   
seldom isnice
 
Posts: n/a

Default Re: transaction logs filling up: detect offending job - 11-05-2011 , 07:35 PM



On Oct 29, 7:02*am, Ingres Forums <info-
ing... (AT) kettleriverconsulting (DOT) com> wrote:
Quote:
It took us about 6 months 'sf asian escort'
(http://www.sfasianescort.com) to get almost 500 pages. Let's go for 5
months this time. *'sf escorts' (http://www.sfasianescort.com)
"It had to be said. The world is perishing from an orgy of
self-sacrificing." - Howard Roark 'sf escort'
(http://www.sfasianescort.com)
Dean Koontz= Always working! 'sf asian escorts'
(http://www.sfasianescort.com)

--
xliang
------------------------------------------------------------------------
xliang's Profile:http://community.actian.com/forum/me...?userid=113378
View this thread:http://community.actian.com/forum/sh...ad.php?t=14026
Regarding DBAnalyser: is this useful ? Even in trial mode?

I tried it and I got the message: Windows is searching for wjview.exe

But that was it

Do I install on Windows or Unix ?

Thanks

Reply With Quote
  #25  
Old   
Roy Hann
 
Posts: n/a

Default Re: transaction logs filling up: detect offending job - 11-06-2011 , 04:31 AM



seldom isnice wrote:

[??! snip]

Quote:
Regarding DBAnalyser: is this useful ? Even in trial mode?

I tried it and I got the message: Windows is searching for wjview.exe

But that was it

Do I install on Windows or Unix ?
DBAnalyzer consists of several components. The server-side Monitor has
to be installed on the Ingres DBMS host. It's job is to probe the
Ingres processes at intervals to obtain various metrics and snapshots of
running sessions. It also generates the values for derived performance
tables that give information about rates and durations. (For example it
calculates cache attempt rates, I/O rates, logging rates and so on.)

You need to install the server-specific Monitor appropriate for your
system. Currently only Linux and Solaris are supported.

There are several clients that can access the performance database.
There is the Sentinel, which runs on the server. It detects problems
according to alarm definitions which are supplied plus any alarm
defitions that you define for site or application-specific problems.
Rapidly approaching logfull would be one alarm condition. When it
detects an alarm condition the Sentinel generates a report showing
relevant information (e.g. open transactions, queries, log volume,
session owner). The Sentinel can monitor non-ingres resources too, like
disk space. There is another client for doing ad hoc queries of the
performance database.

There are desktop (console) clients for the Monitor and the Sentinel.
These are Java applications so if you install them on a Windows
machine you need to have a Java run-time environment. That wjview.exe
message was probably compaining about no being able to find part of that
environment.

More information can be found at http://www.dmt.com/dba_arch.htm

--
Roy

UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012.
The latest information is available from www.uk-iua.org.uk.

Reply With Quote
  #26  
Old   
Ingres Forums
 
Posts: n/a

Default Re: transaction logs filling up: detect offending job - 11-07-2011 , 09:57 AM



test, please ignore


--
bilgihan

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.