Unix Technical Forum

copydb fails due to 2 GB limit

This is a discussion on copydb fails due to 2 GB limit within the Ingres forums, part of the Database Server Software category; --> On Intel Linux, Ingres 2.6/0305 a copydb fails when the size of the binary file reaches the size of ...


Go Back   Unix Technical Forum > Database Server Software > Ingres

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:11 PM
eteunisse
 
Posts: n/a
Default copydb fails due to 2 GB limit

On Intel Linux, Ingres 2.6/0305 a copydb fails when the size of the
binary file reaches the size of 2 GB.

In some (old) threads I read that the Linux version of Ingres does not
support files larger than 2 GB. Is that correct?

If it is: How can I unload the table (18 GB) that gives the problem?

If it is not: Is it a Linux problem?

Thanks,

Erwin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 08:11 PM
Paul Mason
 
Posts: n/a
Default Re: [Info-ingres] copydb fails due to 2 GB limit

On 8 Jun 2005 02:02:48 -0700, eteunisse <eteunisse@gmail.com> wrote:
> On Intel Linux, Ingres 2.6/0305 a copydb fails when the size of the
> binary file reaches the size of 2 GB.
>
> In some (old) threads I read that the Linux version of Ingres does not
> support files larger than 2 GB. Is that correct?
>


It's true. Ingres 2.6 supports kernel versions that may not
necessarily have large file support.

> If it is: How can I unload the table (18 GB) that gives the problem?
>


Named pipes.

1) create a named pipe (aka fifo)

mkfifo myfifo

2) create a background process to read from it

gzip < myfifo > file.dat.gz &

3) edit your copy.out to write to the fifo rather than a file

copy(...
...
into 'myfifo'

4) run the copy.out

sql mydb < copy.out

To reload do the reverse

Step 1 is the same

2*) gunzip -c < file.data.gz > myfifo &

3*) copy(...
...
from 'myfifo'

4*) sql mydb < copy.in

Technically you don't need to compress - you could use cat instead of
gzip - provided your kernel and filesystem support > 2Gb files.

> If it is not: Is it a Linux problem?


It's an Ingres 2.6 limitation, but it could also be a Linux limitation too.

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



--
Paul Mason

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 08:12 PM
eteunisse
 
Posts: n/a
Default Re: copydb fails due to 2 GB limit

Thanks Paul!

Very efficient solution!

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 10:32 PM.


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