dbTalk Databases Forums  

Multiple bcp into Separate Tables

comp.databases.sybase comp.databases.sybase


Discuss Multiple bcp into Separate Tables in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wayne Happ
 
Posts: n/a

Default Multiple bcp into Separate Tables - 02-24-2009 , 09:22 PM







I have a coworker who is trying to run 6 bcp's at the same time into 6
different tables. My first thought was don't do things like that. But
I help my tongue, I'm getting better. :-)

The say that one bcp will work and the others will apparently block on
it. I did not see this myself, but I'm wondering why would that be?

Details

Sybase 12.5 on AMD 64bit. Solaris
Regular bcp into tables with indicies and no format file.

I can't think of any reason why there would be blocking. Unless some
system table is being locked or the transaction log hogged?

Any ideas anyone?



Reply With Quote
  #2  
Old   
mpeppler@peppler.org [Team Sybase]
 
Posts: n/a

Default Re: Multiple bcp into Separate Tables - 02-25-2009 , 08:28 AM






On Feb 25, 4:22*am, Wayne Happ <wayneh... (AT) earthlink (DOT) net> wrote:
Quote:
I have a coworker who is trying to run 6 bcp's at the same time into 6
different tables. My first thought was don't do things like that. But
I help my tongue, I'm getting better. :-)

The say that one bcp will work and the others will apparently block on
it. I did not see this myself, but I'm wondering why would that be?

Details

Sybase 12.5 on AMD 64bit. *Solaris
Regular bcp into tables with indicies and no format file.

I can't think of any reason why there would be blocking. Unless some
system table is being locked or the transaction log hogged?

Any ideas anyone?
If you're running logged bcp inserts then there will probably be some
pretty heavy IO, especially to the transaction log, but off-hand I
can't think of a system table that would be locked for the duration of
the bcp in.

I guess running sp_lock during a trial run would clarify things... :-)

Michael


Reply With Quote
  #3  
Old   
ThanksButNo
 
Posts: n/a

Default Re: Multiple bcp into Separate Tables - 02-25-2009 , 02:01 PM



On Feb 25, 6:28 am, "mpepp... (AT) peppler (DOT) org [Team Sybase]"
<michael.pepp... (AT) gmail (DOT) com> wrote:
Quote:
On Feb 25, 4:22 am, Wayne Happ <wayneh... (AT) earthlink (DOT) net> wrote:

I have a coworker who is trying to run 6 bcp's at the same time into 6
different tables.
....
The say that one bcp will work and the others will apparently block on
it. I did not see this myself, but I'm wondering why would that be?
....
I can't think of any reason why there would be blocking. Unless some
system table is being locked or the transaction log hogged?
....
If you're running logged bcp inserts then there will probably be some
pretty heavy IO, especially to the transaction log, but off-hand I
can't think of a system table that would be locked for the duration of
the bcp in.

I guess running sp_lock during a trial run would clarify things... :-)

It's certainly a strong possibility that the transaction log
is being filled up, depending of course on how much space is
allocated for it.

The database will come to a screeching halt if the transaction
log fills up. You can tell that with "sp_who", which will tell
if users are blocked waiting for transaction space.

What I have done in cases where I have large amounts of data
to bcp in is start another background process that does a
"dump transaction with truncate_only" every few minutes until
the bcp is complete. Then, when finished, do a full dump
and return to the normal transaction dump schedule.

/:-/


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.