473,387 Members | 1,582 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,387 software developers and data experts.

import & internal commit

Hi,
I ran a couple of testing today. One of them I ran the following:
(1). truncate mytbl. (4 db partitions; Version8.1 + FixPak5)
(2) run "import from myfile.del of del insert into myble"
I knew I would get "Log full". But I didn't expect I still got some records
after "Log space used up on each db partitiion". I supposed all the inseted
rows should be rolled back.

It looks like db2 will automatelly call "commit" at some point. This is not
like when I ran the import process against a Version7 table. I am quite sure
the import without option "commitcount" is just like import with
"COMMITCOUNT <# of myfile.del>" in version7.2.

I couldn't find any documentation about this modification. Does anyone know
this?

Thanks,

Nov 12 '05 #1
1 2428
Fan Ruo Xin wrote:
Hi,
I ran a couple of testing today. One of them I ran the following:
(1). truncate mytbl. (4 db partitions; Version8.1 + FixPak5)
(2) run "import from myfile.del of del insert into myble"
I knew I would get "Log full". But I didn't expect I still got some
records after "Log space used up on each db partitiion". I supposed all
the inseted rows should be rolled back.

It looks like db2 will automatelly call "commit" at some point. This is
not like when I ran the import process against a Version7 table. I am
quite sure the import without option "commitcount" is just like import
with "COMMITCOUNT <# of myfile.del>" in version7.2.

I couldn't find any documentation about this modification. Does anyone
know this?


Have a look at the "Usage notes" for the IMPORT command:
http://publib.boulder.ibm.com/infoce...e/r0008304.htm

There it says: "By default, online import performs automatic COMMITs to free
both the active log space and the lock list. Automatic COMMITs are not
performed only if a COMMITCOUNT value of zero is specified."
You will also find several other things explaining under which conditions a
COMMIT is executed.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2

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

Similar topics

8
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the...
14
by: Demetris | last post by:
Hello people! I have a table with more than 30 million rows,a lot of columns and indexes. We need to change a column which is dec(15,2) and nullable to have a default value of zero. As I know you...
4
by: Fan Ruo Xin | last post by:
I can truncate a version8 table by using "import from /dev/null ... replace into ..." when I use version8 client. But I failed to truncate the same table by using the same way if I connect from a...
13
by: usenet | last post by:
Hi. Can any of you explain the major differences in LOAD and IMPORT in laymen terms? I've read the DB2 docs: " Inserts data from an external file with a supported file format into a table,...
2
by: bughunter | last post by:
8.2 UDB win32 I need update a one column in very large table. PK for this table - generated always as identity :-( I can't recreate table without generated always.I don't want write SP or any...
0
by: Michael Boldin via alt email | last post by:
I installed python 2.5 and used the win package for installing MySQLdb. (Iam running Windows XP) Everything works as expected using python directly (Windows command shell) but using IDLE gives the...
49
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
0
by: Ben Lee | last post by:
hi folks -- a quick python and sqlite3 performance question. i find that inserting a million rows of in-memory data into an in-memory database via a single executemany() is about 30% slower...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.