Unix Technical Forum

Re: dummy update

This is a discussion on Re: dummy update within the Informix forums, part of the Database Server Software category; --> Just curious: Why do you need to that ? J. tomcaml@yahoo.com escribis: > hello! > > anyone have a ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:36 AM
Jean Sagi
 
Posts: n/a
Default Re: dummy update


Just curious: Why do you need to that ?


J.


tomcaml@yahoo.com escribis:
> hello!
>
> anyone have a script or trick to spit put dummy updates needed for all
> tables in all DB's?
>
> as in, update carriertbl set add_user = add_user where 1=1;
>
>
> thanks!
>
> tom

sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 09:37 AM
tomcaml@yahoo.com
 
Posts: n/a
Default Re: dummy update

i am migrating to v10
but the guide for 9.4 says this under "remove outstanding in-place
alters"

the db server cannot convert if there are any outstanding
in-place alters
remove outstanding in-place alters before converting by
running a 'dummy' update statement against each table

pointed that direction by infx support - does not seem quite right but
that is what it says

and the thread is correct, it will not work to do so against SERIAL
type so thanks much for the replies!


T

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 09:37 AM
Jonathan Leffler
 
Posts: n/a
Default Re: dummy update

tomcaml@yahoo.com wrote:
> i am migrating to v10
> but the guide for 9.4 says this under "remove outstanding in-place
> alters"
>
> the db server cannot convert if there are any outstanding
> in-place alters
> remove outstanding in-place alters before converting by
> running a 'dummy' update statement against each table
>
> pointed that direction by infx support - does not seem quite right but
> that is what it says
>
> and the thread is correct, it will not work to do so against SERIAL
> type so thanks much for the replies!


Look for the Perl script to diagnose tables with outstanding IPAs in the
IIUG archives.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 09:37 AM
vasilis
 
Posts: n/a
Default Re: dummy update

What about this mini SQL ?
-----------------------------------------------------------
-- Find the tables with active in-place alters
-- (detect tables modified by an in-place alter statement)
-- These include tables whose data pages are completely converted to
the new form.
-- oncheck -pT <database>:<table>
--
-- Set OPTCOMPIND to 0 in the configuration file or environment and run
--
-- V.Shulzhenko DBA Tools (by IBM FAQ) 08'2002
-----------------------------------------------------------
set isolation to dirty read;
select pg_partnum + pg_pagenum - 1 partn
from syspaghdr, sysdbspaces a
where pg_partnum = 1048576 * a.dbsnum + 1
and pg_next != 0
into temp _temp_dbatools with no log;
-----------------------------------------------------------
select b.dbsname[1,18] database
,b.tabname[1,18] table
from systabnames b, _temp_dbatools
where partn = partnum
order by 1,2;

and another
-----------------------------------------------------------
-- Find the tables with active in-place alters (2-nd variant)
-- (by UCDI)
-----------------------------------------------------------
set isolation to dirty read;
select t3.dbsname[1,18] database
,t3.tabname[1,18] table
,hex(t2.partnum) partnum_hex
from syspaghdr t1, sysptntab t2, systabnames t3
where t1.pg_flags=2
and t1.pg_next !=0
and t1.pg_physaddr=t2.physaddr
and t2.partnum=t3.partnum
--order by 1,2

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com