Unix Technical Forum

Re: [Info-ingres] copydb script hangs mysteriously

This is a discussion on Re: [Info-ingres] copydb script hangs mysteriously within the Ingres forums, part of the Database Server Software category; --> Hi Paul, What ingres version and patch? Actually the printqry looks pretty good. What do you think is the ...


Go Back   Unix Technical Forum > Database Server Software > Ingres

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:28 PM
Self
 
Posts: n/a
Default Re: [Info-ingres] copydb script hangs mysteriously

Hi Paul,

What ingres version and patch?

Actually the printqry looks pretty good. What do you think is the
problem there?

How many rows are in this table?

The copy has mentioned minpages=10, but hasn't included a
row_estimate. So there shouldn't be many rows, but if there are then
you may be seeing the program grind to a halt due to overflow in the
hash.

Martin Bowes

--
Random Duckman Quote #97:
Duckman: You got anymore of those glues?
Cornfed: Clues.
Duckman: I'm one letter off, crucify me!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 09:28 PM
Paul H
 
Posts: n/a
Default Re: copydb script hangs mysteriously

Hi Martin - thanks for the reply.

Ingres Version = 2.0/9808
Rowcount = 3307

The problem with the printquery is that the last SQL query (the copy
statement) has a Query Text and a Query Send Time, and then instead of
a Query Response Time, it has another Query Text and Query Send Time,
both the same as before. This happens again and again whenever I rerun
the script, and its not something I've seen before.

I'll change the minpages value if needs be - I'm just going with what
copydb created for me based on the data in the table.

Paul

Self wrote:
> Hi Paul,
>
> What ingres version and patch?
>
> Actually the printqry looks pretty good. What do you think is the
> problem there?
>
> How many rows are in this table?
>
> The copy has mentioned minpages=10, but hasn't included a
> row_estimate. So there shouldn't be many rows, but if there are then
> you may be seeing the program grind to a halt due to overflow in the
> hash.
>
> Martin Bowes
>
> --
> Random Duckman Quote #97:
> Duckman: You got anymore of those glues?
> Cornfed: Clues.
> Duckman: I'm one letter off, crucify me!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 09:28 PM
denjo02@hotmail.com
 
Posts: n/a
Default Re: copydb script hangs mysteriously

Paul,

Is there anything written to the errlog.log when you run this copy
statement?

John

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 09:28 PM
martin.bowes@ctsu.ox.ac.uk
 
Posts: n/a
Default Re: [Info-ingres] Re: copydb script hangs mysteriously

Hi Paul,

> Hi Martin - thanks for the reply.
>
> Ingres Version = 2.0/9808
> Rowcount = 3307


That row_count is pretty small! No matter what this shouldn't hang.

Try:
Add a row_estimate=3307 to the copy with clause.
* Alter the script to do the copy before the modify.
* Save the ascii data file aside for the moment, and then try this as a
binary copy.
* Check (using a text editor) that the data in the ascii data file is
sensible

Marty

>
> The problem with the printquery is that the last SQL query (the copy
> statement) has a Query Text and a Query Send Time, and then instead of
> a Query Response Time, it has another Query Text and Query Send Time,
> both the same as before. This happens again and again whenever I rerun
> the script, and its not something I've seen before.
>
> I'll change the minpages value if needs be - I'm just going with what
> copydb created for me based on the data in the table.
>
> Paul
>
> Self wrote:
> > Hi Paul,
> >
> > What ingres version and patch?
> >
> > Actually the printqry looks pretty good. What do you think is the
> > problem there?
> >
> > How many rows are in this table?
> >
> > The copy has mentioned minpages=10, but hasn't included a
> > row_estimate. So there shouldn't be many rows, but if there are then
> > you may be seeing the program grind to a halt due to overflow in the
> > hash.
> >
> > Martin Bowes
> >
> > --
> > Random Duckman Quote #97:
> > Duckman: You got anymore of those glues?
> > Cornfed: Clues.
> > Duckman: I'm one letter off, crucify me!

>
> _______________________________________________
> Info-ingres mailing list
> Info-ingres@cariboulake.com
> http://mailman.cariboulake.com/mailm...py/info-ingres
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 09:28 PM
Paul H
 
Posts: n/a
Default Re: copydb script hangs mysteriously

Haha - problem solved!

>Is there anything written to the errlog.log when you run this copy
>statement?


Yes, there was:

>Wed Oct 26 09:30:43 2005 E_DM9711_SR_OPEN_ERROR Error occurred opening
>sort work file -- path = /NIHE/tmp/ingres/work/default/pregion3, file = g4aaabtk.o00.


Basically, the Ingres temporary work directory for the database in
question didn't exist. We lost this area of the hard disk some time
ago, and have been creating the directories for the different databases
one by one as we need them. We don't use this particular database very
often, but I hadn't realised that there might have been a problem here
(particularly since I had done another table change on that database
yesterday, without errors).

I've created the work directory, and the copy.in script works fine now
- thanks for the help, guys.

:-)

Paul

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 09:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com