Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

RE: Turning on logging for DDL and DML

Posted By: Paul Watson
Date: Wednesday, 2 September 2015, at 2:23 p.m.

In Response To: RE: Turning on logging for DDL and DML (Palmer, George)

try this - just comment out the stuff you don't need

select sysadmin:task('set sql tracing off') as sql from
sysmaster:sysdual

union all select sysadmin:task("set sql user tracing off") from
sysmaster:sysdual -- USER mode
union all select sysadmin:task("set sql user tracing clear") from
sysmaster:sysdual -- USER mode
union all select sysadmin:task('set sql tracing user clear') from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing database clear') from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing session', 'clear') from
sysmaster:sysdual

union all select sysadmin:task('set sql tracing info') from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing database list') from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing user list') from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing session list') from
sysmaster:sysdual

union all select sysadmin:task('set sql tracing database add','testdb')
from sysmaster:sysdual
union all select sysadmin:task('set sql tracing user add','oninit') from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing user add','informix')
from sysmaster:sysdual
union all select sysadmin:task('set sql tracing session','on', sid) from
sysmaster:syssessions where username = 'localuser' and (sid in (0) or pid
in (0))
union all select sysadmin:task('set sql user tracing on ', sid) from
sysmaster:syssessions where username = 'localuser' and (sid in (0) or pid
in (0))
union all select sysadmin:task('set sql user tracing on ', 354851) from
sysmaster:sysdual
union all select sysadmin:task('set sql tracing
on',150000,'4000b','high','user') from sysmaster:sysdual
;

> SQLTRACE can be turned on for all sessions in an instantance, a singles DB
> ,
> or a single user ( and other filters too )
> I find it best to turn it on using the function "task" or "admin " from
> inside
> the sysadmin DB ( the other whay involves bouncing the engine and an
> onconfig
> parameter which will start a monitor job inside the sysadmin DB which can
> consume a lot of disk space )
>
> It is probably easiest to Google "Informix SQLRACE" and read about it
> online.
>
> Be careful about the trace memory ( it comes from SHMVIRT and if you have
> limits on memory it can run them up high if you set the parameters high )
>
> George.
>
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> LARRY
> SORENSEN
> Sent: Wednesday, September 02, 2015 10:57 AM
> To: ids@iiug.org
> Subject: RE: Turning on logging for DDL and DML [35713]
>
> I have seen SQLTRACE in a dbaccess session where I was running ad hoc
> queries,
> but is it something that can be set up to collect data for outside
> applications as well?
>
> Larry
>
>> To: ids@iiug.org
>> From: George.Palmer@starwoodhotels.com
>> Subject: RE: Turning on logging for DDL and DML [35712]
>> Date: Wed, 2 Sep 2015 12:10:38 -0400
>>
>> It might be possible to get what you want with SQLTRACE, It can be
>> setup dynamically, its included in the engine, has the rolling log you
>> are asking for, It can be a memory hog f you need to collect a bunch
>> of SQL .
>>
>> It might be worth a quick look.
>>
>> George.
>> -----Original Message-----
>> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
>> LARRY SORENSEN
>> Sent: Wednesday, September 02, 2015 9:48 AM
>> To: ids@iiug.org
>> Subject: RE: Turning on logging for DDL and DML [35711]
>>
>> Thank you for the information.
>>
>> Larry
>>
>> > To: ids@iiug.org
>> > From: paul@oninit.com
>> > Subject: Re: Turning on logging for DDL and DML [35710]
>> > Date: Wed, 2 Sep 2015 11:44:55 -0400
>> >
>> > iwatch is free if you don't want support
>> >
>> > > Larry:
>> > >
>> > > There are two third party tools that you can use to capture 100%
>> > > of the SQL (DDL & DML) that is issued against a server including
>> > > information about the client's issuing the commands:
>> > >
>> > > SQL Power Tools - from SQL Power Tools, Inc, -
>> > > http://www.sqlpower.com/ - Can capture 100% of queries issued over
>> > > TCP/IP and load then into a repository (currently SQL Server but
>> > > they are working using an Informix
>> > > repository) from which their GUI viewer can display, manipulate,
>> > > and report. Display is not real time as the data is captured in
>> > > blocks of queries into flat files and bulk loaded into the
>> > > repository
>> periodically.
>> > > Uses a network sniffer utility on the server or a separate box
>> > > that has near zero impact on the server itself for capture.
>> > >
>> > > iWatch - from Exact-Solutions, Inc. - www.exact-solutions.com -
>> > > Can capture 100% of queries issued over TCP/IP and load then into
>> > > a proprietary repository. Can display real time capture. Uses a
>> > > network sniffer utility on your server or a sniffer appliance (for
>> > > very high transaction rate
>> > > systems) that has very low impact on the server.
>> > >
>> > > iWatch captures and reports some more detail on query performance
>> > > metrics, has real-time capability, and a more sophisticated GUI
>> > > but is more expensive. Both will do the job for you.
>> > >
>> > > Art
>> > >
>> > > Art S. Kagel, President and Principal Consultant ASK Database
>> > > Management www.askdbmgt.com
>> > >
>> > > Blog: http://informix-myview.blogspot.com/
>> > >
>> > > Disclaimer: Please keep in mind that my own opinions are my own
>> > > opinions and do not reflect on the IIUG, nor any other
>> > > organization with which I am associated either explicitly,
>> > > implicitly, or by inference. Neither do those opinions reflect
>> > > those of other individuals affiliated with any entity with which I
>> > > am affiliated nor
>> those of the entities themselves.
>> > >
>> > > On Wed, Sep 2, 2015 at 9:28 AM, LARRY SORENSEN
>> > > <lsorensen25@msn.com>
>> > > wrote:
>> > >
>> > >> That helps a little. Is there any way to actually capture the DML
>> > >> that was run. It the example on the link, it had kind of a
>> > >> cryptic line representing an insert.
>> > >>
>> > >> Larry
>> > >>
>> > >> > To: ids@iiug.org
>> > >> > From: khaled.bentebal@consult-ix.fr
>> > >> > Subject: Re: Turning on logging for DDL and DML [35704]
>> > >> > Date: Tue, 1 Sep 2015 22:17:50 -0400
>> > >> >
>> > >> > Hi Larry,
>> > >> >
>> > >> > Are you talking about logging the different types de DDL
>> > >> > instructions
>> > >> (
>> > >> > such as CREATE, ALTER, etc)and the different types of DML
>> > >> > instructions (such as INSERT, SELECT, etc)?
>> > >> >
>> > >> > If so there is no Informix tool that allows you to do that
>> directly.
>> > >> > However, there is an AUDIT tool called *onaudit* that allows to
>> > >> > log
>> > >> all
>> > >> > kinds of operations (success or failure of the operation). This
>> > >> > tool also allows you to log operations such onmode, etc.
>> > >> > However, it is not based on the SQL operations but uses special
>> > >> > mnemonics instead to tell onaudit to log lower level operations.
>> > >> >
>> > >> > Check this:
>> > >> >
>> > >> >
>> > >>
>> > >>
>> > >
>> >
>>
>>
>
> http://www-01.ibm.com/support/knowledgecenter/#!/SSGU8G_12.1.0/com.ibm.sec.doc/ids_au_001.htm
>> > >> >
>> > >> >
>> > >> <
>> > >>
>> > >
>> >
>>
>>
>
> http://www-01.ibm.com/support/knowledgecenter/#%21/SSGU8G_12.1.0/com.ibm.sec.doc/ids_au_001.htm
>> > >> >
>> > >> >
>> > >> > RDRW: allows to log any reads of each row ==> so if you want to
>> > >> > log SELECTS, this allows you to log and view all of the rows
>> > >> > read thru the SELECT This fills up your logs very very fast
>> > >> > (since there a RDRW for each
>> > >> row)
>> > >> > and hirts your performance very highly depending what you are
> reading.
>> > >> > Since usually the SELECT represents 80% or more of the
>> > >> > activity, we advise not to log this operation
>> > >> > DLRW: allows you to log deletion of rows==> so a DELETE might
>> > >> > generate thousands of lines DLRW in the audit file generated
>> > >> > UPRW: allows you to log an update of a row
>> > >> > CRTB: logs the Creation of a table
>> > >> > CRDB: logs the Creation of a database
>> > >> > GRDB: logs a grant access to a database etc
>> > >> >
>> > >> > We usually use the mnemonics that we do not get that often in
>> > >> > order
>> > >> not
>> > >> > to jeopardize performance: OPDB open a database for example
>> > >> >
>> > >> > Here follows the onaudit mnemonics:
>> > >> >
>> > >> >
>> > >> >
>> > >>
>> > >>
>> > >
>> >
>>
>>
>
> http://www-01.ibm.com/support/knowledgecenter/#!/SSGU8G_12.1.0/com.ibm.sec.doc/ids_au_104.htm
>> > >> >
>> > >> >
>> > >> <
>> > >>
>> > >
>> >
>>
>>
>
> http://www-01.ibm.com/support/knowledgecenter/#%21/SSGU8G_12.1.0/com.ibm.sec.doc/ids_au_104.htm
>> > >> >
>> > >> >
>> > >> > As far as the logging file, you tell the system where to log
>> > >> > the files
>> > >> > (directory) and the size of the audit files generated. That way
>> > >> > when a log file reaches the maximum size configured, the system
>> > >> > creates
>> > >> another
>> > >> > file for you in the same directory. That way you can purge the
>> > >> > old log files generated. DO not make the log files too files
>> > >> > since these files might fill up too fast and you will have
>> > >> > thousands
> of
>> log files.
>> > >> >
>> > >> > You can load the contents of the logs files generated into a
>> > >> > table and do stats on them afterwards.
>> > >> >
>> > >> > So the onaudit tool is very rich and simple to set up and use.
>> > >> > It
>> > >> exists
>> > >> > in the Informix engine since version 7 of IDS.
>> > >> >
>> > >> > I do not know if this is what you were looking for.
>> > >> >
>> > >> > Cordialement, Regards,
>> > >> >
>> > >> > Khaled Bentebal
>> > >> > Directeur Général - ConsultiX
>> > >> > Tél: 33 (0) 1 39 12 18 00
>> > >> > Fax: 33 (0) 1 39 12 18 18
>> > >> > Mobile: 33 (0) 6 07 78 41 97
>> > >> > Email: khaled.bentebal@consult-ix.fr Site Web:
>> > >> > www.consult-ix.fr
>> > >> >
>> > >> > Le 01/09/15 16:43, LARRY SORENSEN a écrit :
>> > >> > > IDS 11.70.FC7Solaris 10 Sparc Can someone send me a link on
>> > >> > > how to set up DDL and DML logging and
>> > >> how to
>> > >> > > monitor it? Is there a way to get it to overwrite the logs to
>> > >> > > limit
>> > >> the
>> > >> > size?
>> > >> > > Larry
>> > >> > >
>> > >> > >
>> > >> > >
>> > >> >
>> > >>
>> > >>
>> > >
>> >
>>
>>
>
> *******************************************************************************
>> > >> > > Forum Note: Use "Reply" to post a response in the discussion
>> forum.
>> > >> > >
>> > >> > >
>> > >> >
>> > >> >
>> > >> >
>> > >>
>> > >>
>> > >
>> >
>>
>>
>
> *******************************************************************************
>> > >> > Forum Note: Use "Reply" to post a response in the discussion
>> forum.
>> > >> >
>> > >>
>> > >>
>> > >>
>> > >>
>> > >
>> >
>>
>>
>
> *******************************************************************************
>> > >> Forum Note: Use "Reply" to post a response in the discussion forum.
>> > >>
>> > >>
>> > >
>> > > --001a113ecb5aa0ccd2051ec574d5
>> > >
>> > >
>> > >
>> >
>>
>>
>
> *******************************************************************************
>> > > Forum Note: Use "Reply" to post a response in the discussion forum.
>> > >
>> >
>> > --
>> > Paul Watson
>> > Tel: +1 913-674-0360
>> > Mob: +1 913-387-7529
>> > Web: www.oninit.com
>> >
>> > Oninit® is a registered trademark of Oninit LLC
>> >
>> > Failure is not as frightening as regret.
>> > If you want to improve, be content to be thought foolish and stupid.
>> > What this country needs are more unemployed politicians
>> >
>> >
>> >
>>
>>
>
> *******************************************************************************
>> > Forum Note: Use "Reply" to post a response in the discussion forum.
>> >
>>
>>
>>
>
> *******************************************************************************
>> Forum Note: Use "Reply" to post a response in the discussion forum.
>>
>> This electronic message transmission contains information from the
>> Company that may be proprietary, confidential and/or privileged. The
>> information is intended only for the use of the individual(s) or
>> entity named above. If you are not the intended recipient, be aware
>> that any disclosure, copying or distribution or use of the contents of
>> this information is prohibited. If
> you
>> have received this electronic transmission in error, please notify the
> sender
>> immediately by replying to the address listed in the "From:" field.
>>
>>
>>
>
> *******************************************************************************
>> Forum Note: Use "Reply" to post a response in the discussion forum.
>>
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
> This electronic message transmission contains information from the Company
> that may be proprietary, confidential and/or privileged. The information
> is
> intended only for the use of the individual(s) or entity named above. If
> you
> are not the intended recipient, be aware that any disclosure, copying or
> distribution or use of the contents of this information is prohibited. If
> you
> have received this electronic transmission in error, please notify the
> sender
> immediately by replying to the address listed in the "From:" field.
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>

--
Paul Watson
Tel: +1 913-674-0360
Mob: +1 913-387-7529
Web: www.oninit.com

Oninit® is a registered trademark of Oninit LLC

Failure is not as frightening as regret.
If you want to improve, be content to be thought foolish and stupid.
What this country needs are more unemployed politicians

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.