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: sysadmin:ph_alert cleanup

Posted By: FRANK
Date: Wednesday, 24 October 2012, at 10:39 a.m.

In Response To: Re: sysadmin:ph_alert cleanup (John Miller iii)

Thanks a lot , John!

I would like to do a TRUNCATE ph_alert first before recreating the
function, what do you think? ( because I want to release its occupied
spaces, a great deal of)

Normally I am very reluctant/cautious to do any thing on a table which is
not maintained by me.

Thanks again!
Frank

On Tue, Oct 23, 2012 at 9:54 PM, John Miller iii <miller3@us.ibm.com> wrote:

> Frank:
>
> Option #1 will take effect immediately after recreating the function,
> while option #2 will be useful if you setup a new instance. If
> you are not planning re-initializing your system I would just re-create
> the function.
>
> ids-bounces@iiug.org wrote on 10/23/2012 10:55:16 AM:
>
> > From: "FRANK" <yunyaoqu@gmail.com>
> > To: ids@iiug.org,
> > Date: 10/23/2012 05:42 PM
> > Subject: Re: sysadmin:ph_alert cleanup [28619]
> > Sent by: ids-bounces@iiug.org
> >
> > John,
> >
> > Which do recommend?
> >
> > (1) drop and recreate the function AlertCleanup in sysadmin database,
> >
> > or
> >
> > (2) manually change the $INFORMIXDIR /etc/sysadmin /sch_tasks.sql
> >
> > Thanks,
> > Frank
> >
> > On Tue, Oct 23, 2012 at 1:41 PM, FRANK <yunyaoqu@gmail.com> wrote:
> >
> > > John,
> > >
> > > This is exactly I just found,
> > >
> > > You can see,
> > >
> > > select count(alert_task_seq)
> > > from ph_alert
> > > where alert_task_seq not in (
> > > select run_task_seq
> > > from ph_run);
> > >
> > > (count) 1240088
> > >
> > > So, the original Equal Join in AlertCleanup(task_id INTEGER, ID
> INTEGER)
> > > will miss the above rows.
> > >
> > > So, I just need manually add a " OUTER" in the FROM clause of the
> > > AlertCleanup() function , correct?
> > >
> > > Thanks,
> > > Frank
> > >
> > > On Tue, Oct 23, 2012 at 1:15 PM, John Miller iii <miller3@us.ibm.com>
> > > wrote:
> > >
> > > > I believe you might have encountered an upgrade defect IC85171
> > > >
> > > > You can fix it very easily by upgrading the procedure in the sysadmin
>
> > > > database
> > > > called AlertCleanup() show below. The change in the procedure is to
> do
> > > > an OUTER join between ph_alert and ph_run tables.
> > > >
> > > > CREATE FUNCTION AlertCleanup(task_id INTEGER, ID INTEGER)
> > > >
> > > > RETURNING INTEGER
> > > >
> > > > DEFINE cur_run_id LIKE ph_run.run_id;
> > > > DEFINE cur_id LIKE ph_alert.id;
> > > > DEFINE count INTEGER;
> > > >
> > > > LET count =0;
> > > >
> > > > FOREACH SELECT id, run_id
> > > >
> > > > INTO cur_id, cur_run_id
> > > >
> > > > FROM ph_alert, OUTER ph_run
> > > >
> > > > WHERE ph_alert.alert_task_id = ph_run.run_task_id
> > > >
> > > > AND ph_alert.alert_task_seq = ph_run.run_task_seq
> > > >
> > > > AND alert_time < (
> > > >
> > > > SELECT current - value::INTERVAL DAY to SECOND
> > > >
> > > > FROM ph_threshold
> > > >
> > > > WHERE name = 'ALERT HISTORY RETENTION' )
> > > >
> > > > DELETE FROM ph_run where run_id = cur_run_id;
> > > >
> > > > DELETE FROM ph_alert where id = cur_id;
> > > >
> > > > LET count = count + 1;
> > > >
> > > > END FOREACH
> > > >
> > > > RETURN count;
> > > >
> > > > END FUNCTION;
> > > >
> > > > John F. Miller III
> > > > STSM, Embedability Architect
> > > > miller3@us.ibm.com
> > > > 503-578-5645
> > > > IBM Informix Dynamic Server (IDS)
> > > >
> > > > ids-bounces@iiug.org wrote on 10/23/2012 08:54:13 AM:
> > > >
> > > > > From: "FRANK" <yunyaoqu@gmail.com>
> > > > > To: ids@iiug.org,
> > > > > Date: 10/23/2012 08:57 AM
> > > > > Subject: Re: sysadmin:ph_alert cleanup [28614]
> > > > > Sent by: ids-bounces@iiug.org
> > > > >
> > > > > Hi, Jacques,
> > > > >
> > > > > It was/is enabled,
> > > > >
> > > > > tk_id 14
> > > > > tk_name Alert Cleanup
> > > > > tk_description Remove all old alert entries from the system.
> > > > > tk_type TASK
> > > > > tk_sequence 546
> > > > > tk_result_table
> > > > > tk_create
> > > > > tk_dbs sysadmin
> > > > > tk_execute AlertCleanup
> > > > > tk_delete 0 01:00:00
> > > > > tk_start_time 02:00:00
> > > > > tk_stop_time
> > > > > tk_frequency 1 00:00:00
> > > > > tk_next_execution 2012-10-23 17:56:33
> > > > > tk_total_executio+ 546
> > > > > tk_total_time 106.2778002257
> > > > > tk_monday t
> > > > > tk_tuesday t
> > > > > tk_wednesday t
> > > > > tk_thursday t
> > > > > tk_friday t
> > > > > tk_saturday t
> > > > > tk_sunday t
> > > > > tk_attributes 404
> > > > > tk_group SERVER
> > > > > tk_enable t
> > > > > tk_priority 0
> > > > >
> > > > > The following are the content info of the table, you can see its
> > > > > accumulation.
> > > > >
> > > > > select count(*) from ph_alert;
> > > > > (count(*)) 1739652
> > > > >
> > > > > select alert_type, count(*) from ph_alert group by 1;
> > > > > alert_type (count(*))
> > > > > WARNING 1665166
> > > > > INFO 74486
> > > > >
> > > > > select min (alert_time), max(alert_time) from ph_alert;
> > > > > (min) (max)
> > > > > 2011-04-26 17:56:34 2012-10-23 15:45:17
> > > > >
> > > > > Somewhere to adjust its cleanup criteria?
> > > > >
> > > > > Thanks,
> > > > > Frank
> > > > >
> > > > > On Tue, Oct 23, 2012 at 11:13 AM, JACQUES RENAUT
> <jrenaut@us.ibm.com>
> > > > wrote:
> > > > >
> > > > > > Original post:
> > > > > >
> > > > > > Fernando,
> > > > > >
> > > > > > We do not think we ever touched that task since installation.....
>
> > > Where
> > > > is
> > > > > > it ? and how to enable it?
> > > > > >
> > > > > > Thanks,
> > > > > > Frank
> > > > > >
> > > > > > Response:
> > > > > >
> > > > > > In the sysadmin database you can look at the ph_task table to see
> all
> > > > the
> > > > > > defined tasks... you can just do a select * from ph_task. If the
> > > > tk_enable
> > > > > > field is set to 't' it's enabled, if it is set to 'f' it isn't. I
>
> > > > believe
> > > > > > you
> > > > > > are looking for the task where tk_name = "Alert Cleanup"...which
> > > calls
> > > > a
> > > > > > spl
> > > > > > AlertCleanup() which you can see the code for in
> > > > > > $INFORMIXDIR/etc/sysadmin/sch_tasks.sql.
> > > > > >
> > > > > > Jacques Renaut
> > > > > > IBM Informix Advanced Support
> > > > > > APD Team
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>
>
> *******************************************************************************
>
> > > >
> > > > > > Forum Note: Use "Reply" to post a response in the discussion
> forum.
> > > > > >
> > > > > >
> > > > >
> > > > > --f46d04428c6ef5a58804ccbbfa6c
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>
>
> *******************************************************************************
>
> > > >
> > > > > Forum Note: Use "Reply" to post a response in the discussion forum.
>
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>
>
> *******************************************************************************
>
> > > > Forum Note: Use "Reply" to post a response in the discussion forum.
> > > >
> > > >
> > >
> > > --90e6ba6e8f6cdf1d9604ccbd7b17
> > >
> > >
> > >
> > >
> >
>
>
> *******************************************************************************
>
> > > Forum Note: Use "Reply" to post a response in the discussion forum.
> > >
> > >
> >
> > --e89a8f2344e9cc52db04ccbdab74
> >
> >
> >
>
>
> *******************************************************************************
>
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
>
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>

--14dae9340cf34ddce104cccf0e3c

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.