Update Request In Read Transaction
This example shows a client opening areadtransaction and then trying to send a command to modify
data.
Table 34: Update Request in Read Transaction Example
DescriptionMessage
A PDBI connection has been established to
the Active PDBA.
connect(iid 1, version 1.0)→
rsp (iid 1, rc 0, data (connectId 7, side active))←
A read transaction has been opened.
begin_txn(iid 2, type read)→
rsp (iid 2, rc 0)←
A query for DN 9195551500 was sent. A
response comes back verifying that the DN
exists and showing what SP it is on.
rtrv_sub(iid 3, dn 9195551500)→
rsp (iid 3, rc 0, data (dns ( (dn 9195551500, sp
9195555555) ) ) )
←
The client now tries to move the DN block
that was returned in the previous Retrieve
upd_sub(iid 4, dn 9195551500, sp 9195556666)→
rsp (iid 4, rc 1011)←
request to SP 9195556666. The Update request
fails because the client currently has a read
transaction open instead of a write
transaction.
The read transaction has been ended.
end_txn(iid 5)→
rsp (iid 5, rc 0)←
The client is done and has disconnected.
disconnect(iid 6)→
rsp (iid 6, rc 0)←
Write Transaction In Standby Connection
This example shows the error scenario of a client trying to open awrite transaction in a connection to
the Standby PDBA.
152
910-6022-001 Revision A, March 2011
PDBI Sample SessionsProvisioning Database Interface Manual