Unix Technical Forum

Cause for cyclic lock in Sybase 12.0

This is a discussion on Cause for cyclic lock in Sybase 12.0 within the Sybase forums, part of the Database Server Software category; --> Hi, I have a scenario as below. There is a process A which is related to drop index on ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:07 PM
Pavani
 
Posts: n/a
Default Cause for cyclic lock in Sybase 12.0

Hi,
I have a scenario as below.
There is a process A which is related to drop index on table1
There is a process B which is related to bcp on table2
There is a process C which is related to create index on table3
There other processes D, E, F which are also related to tables table4,
table5 and table 6 respectively.

All the above processes are forked parallely from a UNIX shellscript.
All the tables are in the same database.

Now my problem is
process A is blocking process B
process B is blocking process C
process C is blocking process A
process A also blocks process D, E and F.

So, to me it looks like it is entered into a deadlock situation.
I would like to know, what is the reason for this problem. Why have
all the tables in the same database entered into such a situation.
Actually we have implemented in such a way that each process tries to
work on different tables though executed as parallel processes.

The sequence of step done by the shell script on all the tables is
1. BCP data to the table using bcp utility.
2. Create clustered index on the table.
3. Process the data into other tables .
4. truncate the data from table.
5. Drop the index on the table.
The above is done ones' every 15 minutes.

Early help is very much appreciated.

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com