Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > Migration Forum
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-03-02   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 23
Default bulk copy fills transaction log

I have Ingres ver3.0.1 rel109 installed on a Red Hat Advanced v3 server
and am have some trouble using the copy command to migrate data from a
table in Ingres II 2.6/0207 (usl.us5/00) on Unix.

The btree table copies out fine (binary format) and has approx. 22 million
rows. The copy in on the Unix system works but on Linux my 400 Meg
transaction log fills instantly. I've made sure journaling is turned off
but still the log fills. Any help would be appreciated.

Archived post - originally posted at 2005-01-31 05:50:20
robert.littlejohn@resolvecorporation.com is offline   Reply With Quote
Old 2007-03-02   #2 (permalink)
Senior Member
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 912
Default

Well, the general rule is, if any appreciable amount of transaction log is
being used, it's NOT a bulk copy.
Things to check:
- is the table you are copying into a heap?
- if it's not a heap, is it empty and no more than 18 pages in size?
- have you verified that there are no secondary indexes (including indexes
created by constraints)?
- is journaling off (you've already checked this)
- in r3, the table must not be partitioned.
(We'll implement bulk-load of partitioned tables at some point, but other
things have taken priority.)

If you can't figure it out, and if nobody else is using the database, and
if you're willing to trash the table if something goes wrong, then you can
turn on "set nologging" and do the copy. Keep in mind that if anything -
Anything - goes wrong during a nologging update, the database is marked
inconsistent. Don't use nologging unless you know what your recovery plan
is going to be.

Archived post - originally posted at 2005-01-28 14:37:18
kschendel is offline   Reply With Quote
Old 2007-03-02   #3 (permalink)
Senior Member
 
kschendel's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Posts: 912
Default

No, multiple locations is fine.
I mean that the table must not be partitioned with the PARTITION= clause
of the CREATE or MODIFY statement. (A new r3 feature.)

Archived post - originally posted at 2005-01-31 05:50:20
kschendel is offline   Reply With Quote
Old 2007-03-02   #4 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 23
Default

Thanks for your reply - I'm checking now. When you say the table must not
be partitioned - do you mean it can't be spread across mulitple locations?

Archived post - originally posted at 2005-01-28 14:52:47
robert.littlejohn@resolvecorporation.com is offline   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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved