# US 2013/0254782 A1 · System and method for supporting read-only optimization in a transactional middleware environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254782 A1
- Document ID: US20130254782A1
- Status: Published application
- Kind: A1
- Application number: 13/828,906
- Filed: 2013-03-14
- Published: 2013-09-26
- Earliest claimed: 2012-03-16
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Xugang Shen; Qingsheng Zhang; Todd J. Little
- Web page: https://patentgrep.com/patent/US20130254782A1

## CPC

- G06F 9/466: {Transaction processing}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 15/167: using a common memory, e.g. mailbox
- G06F 16/21: Design, administration or maintenance of databases
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and method can support processing a transaction with a plurality of transaction branches. A transaction manager operates to send, to a resource manager, a prepare request for each said transaction branch in the plurality of transaction branches with the exception of at least one transaction branch. Furthermore, after receiving an indication from the resource manager that the received preparation requests are handled successfully (i.e. the transaction branch is read-only and has been committed), the transaction manager operates to send a commit request to commit said at least one transaction branch, which is on hold, to the resource manager.

## Claims

### Claim 1

A method for processing a transaction with a plurality of transaction branches, the method comprising:
sending, via a transaction manager to a resource manager, a prepare request for each said transaction branch in the plurality of transaction branches with the exception of at least one transaction branch;
receiving an indication from the resource manager that the received preparation requests are handled successfully; and
sending a commit request to commit said at least one transaction branch, which is on hold, to the resource manager.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
connecting the resource manager to a database in a database cluster, or an instance of a database in a database cluster.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
holding, via the transaction manager, a fastest transaction branch.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
configuring the plurality of transaction branches to be executed within one domain.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
configuring the plurality of transaction branches to be executed and to span multiple tightly coupled domains.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
Sharing, among the plurality of transaction branches, a common transaction identifier (ID).

### Claim 7 (depends on 1)

The method of claim 1, further comprising
reverting to a two-phase commit protocol by sending a prepare request on at least one said branch being held, upon receiving an indication from the resource manager that one or more transaction branches are not tightly coupled.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
saving, via the transaction manager, a transaction log to support recovery using the two-phase commit protocol.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
committing the transaction without saving a transaction log.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
rolling back the transaction when at least one transaction branch fails.

### Claim 11

A system for processing a transaction with a plurality of transaction branches, comprising:
one or more microprocessors;
a transaction manager running on the one or more microprocessors, wherein the transaction manager operates to
send, via a transaction manager to a resource manager, a prepare request for each said transaction branch in the plurality of transaction branches with the exception of at least one transaction branch;
receive an indication from the resource manager that the received preparation requests are handled successfully; and
send a commit request to commit said at least one transaction branch, which is on hold, to the resource manager.

### Claim 12 (depends on 11)

The system according to claim 11, wherein:
the resource manager is connected to a database in a database cluster, or an instance of a database in a database cluster.

### Claim 13 (depends on 11)

The system of claim 11, wherein:
the transaction manager holds a fastest transaction branch.

### Claim 14 (depends on 11)

The system of claim 11, wherein:
the plurality of transaction branches are executed within one domain.

### Claim 15 (depends on 11)

The system of claim 11, wherein:
the plurality of transaction branches are executed span multiple tightly coupled domains.

### Claim 16 (depends on 15)

The system of claim 15, wherein:
the plurality of transaction branches share a common transaction identifier (ID).

### Claim 17 (depends on 11)

The system of claim 11, wherein:
the transaction manager reverts to a two-phase commit protocol by sending a prepare request on the at least one branch being held, upon receiving an indication from the resource manager that one or more transaction branches are not tightly coupled.

### Claim 18 (depends on 17)

The system of claim 17, wherein:
the transaction manager saves a transaction log to support recovery using the two-phase commit protocol.

### Claim 19 (depends on 11)

The system of claim 11, wherein:
the transaction manager commits the transaction without saving a transaction log.

### Claim 20

A non-transitory machine readable storage medium having instructions stored thereon that when executed cause a system to perform the steps comprising:
sending, via a transaction manager to a resource manager, a prepare request for each said transaction branch in a plurality of transaction branches with the exception of at least one transaction branch;
receiving an indication from the resource manager that the received preparation requests are handled successfully; and
sending a commit request to commit said at least one transaction branch, which is on hold, to the resource manager.
