Sender JDBC Communication Update SQL Command Problem!

Hi all,
I am trying to do a SENDER JDBC Scenario in XI.
I fetch the Records from the table Once per day based on the Current Date.
I do not have any Update Credentials in the table.
I can only perform Select Querry.
But when i am trying to configure the SENDER JDBC Channel its asking me to enter value for Update SQL Command in Sender JDBC communication channel Process Parameters.
Its not accepting BLANK or ' * '  Values.
But i have only Select Querry credentials in the table. I can only pick the values cant Update the tables but.
In the Above scenario how can i configure the Sender JDBC CC without Updating the Table after fetching the value?
Please Advice
Regards,
Senthilprakash.

Hi,
Specify the Update SQL Statement value as .
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
Thanks
SaNv...
Edited by: Sãnthosh Kûmãr  V on Oct 8, 2008 10:44 AM
Edited by: Sãnthosh Kûmãr  V on Oct 8, 2008 10:45 AM

Similar Messages

  • Sender JDBC adapter -- Update SQL statement NOT work for the last record

    I'm trying to use SAP XI to send records from Oracle database to As/400 using JDBC adapter.  I've defined the communication channel for sender
    (1)  The "Query SQL statement"  = select  a_bgn_dt,  a_end_dt from  PX_PXXD WHERE NOT CU_ACTION_CD='P' 
    (2)   The "Update SQL statement"  = update PX_PXXD set CU_ACTION_CD='P'  WHERE NOT CU_ACTION_CD='P' 
    Supposed that 3 records were retrieved from (1) and successfully updated to AS/400 but only the first 2 records in Oracle database are updated according to (2)
    Any advise.
    Pansy

    Hi Pansy,
    You select and update query is looking like wrong
    kindly check below query,If you are using oracle
    (1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE CU_ACTION_CD !='P'
    (2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE  CU_ACTION_CD !='P'
    Thank you
    Sateesh

  • Sender JDBC adapter : Update SQL Statement : stored procedure

    Hi,
    Can we use a stored procedure in the sender jdbc adapter in 'Update SQL Statement'.
    The problem i am facing is like, we are selecting data from two tables in 'SQL statement for query' and then in 'Update SQL Statement' , we need to delete that data from these two tables.
    Please let me know if it is possible.
    Thanks,
    Rohit

    you can use a Stored procedure in the
    Query SQL Statement
    You have the following options:
    ·        Specify a valid SQL SELECT statement to select the data to be sent from the specified database.
    ·        Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
    The expression must correspond to the SQL variant supported by the relevant JDBC driver. It can also contain table JOINs.
    so have your whole select and update as part of this single Stored procedure

  • Error in Sender JDBC communication channel

    Dear All,
    We have an interface in which we are fetching data from SQL database through sender JDBC communication channel.
    Last week SQL server was upgraded from 2000 to 2008 and the communication channel has stopped working and is giving the following error:
    Database-level error reported by JDBC driver while executing statement 'SELECT * FROM mstemp_tbl WHERE Active='0''. The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (""): Data type 0x38 is unknown.'. For details, contact your database server vendor.
    Please let me know if any JDBC drivers are to be installed for SQL 2008 or how can we resolve this.
    Thanks,
    NJ

    Hi,
    You may need to update your JDBC driver to 1.2 or 2.0. Kindly see supportability matrix on this link (question #2):
    http://msdn.microsoft.com/en-us/sqlserver/cc325721
    Regards,
    Jenny

  • Error at sender JDBC communication channel

    Dear All,
    While executing JDBC(MS-Access)-PI-RFC interface, we are getting error in sender JDBC communication channel. The error is as following:
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    sappidev\Datatran\Database.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
    I have checked various posts on forums and as per those no drivers installation is required to access MS-Access database and I am not able to find any post which could solve my problem.
    Kindly guide me on what might be the problem and how this can be resolved.
    Regards,
    NJ

    Hi Nishu,
      That error ALWAYS means your DSN name is incorrect or can't be accessed for some reason (permission). The ODBC part says that the bridge is working.
      But that DSN is 100% wrong or cannot be seen by the user account that the server is running as. Make sure you have a system DSN and not a user one.
    You can refer these....
    http://bytes.com/topic/java/answers/625400-java-sql-sqlexception-microsoft-odbc-driver-manager-data-source-name-not-found
    http://www.daniweb.com/forums/thread13092.html#
    Hope this will help you....
    Regds,
    Pinangshuk.

  • XI: Sender JDBC Communication Channel is not getting picked the records

    Hi All,
    Here I 'm facing an Issue with my sender JDBC communication Channel. Previously it was working fine but It is not Picking the records from the JDBC table.
    Communication Channel is in active mode only.
    I have checked in RWB communication Channel monitoring there i didn't get any error or success messages but channel is showing healthy status only(Green)
      But i had created the new communication channel..with the same parameters which are in the older communication channel.. and sender agreement level also i had changed.. so now  new channel is working fine.... I didn't understand what is the problem with previous communication channel.
    Thanks

    Hi yadav,
    do you have TWO CCs polling at the same time via JDBC?
    This could be the problem --> a conflict between both CCs.
    Switch off ONE CC:
    Regards Mario

  • SQL Command problem in Application Express 3.2.0.00.27

    To Oracle Application Express Development Team,
    Yesterday I installed Oracle Application Express 3.2.0.00.27.
    While doing my r&d, I came across one problem in SQL Command.
    For example I wanted to run sql "select * from tab"
    When I checked "Autocommit" checkbox it worked fine.
    But when I unchecked the "Autocommit" checkbox it gave me following error:
    ORA-01003: no statement parsed
    Please check post
    http://www.oraclebrains.com/2009/03/sql-command-problem-in-application-express-3200027/ for more details.
    Cheers

    I can't find the log file (a good indication that something went wrong)
    Here's the transcript of the session...
    SQL> startup upgrade
    ORACLE instance started.
    Total System Global Area 599785472 bytes
    Fixed Size 1288820 bytes
    Variable Size 264242572 bytes
    Database Buffers 331350016 bytes
    Redo Buffers 2904064 bytes
    Database mounted.
    Database opened.
    SQL> @apxpatch.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Wrote file apxset.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    SQL>
    SQL> @apxldimg.sql
    PL/SQL procedure successfully completed.
    Enter value for 1: C:\Documents and Settings\jtench\Desktop\My Downloads\Oracle\apex_3.2.1
    old 1: create directory APEX_IMAGES as '&1/apex/images'
    new 1: create directory APEX_IMAGES as 'C:\Documents and Settings\jtench\Desktop\My Downloads\Oracle\apex_3.2.1/apex/images'
    Directory created.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Commit complete.
    timing for: Load Images
    Elapsed: 00:03:30.03
    Directory dropped.
    SQL>

  • JDBC Adapter - Update SQL Statement - Timestamp

    Hi All,
    I'm using a JDBC Sender channel to bring information from a database, when I bring the data I want to UPDATE a field inserting the date and time (timestamp) when you got the info.
    Sender Communication Channel: JDBC
    Query SQL Statement:  SELECT * FROM PI_Factory
    Update SQL Statement: ????????
    Could you tell me how to do this?

    Hi
    please try the below query in Update sql statement
    update table_name set fieldname = systimestamp where .....
    or
    update table_name set fieldname = current_timestamp where .....
    Regards
    Ramg.

  • Sender JDBC Adapter hang after network problem ?

    Hi,
    I got problem with Sender JDBC Adapter. in the normal condition it is working fine. no problem at all.
    The problem coming after network connection problem within XI and database for about more than 24 hours. After the connection resume the Sender JDBC Adapter doesn't want to pickup the data.
    Communication Channel Log  Showing  (Without finish Processing).
      6/16/08 5:49:04 PM   Processing started
      6/16/08 5:48:04 PM   Processing started
      6/16/08 5:47:04 PM   Processing started
      6/16/08 5:46:04 PM   Processing started
      6/16/08 5:45:04 PM   Processing started
    In normal Communication Channel Showing :
    6/16/08 5:33:39 PM efcbd379-6b57-4922-364f-9c047e82ac1b Polling interval started. Length: 30.0 seconds
    6/16/08 5:33:39 PM efcbd379-6b57-4922-364f-9c047e82ac1b Processing finished successfully
    6/16/08 5:33:39 PM   Processing started
    6/16/08 5:33:09 PM efcbd379-6b57-4922-364f-9c047e82ac1b Polling interval started. Length: 30.0 seconds
    6/16/08 5:33:09 PM efcbd379-6b57-4922-364f-9c047e82ac1b Processing finished successfully
    6/16/08 5:33:09 PM   Processing started
    The problem resolve after restart the whole XI system. is there any other way to solve the problem without restarting the whole xi server. Because i have tried to stop and start the communication channel but still doesn't work until restart the xi. server.
    Please advise.
    Thank you and Best Regards
    Fernand

    Check JDBC FAQ note 831162
    7. Network-Level Connection Problems
    Q: The TCP/IP connection to my database host is running over an unreliable network connection, i.e. the connection is sometimes interrupted. Consequently, I sporadically receive an SQLException regarding a closed connection in the system trace or audit log or the connection as well as the JDBC Adapter channel are hanging.
    How can I work around this connectivity issue?
    A: Enable the "Advanced Mode" for the respective JDBC Adapter channel and select the option "Disconnect from Database After Processing each Message".
    Note that this might put additional load on your DBMS due to the creation of a new database connection for each message.
    If you are connecting to an Oracle database, also refer to question #10 for an alternative solution.

  • UPDATE sql command won't work

    Hi,
    I have troubles using UPDATE command. I have ACCESS database and a table created by
    create table ACCOUNTNAMES (ACC_ID VARCHAR(30) primary key, ACC_NAME VARCHAR(40), ACTIVEPASSIVE VARCHAR(30))accessed by
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conection = DriverManager.getConnection("jdbc:odbc:mydatabasename", username, password);
    statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = statement.executeQuery("SELECT * FROM ACCOUNTNAMES");
    // Working with resultSet
    statement.executeQuery("update ACCOUNTNAMES set ACC_NAME = "TEST" where ACC_ID = "60"");I have SQL exception at this point saying
    "[ODBC MS Access Driver] Too few parameters. Expected 2"
    I have a row with ACC_ID = 60 in the table. "Expected" might also be 1.
    Please give me your advice.

    statement.executeQuery("update ACCOUNTNAMES set ACC_NAME = "TEST" where ACC_ID = "60"");Is TEST a variable nameif so you have to concatenate it
    try the below stmt. to update the ACC_NAME as TEST.
    statement.executeQuery("update ACCOUNTNAMES set ACC_NAME = 'TEST' where ACC_ID = 60");

  • Problem with Sender JDBC CC

    Hi,
    Sender JDBC communication channel is working fine first time to pull the data and from database.  After pulling the data from the database i just stop the communication channel and start it to pull the data again. but it is not pulling the data and the adapter status is green in functioning. If i create the new communication channel with the same old CC parameters its pulling data again.
    As per the sdn fourms to resolve the same, i coulnt not find any lock JDBC adapter with name $XIDBAD.JDBC2XI in Visula Amin.
    Please share your valueble inputs on the same.
    Thanks

    >My Issue is, First time JDBC CC is working fine. If i try pull the data again, its not working. it is showing successful status in the CC >monitoring. If i create the new communication channel with the values of the current CC and give it into the agreement, its working again.
    Check whether your select query followed by update in the communication channel stops returning resultset after one time.  I mean update does some fields update and so reread the data using select statement again stops returning data.  If that is not the issue then search forum for SAP notes related to JDBC adapter fix.

  • 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

    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.

  • Sender RFC and JDBC communication channels required to be activated

    Hello Guys,
    Whenever we have a Oracle restart after the server is shut down for maintainence . The sender JDBC communication channel does not poll and we have to activate the channel again in the Integration Directory to make it work, is there any way to make it work automatically.
    Similar is tha case with the sender RFC communication channel.
    Allthough the component monitoring shows green button for the JDBC, RFC communication channel.
    In case of the JMS channel (sender) the channels are in red.
    Thanks for your help.

    HI
    There is no automatic ways to restart channel that you have to manually start.
    You need to stop the channels first before getting oracle server down for maintenance. This will save from errors. Maximum what you can do is to start stop channel using a program externally but that require development.
    Start/Stop using RWB
    Starting / Stopping of Communication Channel from RWB
    Start/Stop without using RWB
    Control Communication Channels Externally without using RWB
    Thanks
    Gaurav

  • Accessing MS Access Database file from Sender JDBC in PI 7.1

    Dear Experts,
    I am on SAP PI 7.1 SP00. PI Server is installed on LINUX Server.
    I am doing an scenario, where i am going to process the .mdb file through Sender JDBC Communication channel . I have put .mdf file in FTP server.
    When I check in communication channel Monitoring getting below error :
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//pi_integ/abc.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [unixODBC][Driver Manager]Data source name not found, and no default driver specified'
    I have seen many blog, but I am helpless. Could you kindly provide your suggestions.
    Really appreciated your efforts and your valuable time.
    Ahmed.

    To connect to an Access Database, I create an ODBC data source and use the "sun.jdbc.odbc.JdbcOdbcDriver".

  • JDBC Sender update SQL Statement Question.

    I was wondering if there is a way to have the update SQL statement line in the JDBC sender update by time stamp, this would be very helpful.  Does anyone know a method of doing this?

    In the SAP documentation of the adapter it has this example for using the update SQL statement after the query statement:
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
    What I want is to be able to put processed = (the current date) instead of processed =1 in the update statement, like this example:
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = (the current date) WHERE processed = ' ';
    I seems like you can only use a fixed value for the update statements in the JDBC Sender though, I would like to know if you can use a time stamp or variable there.

Maybe you are looking for

  • Rman clone duplicate database from active database

    Hi All, I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname. I am working toward it. I met a problem, which is when i bring up auxiliary database in nom

  • Upgrade path

    we are upgrading from ACS 2.6 to 4.1 should we order the upgrade software (CSACS-4.1-WINUP-K9) or should we order the regular package (CSACS-4.1-WIN-K9)since 2.6 is so out of date?

  • Query on Functions & Procedures

    Hi, I have worked on webservices in forms. To access the code in webservices, I import the JAR file(which has the webservices code) in the forms wherein the code gets converted to equivalent Procedures and Functions. Now I want to access this code in

  • Bugmeldung: Bei der Bearbeitung von TIF-Dateien im Entwickeln-Modul lädt LR 6/CC  die das Bild nach jedem (!) Arbeitsschritt neu.

    Bei der Bearbeitung von TIF-Dateien im Entwickeln-Modul lädt LR 6/CC  die das Bild nach jedem  Arbeitsschritt neu. Nach jeder Veränderung eines Schiebereglers oder auch nach jedem Klick mit einem Adjustment-Brush. Wirklich nach jedem Schritt. Flüssig

  • User license type 53 - error "User type 53 is not active

    Hi Experts, One of our end user is facing this     "User license type 53 - error "User type 53 is not active"   issue. Can any one help  me what need to be done for resolve this issue. Appreciate your early response. Thanks in advance. Sreenivasu  Ba