on 07-04-2013 3:09 PM
Hi,
We have done one JDBC to proxy scenario in our PI 7.3 . We have used JDBC adapter as sender.
we having issue while picking records from date Base.
there are 15000 records in the table. when i made all records flag as NULL . adapter started picking the records and updating as flag as 1
all records flag changed to 1. in these 15000 records 500 records not picked by PI (to source payload). even though flag changed as 1.
please suggest what might be the issue.
Query i used :-
processing parameters:-
quality of service is exactly once
select * from (select * from in_create where flag IS NULL ) where rownum < 200
update in_create set flag = 1, update_date = SYSDATE where flag IS NULL and rownum < 200
Advance Parameters
Transaction isolation level is serializable.
clusterSyncMode lock
Regards
Raju
I suspect rownum does not go well with select update sequence operation sametime. Remove rownum and try to select all the records and update all. Your transaction setting is fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raju,
Can you please check with your DB admin for this....
Cheers,
Cnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raju,
This is possibly because when the select was made, the count of records in the table was 14500 and when the update was done it was 15000. Check with DB admin if there was any other job running and updating the table when PI was reading the table.
One question though:
what is rownum ? is it some kind of a sequence number ?
Please look at the thread below for an alternate solution:
http://scn.sap.com/thread/3381809
Look at the bottom of the thread where I have proposed a solution.
Hope it helps!
Ambrish
Message was edited by: Ambrish Mishra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raju,
What is the poll interval of your adapter. It should not be too short.
Check in NWA whether there are any locks on the adpater.
For the 7.1 versions, please note that the Lock Manager is under the /NWA/locks,or on the location "Availability and Performance Management -> Locks
For Visual Admin, LOCKING ADAPTER->Display locks-> Unlock the adapter and restart the channel.
Hope it helps!
Ambrish
Hi Raju,
Are you still going with rownum design or alternate design which I suggested.
I don't think rownum logic will work because logically the update statement does not ensure you are updating the same records which you have read.
I suggest you take a look at the bottom of thread http://scn.sap.com/thread/3381809
Reading all records in one go might lead to performance issues.
Hope it helps!
Ambrish
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.