If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Unload

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-07, 11:15
yacov yacov is offline
Registered User
 
Join Date: Nov 2007
Posts: 4
DB2 Unload

Hi,

We are in proccess of migarating our data from VSAM files to DB2.

In our new DB2:

We have a table that we use to insert data in on-line work(CICS).

At the same time, approxomatly once in 30 minutes,we need to selectively or not unload(batch) the the table,in order to pass it over for further procceding.

The table contains smth. like 150,000 rows, 2000 bytes each.

I ran 2 tests in which I wanted to simulate an unload when a table is busy in on-line inserts.

1) I wrote a simple CICS program in which I insert in loop 30,000 rows to the table(All this in one transaction). At the same time I ran an unload batch.

Result: -911(timeout).

2) In second test I simulated more realistic scenario in which I ran 2000 transactions in loop 10 transactions in a second, every transaction makes one row insert to the table.

Result: success.

Question: what is the reason to failure in the first scenario?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-17-07, 12:06
db2hrishy db2hrishy is offline
Registered User
 
Join Date: Jun 2004
Posts: 115
Hi

Did you check for locks in both the cases ?

regards
Hrishy
Reply With Quote
  #3 (permalink)  
Old 11-17-07, 14:34
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
At the end of each transaction a COMMIT takes place and the locks are released.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 11-17-07, 15:03
yacov yacov is offline
Registered User
 
Join Date: Nov 2007
Posts: 4
Thanks, how did I forget.

I will try it tomorrow.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On