Skip to Content

sender jdbc adapter - no update query

hi ,

i am using pi 731 single stack.

the scenario is - PI has to pick data from view of a hana database. i am using jdbc sender for it.

pi will not have access to update the table,only pi can read the view of database.So,PI can't use UPDATE query.

If in jdbc sender channel ,I use SELECT query only and no UPDATE query - will it work ? what will happen if there are 100 records in the view and PI failed after fetching 43 records..will it pick from 44th record next time OR it will start from 0 again ?

rgds

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 17, 2014 at 06:25 PM

    Hi SAP PI,

    It has no sense to use the sender JDBC without update query because then always will be taken the same records.

    If you cant update the source DB you only have the choice to talk with the DB administrators that they develop for you a stored procedure that it has to do the work to get different records in every PI access.

    If the PI record process fail with impossible source database update update, the only way (afaik) is to do a PI alert and to communicate it to db sender administrators. There are another option like to store the data in a intermediate table, and so on but all possibilities that i can think now are not to enough good.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 17, 2014 at 05:18 PM

    Yes, you can have a channel with just select query. in the Update SQL Statement put <TEST>

    Since you are not updating the anything in the table, everytime the channel will reading from 0 row.

    Regards

    Osman

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.