473,396 Members | 2,061 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,396 software developers and data experts.

Diagnosing Transaction Enqueue (TX) Locking Issue

We have an inhouse replication process which is causing us headaches
when we try to run more than one copy of it against the same target
database (we support unlimited remote databases so we may have to
process in 20 replication files on a Monday morning).

The issue I'm seeing is that computer 1 starts processing in the
inserts/updates and continues through the process.

Computer 2 starts processing inserts/updates fine as well but at some
point gets blocked by computer 1.

The lock is a TX lock and I'm trying to understand what could cause
it.

Any help would be appreciated.

Tim Callaghan
Jul 19 '05 #1
2 9321
Tim Callaghan <tc*******@crunchtime.com> wrote in message news:<06********************************@4ax.com>. ..
We have an inhouse replication process which is causing us headaches
when we try to run more than one copy of it against the same target
database (we support unlimited remote databases so we may have to
process in 20 replication files on a Monday morning).

The issue I'm seeing is that computer 1 starts processing in the
inserts/updates and continues through the process.

Computer 2 starts processing inserts/updates fine as well but at some
point gets blocked by computer 1.

The lock is a TX lock and I'm trying to understand what could cause
it.

Any help would be appreciated.

Tim Callaghan

Tim , please do not crosspost.

A TX lock is a transaction enqueue and relates to the rollback segment
for the transaction. It is only a problem if it is what the other
processes are waiting on. What does the output of
$ORACLE_HOME/rdbms/admin/utllockt run during the problem period show?

Based on your discription of the processing it sounds like you may
have multiple processes attempting to insert into one target. If this
is true recreate the target table with multiple transaction work areas
(initrans) to provide preallocated work area for concurrent
transactions affecting one block and with multiple free lists to
attempt to spread the inserts into different blocks. The initrans
parameter also applies to the indexes on the table.

If your processing includes deletes or updates to columns that are
referrenced as FK constrainst the lack of an index on the child tables
can also adversely affect proformance of the processes.

HTH -- Mark D Powell --
Jul 19 '05 #2
Tim Callaghan <tc*******@crunchtime.com> wrote in message news:<06********************************@4ax.com>. ..
We have an inhouse replication process which is causing us headaches
when we try to run more than one copy of it against the same target
database (we support unlimited remote databases so we may have to
process in 20 replication files on a Monday morning).

The issue I'm seeing is that computer 1 starts processing in the
inserts/updates and continues through the process.

Computer 2 starts processing inserts/updates fine as well but at some
point gets blocked by computer 1.

The lock is a TX lock and I'm trying to understand what could cause
it.

Any help would be appreciated.

Tim Callaghan

are you getting a table level TX lock or a row level TX lock? If its
row level that is because your first computer is not committing or
rollback so the row is still locked.

if its table level... are these child records with a foreign key
constraint? if so index your foreign keys and the problem will go
away.
Jul 19 '05 #3

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

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
2
by: metehan | last post by:
Hi all question regarding how transactions work in SQL Server... stored procedure below that generates unique IDs for messages we send to the backend It looks like sometimes, the number...
4
by: Leaf | last post by:
Greetings, I've been reading with interest the threads here on deadlocking, as I'm finding my formerly happy app in a production environment suddenly deadlocking left and right. It started...
15
by: Zeng | last post by:
Hi, The bigger my C# web-application gets, the more places I need to put in the tedious retrying block of code to make sure operations that can run into database deadlocks are re-run (retried)...
2
by: Larry Bertolini | last post by:
Is there a way to read data from a linked server, within a transaction, without using DTC? The data on the linked server is static, therefore there is no need for two-phase commit. There is no...
3
by: joshsackett | last post by:
I am redesigning an application that distributes heldesk tickets to our 50 engineers automatically. When the engineer logs into their window a stored procedure executes that searches through all...
14
by: Jim Michaels | last post by:
mysql_query("START TRANSACTION", $link2); $q2=mysql_query("SELECT pictures.pid AS pid FROM pictures,counter WHERE pictures.pid>counter.pid LIMIT 1", $link2); if ($row2=mysql_fetch_assoc($q2)) {...
5
by: dhek | last post by:
Hi, I have 1 SQL statement selecting data from various tables and updating other tables. The question then is how do I prevent other applications from modifying the tables that I'm working on...
2
by: Tim Callaghan | last post by:
We have an inhouse replication process which is causing us headaches when we try to run more than one copy of it against the same target database (we support unlimited remote databases so we may...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.