Subject | Re: HELP! Stored procedure with infinite loop killed the database |
---|---|
Author | wperdigao |
Post date | 2004-05-27T05:12:38Z |
Hi, Helen
Actually, when you mentioned that the DLL might still be in memory, I
checked and even though the Guardian and Firebird services were
stopped, there was still a Firebird process running in the
background. Once I killed that process, I was able to connect to the
database. Thanks for the help.
Regards,
Walter
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
Actually, when you mentioned that the DLL might still be in memory, I
checked and even though the Guardian and Firebird services were
stopped, there was still a Firebird process running in the
background. Once I killed that process, I was able to connect to the
database. Thanks for the help.
Regards,
Walter
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 03:32 AM 26/05/2004 +0000, you wrote:hung
> >If anyone can help, that would be great.
> >
> >I created a stored procedure that used a WHILE...DO loop and the
> >first time I tried running it, the query never returned data and
> >IBExpert. I had to kill the process in Windows XP.I
> >
> >I suspect that the WHILE...DO loop was caught in an infinite loop.
> >read somewhere that Firebird doesn't have a timeout value forstored
> >proc's.first
> >
> >Anyway, ever since then I can't connect to the database -- it
> >complained first of something like "exclusive lock permits further
> >execution of commands" or something similar in IBExpert when I
> >tried to reconnect.now.
> >
> >Now IBExpert just hangs. Using GFIX returns with an "unavailable
> >database" message.
> >
> >Any ideas how to recover the database? I'd seriously like to use
> >Firebird in a production environment, but I'm a little cautious
> >A silly (and pretty common scenario during unit testing) thing likeand
> >an infinte loop in a stored proc has brought down my test server
> >I haven't been able to find any info on how to recover from it.is a DLL,
> >
> >Any help or suggestions would be greatly appreciated!
>
> It sounds as if you were running the Embedded server. Since that
> and you crashed it to stop it, you'll have to reboot the machine toget rid
> of it from memory.have
>
> If it had been Superserver, and you crashed it, the Guardian might
> tried to restart it. In that case, provided it did restart, youshould
> have been able to open a new "first connection". (That's why Ithink you
> were running Embedded).message.
>
> If it had been Classic, you wouldn't have got the exclusive lock
>people to
> Whatever, it's extremely unlikely that you have a corrupted
> database. Provide enough information about your setup to enable
> offer suggestions that are not just wild guesses.
>
> /heLen