473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Commits on sql questions

Using 6.1, Copying data in one large table to another using sql
and do not know how to issue a commit. (say every 5000 records)
to keep the log files from filling up.

I can find no informations on this...
db2load is not practical here.
Nov 12 '05 #1
3 2741
"Al Murry" <am****@northtech.net> wrote in message
news:pa****************************@northtech.net. ..
Using 6.1, Copying data in one large table to another using sql
and do not know how to issue a commit. (say every 5000 records)
to keep the log files from filling up.

I can find no informations on this...
db2load is not practical here.


Are you sure you can't do an export (with an SQL statement you provide) and
then an import to insert the rows with a commit interval?

If not, you will need to open a select cursor in your program WITH HOLD
option (keeps cursor open even after a commit), fetch the row one at a time,
then insert into other table for each row fetched, then commit at the
desired interval.
Nov 12 '05 #2
On Mon, 20 Oct 2003 16:27:37 +0000, Mark A wrote:
"Al Murry" <am****@northtech.net> wrote in message
news:pa****************************@northtech.net. ..
Using 6.1, Copying data in one large table to another using sql
and do not know how to issue a commit. (say every 5000 records)
to keep the log files from filling up.

I can find no informations on this...
db2load is not practical here.


Are you sure you can't do an export (with an SQL statement you provide) and
then an import to insert the rows with a commit interval?


"with a commit interval" Thats what I cannot find is how to commit
after every nnn rows.

TS
Nov 12 '05 #3
> >> Using 6.1, Copying data in one large table to another using sql
and do not know how to issue a commit. (say every 5000 records)
to keep the log files from filling up.

I can find no informations on this...
db2load is not practical here.


Are you sure you can't do an export (with an SQL statement you provide) and then an import to insert the rows with a commit interval?


"with a commit interval" Thats what I cannot find is how to commit
after every nnn rows.

TS


COMMITCOUNT n
Performs a COMMIT after every n records are imported.

This is for the import utility on DB2 UDB for Linux, Unix, and Windows
Version 7 or 8 (I don't know anything about version 6, which I believe is
unsupported).

If writing your own SQL, you must code the logic yourself.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Y2KYZFR1 | last post by:
Granted this only stopps the "forgetfull". I tested it against the following clients, all of which supply a DIFFERENT "no message" string. WinCVS 1.3.14.1 Beta 14 ( Build 1 ) TortioseCVS...
4
by: Re_endian_miss | last post by:
I know even less about databases than I thought... I always thought that the idea behind a transaction was that the actual table in question does NOT get updated until a commit is issued (either...
0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: wesley chun | last post by:
have you guys seen this on Slashdot yet? (i did a quick search in the archives and haven't seen any posts yet so hopefully this isn't a duplicate msg!) ...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.