Unix Technical Forum

recompiling all affected procedure names

This is a discussion on recompiling all affected procedure names within the Sybase forums, part of the Database Server Software category; --> Hello Wise People, I have a newbie question here using Sybase 12. I need to alter a stored proc ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 06:02 PM
Chris Fox
 
Posts: n/a
Default recompiling all affected procedure names

Hello Wise People,

I have a newbie question here using Sybase 12.
I need to alter a stored proc on production.
My boss says I should drop and recreate all stored procs that are dependent
on this stored proc because of some bug that they saw where basically Sybase
did not recognize a need to recompile affected procedures

is there a command to issue in isql that will recompile?

I know they have it in oracle.

thanks for you wizardly advice
Chris


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 06:03 PM
wkraatz@csc.com
 
Posts: n/a
Default Re: recompiling all affected procedure names

I have not seen a need to recompile one stored procedure when another
changes, unless the number or type of passed data items change.

If a table structure changes or the data/statistics change
significantly it is advisable to recompile each stored procedure that
accesses that table. This is done by the sp_recompile <table name> .
I routinely do this each time that I update statistics.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 06:03 PM
wkraatz@csc.com
 
Posts: n/a
Default Re: recompiling all affected procedure names

I have not seen a need to recompile one stored procedure when another
changes, unless the number or type of passed data items change.

If a table structure changes or the data/statistics change
significantly it is advisable to recompile each stored procedure that
accesses that table. This is done by the sp_recompile <table name> .
I routinely do this each time that I update statistics.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 06:03 PM
DBAGAL
 
Posts: n/a
Default Re: recompiling all affected procedure names

Hi Chris!

Just chiming in ... I agree with "wkra" (What's your name hon?) that
there is no need to recompile dependent SP's unless they meet the
criteria he specified ...

Good luck in convincing your boss Chris!

Cheers,

Sara ...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 06:03 PM
wkraatz@csc.com
 
Posts: n/a
Default Re: recompiling all affected procedure names

In the sybase.public.ase.administration newsgroup, the "update
statistics and sp_recompile " question was answered.
Since 12.5.0.3 an update statistics will mark a table for recompile,
eliminating the need to run sp_recompile.

Will.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 06:03 PM
Chris Fox
 
Posts: n/a
Default Re: recompiling all affected procedure names

hi all thanks for the replies
it turns out on 12.0 whatever..
if you increase the tables size
stored procedures on those tables that were altered
need to be dropped and recreated

because of an alignment problem that is not picked up with a recompile

that is the answer that i got from them
they ran into this bug and it was a nightmare

hope this helps and if anyone knows more about it
i'd be interested

chris

<wkraatz@csc.com> wrote in message
news:1126533047.248472.175760@f14g2000cwb.googlegr oups.com...
>I have not seen a need to recompile one stored procedure when another
> changes, unless the number or type of passed data items change.
>
> If a table structure changes or the data/statistics change
> significantly it is advisable to recompile each stored procedure that
> accesses that table. This is done by the sp_recompile <table name> .
> I routinely do this each time that I update statistics.
>



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 02:31 PM.


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