JDBC Reciever query

Hi All,
I have to update the fields with Dummy value where the field is not null.
I.e Update field1 with Dummy from table <u>where field2 is not null</u>.
Number of eligible records are zero for this, but in actual case there are some values.
Please let me know how should i handle this in my sql xml format.
Thanking you in advance.
Regards
Piyush

Hi Piyush,
you find the documentation for the sql/xml here:
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
for example:
<root>
<StatementName1>
<dbTableName action=”UPDATE”
<table>myTable</table>
<access>
<col1>val1</col1>
</access>
<key1>
<col2 compareOperation=”NEQ”></col2>
</key1>
</dbTableName>
</StatementName1>
</root>
what means
UPDATE myTable
SET col1='val1'
WHERE col2 <> null 
Regards,
Udo

Similar Messages

  • Insert query in JDBC Reciever adapter!!!

    Hi All,
    We have an interface in which we are inserting data in Oracle server using JDBC Reciever Adapter.
    The interface ends up in error on adapter engine level whenever the we are sending long data in one of the field of target structure. The error which we get in communication channel monitoring is that "String too long", on googling i found that in oracle they solve such problem by making the field data type as CLOB.
    Thus can we define target structure field of CLOB type so that while inserting the data in Oracle server we never face the issue of this long string.
    Thanks

    >
    Arpit Seth wrote:
    > Hi All,
    >
    > We have an interface in which we are inserting data in Oracle server using JDBC Reciever Adapter.
    > The interface ends up in error on adapter engine level whenever the we are sending long data in one of the field of target structure. The error which we get in communication channel monitoring is that "String too long", on googling i found that in oracle they solve such problem by making the field data type as CLOB.
    >
    > Thus can we define target structure field of CLOB type so that while inserting the data in Oracle server we never face the issue of this long string.
    >
    > Thanks
    if the field contains very large data then yes, defining the target field in Oracle as a CLOB will solve your issue.
    http://www.herongyang.com/jdbc/MySQL-CLOB-Overview.html

  • Jdbc reciever error

    hi,
    My scenario is rfc to jdbc.Reciever shows the follwing error.
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TBLTSEMPLOYEES_INTRA' (structure 'StatementName'): java.sql.SQLException: FATAL ERROR document format in structure 'StatementName': expected 'access' tag(s) not found.
    Pls help me.

    Hi,
    This is your structure.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
    <StatementName>
    <TBLTSEMPLOYEES_INTRA action="INSERT">
    <access>
    <EMPID>
    </EMPID>
    <REASON>
    </REASON>
    <CATEGORY>
    </CATEGORY>
    </EMP</access>
    </TBLTSEMPLOYEES_INTRA>
    </StatementName>
    </ns1:mes_emp_info>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
    <StatementName>
    <TBLTSEMPLOYEES_INTRA action="INSERT">
    <access>
    <EMPID></EMPID>
    <REASON></REASON>
    <CATEGORY></CATEGORY>
    <EMP></EMP>
    </access>
    </TBLTSEMPLOYEES_INTRA>
    </StatementName>
    </ns1:mes_emp_info>
    you are missing the tag <EMP> .
    Also put some values in the parameters,
    like,
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:mes_emp_info xmlns:ns1="http://saphrandhrmas.com">
    <StatementName>
    <TBLTSEMPLOYEES_INTRA action="INSERT">
    <access>
    <EMPID>001</EMPID>
    <REASON>xyz</REASON>
    <CATEGORY>abc</CATEGORY>
    <EMP>abcdef</EMP>
    </access>
    </TBLTSEMPLOYEES_INTRA>
    </StatementName>
    </ns1:mes_emp_info>
    The resultant query will be,
    insert into TBLTSEMPLOYEES_INTRA values('001','xyz','abc','abcdef')
    Assuming all the fields are String type.
    Urs,
    Soorya.

  • Use JDBC to query data for JSP Report

    Hi all,
    I met a trouble when use JDBC to query data,
    it can show data in report builder, but get error when call from url for exxample: http://localhost:8889/reports/TestJDBCReport.jsp
    found error message:
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
    REP-0069: Internal error
    JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    anyone know pls help me
    Many thanks

    As a general rule, it's a good idea to separate the
    presentation (JSP and HTML) from the business rules
    (database access). I know you didn't do that on the
    AS/400, you had display files and business logic in
    the same program (at least, we certainly do in ours),
    but it's a good policy to follow in the web world.
    That means, don't put your database access code in
    the JSP. Other than that, it depends on the data.
    If you have simple data (e.g. customer's name and
    d address) then a Java bean would suffice. If you
    have complex data (e.g. customer's payment history)
    then a bean still might suffice. You would use an
    "include" if you had some data (static or dynamic)
    that you wanted to appear in several different pages
    in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options.

  • ERROR IN ORACLE STORED PROCEDURE in JDBC RECIEVER

    Hi all
    i have an FILE2JDBC2FILE sync scenario.have configured this w/o BPM.i need to call an stored procedure which will return me the output in the outpur parameters.input out put parametrs of the stored procedure are.
         p_api_version               IN  NUMBER
        ,p_init_msg_list             IN  NUMBER DEFAULT EBS_ECOM_UTILS_PUB.G_TRUE
        ,p_ebs_place_in_t     IN  p_ebs_place_in_t(sql TABLE TYPE )
        ,p_ebs_std_call_o     IN  ebs_std_call_oty(sql TABLE TYPE )
        ,x_return_status            OUT VARCHAR2
        ,x_msg_count                OUT NUMBER
        ,x_msg_data                 OUT ebs_message_tty
        ,x_row_count                OUT NUMBER
        ,x_ebs_place_out_t      OUT ebs_place_out_toty(sql TABLE TYPE );
    where
    p_ebs_place_in_t is of type p_ebs_place_in_t which has 2 fields MDM_SYSTEM_REF,EMAIL_ADDR and START_DATE
    p_ebs_std_call_o is of table type ebs_std_call_oty which has 2 fields WORK_GRP_ID and  DEBUG_MODE 
    In XI i am passing the arguments in the following fashion to ORACLE (JDBC reciever adapter)
    <p_api_version isInput="true" type="integer">1</p_api_version>
    <p_init_msg_list isInput="true" type="integer">1</p_init_msg_list>
    <p_ebs_place_in_t isInput="true" type="CHAR">
    <MDM_SYSTEM_REF isInput="true" type="CHAR">MDM-237</MDM_SYSTEM_REF>( this is a field in p_ebs_place_in_t )
    <EMAIL_ADDR isInput="true" type="CHAR"></EMAIL_ADDR>>(this is a field in p_ebs_place_in_t )
    <START_DATE isInput="true" type="date"/>06-OCT-2009 00:00:00</START_DATE>>(this is a field in p_ebs_place_in_t )
    </p_ebs_place_in_t>
    <p_ebs_std_call_o isInput="true" type="CHAR">
    <WORK_GRP_ID isInput="true" type="integer">95714</WORK_GRP_ID>
    <DEBUG_MODE isInput="true" type="integer">5</DEBUG_MODE>
    </p_ebs_std_call_o>
    <x_return_status isOutput="true" type="CHAR"></x_return_status>
    <x_msg_count isOutput="true" type="integer"></x_msg_count>
    <x_msg_data isOutput="true" type="CHAR"></x_msg_data>
    <x_row_count isOutput="true" type="integer"></x_row_count>
    <x_ebs_place_out_t isOutput="true" type="CHAR">
    </x_ebs_place_out_t>
    i am gettng the below error when i am trying to post th message from RWB
    Error when executing statement for table/stored proc. 'APPS.EBS_CUSTOMER_SERVICE_PUB.MAINTAIN_PLACE' (structure 'StatementName1'): java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'MAINTAIN_PLACE' ORA-06550: line 1, column 7: PL/SQL: Statement ignored .
    please suggest..
    Edited by: Rohan Patil on Jun 13, 2010 12:55 AM

    HI Praveen,
    thanks for your reply.
    my stored procedure has input and output parameters both.
    and in XI i have created the data type for both isInput(passedwith all the required values) and isOutput(passed the null values)
    is this  correct..?or should i take only isInput parameters in the data type?
    do i need to take the isOutput also in the datatype?my stored procedure will return the output in the output parametrs.
    can i take only 1 or 2 output paraetrs as there are 4 to 5 output parameters for my sotred procedure.?
    and how will my response data type to send the output of the stored procedure to the FILE sustem.should it be also in the statement form?
    and also would like to know..some of my isInput parameters to the stored procedure has the table type structure as the input parameters.now my question is i should i declare them in my data type?
    can you please elaborate.

  • JDBC batch query with insert sometimes hangs on executeBatch

    We have the following problem:
    Java client sends through JDBC INSERT query using batch,
    and sometimes this query hangs.
    In V$SESSION ACTIVE session appears, which remains ACTIVE forever.
    Also locked object appears in V$LOCKED_OBJECT and open coursor appears.
    How to know what happens inside the query? Why it hangs?
    This is a thread dump for jdbc thread:
    The thread dump is listed below:
    "SdrWriterThread-1" prio=5 tid=0x184264c8 nid=0x214 runnable [18f1f000..18f1fd94]
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at oracle.net.ns.Packet.receive(Unknown Source)
    at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    at oracle.net.ns.NetInputStream.read(Unknown Source)
    at oracle.net.ns.NetInputStream.read(Unknown Source)
    at oracle.net.ns.NetInputStream.read(Unknown Source)
    at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:718)
    at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:690)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:373)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822)
    - locked <0x10641b80> (a oracle.jdbc.ttc7.TTC7Protocol)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1446)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1371)
    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:2883)
    - locked <0x100900d0> (a oracle.jdbc.driver.OraclePreparedStatement)
    at com.jnetx.xr.persistence.DAO.executeBatch(DAO.java:66)

    Anton,
    Why it hangs?It's waiting for a lock to be released. The default behaviour of Oracle is to wait indefinitely for a lock to be released.
    You can see this behaviour if you try to update the same row from tw different "SQL*Plus" sessions, for example (since the default behaviour of "SQL*Plus" is not to automatically commit changes).
    In one "SQL*Plus" session, update a row -- but do not commit. In the second session, try to update the same row -- it "hangs". It will remain like this until the first session releases the lock. The simplest way to release the lock is for the first session to execute either a "commit" or "rollback". As soon as you do that, you will see the first session become unstuck.
    Of-course, from the [lack of] information you have posted, I cannot tell you what is holding the lock, or why.
    Good Luck,
    Avi.

  • JDBC SQL Query Transactionality

    Hi Experts,
    If possible, please can you let me know how the JDBC SQL Query Transactionality works?
    For example, in the JDBC communication channel configuration parameters,
    if I use "SELECT * FROM orders WHERE new = 'TRUE' " for the select query and;
    if I use "UPDATE orders SET new = 'FALSE' WHERE new = 'TRUE' " for the update query;
    does the UPDATE query just update the records contained in that particular record set (for a particular polling instance)?
    What happens if someone inserts new records into the orders table just before the update query executes? Will the update query update those records too? Or just those records in the record set for a particular polling instance? How does XI/PI distinguish between the records contained in the record set for (for a particular polling instance) and the records inserted just before the update query executes?
    Thanks and regards,
    Brendon

    hi,
    as far as I remember this works correctly only when you set Transaction Isolation Levels to repeatable_read or serializable
    have a look at those levels :
    http://api.openoffice.org/docs/common/ref/com/sun/star/sdbc/TransactionIsolation.html
    so I guess both of them should prevent situations you're talking about
    Regards,
    Michal Krawczyk

  • Xi JDBC Adapter - Query SQL Statement & Update SQL Statement

    Hi!
    I configure the JDBC adapter sender (XI) to take data from Oracle database.
    I set the Query and Update SQL Statement in the Processing parameters of the communication channel in this way:
    Query SQL Statement :
    SELECT * FROM XI_TABLE WHERE STATUS = 'WAIT' ORDER BY ROW_NUM
    Update SQL Statement :
    UPDATE XI_TABLE SET STATUS = 'DONE', DATE = SYSDATE WHERE STATUS = 'WAIT'
    My question is :
    If a new record with the field STATUS = 'WAIT' is added to the table (xi_table) during the time between the execution of the query statement and the start of the update statement, what will happen to that record during the update?
    There is a way to avoid the update of that record? or to pass to the update statement only the record selected in the query statement?
    Please, may you give me some example?
    Thanks,
    Francesco

    hi,
    did you check "Isolation Level for Transaction"
    for the sender jdbc adapter?
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    Regards,
    michal

  • Mesages While opening Reciever Query

    Hi Experts,
    I have a Query called Cost center basis report, has mandatory varibales as Fiscal year period,reporting curecny,recieving cost center,cost element group,comp code Heir.
    I have a sender receiver assignement, cost center basis report and Single line items query.
    When I open the cost center report with the requried variables and from there open the Single line item report the varibales from cost center report are taken into the Single line items report.
    when I open the Line items report I have mesages fallowing.
    Source selection for 0FISCPER is incompitable for target selection.
    No SID found for value xxxx of char 0costelement.
    Invalid filter on 0costelemnt: filterchanged.
    Can any please advise if these messages can be ignored or how would I investigate them.
    Regards,
    Kumar.

    Has the master data and transactional data been loaded correctly? Have you checked the SID table for the 0COSTCENTER infoobject and checked whether is has SIDs for all of the cost center values in the DSO?

  • Jdbc theme query problems

    Hi all,
    I'm integrating Oracle Maps (10) in BISE, I've used Navtweq maps with my spatial data and I've created some maps, themes etc.
    Now I'm trying to create some more complex JDBC themes.
    Everything works fine if I use simple query, but I'm not able to create a theme whit more complex queries
    for example I have 3 tables
    m_admin_area2 (with geometric infos)
    tab_supporto1 (a table with all the sales per day and region)
    I want to know all the regions where my sales are incremented by 10% in a specified arch of time
    this is the query :
    select m_admin_area2.geometry, A.corrente, B.precedente,  ((A.corrente-B.precedente)*100/B.precedente) INCREMENT
    FROM
    m_admin_area2,
      Select m_admin_area2.feature_name, m_admin_area2.carto_id, sum
      (tab_supporto1.tot) as corrente
      from tab_supporto1, m_admin_area2
      where m_admin_area2.carto_id = tab_supporto1.carto_id
      and tab_supporto1.data_ordine <= 20071231
      and tab_supporto1.data_ordine > 20061231
      group by m_admin_area2.carto_id, m_admin_area2.feature_name) A ,
      (Select m_admin_area2.feature_name, m_admin_area2.carto_id, sum
      (tab_supporto1.tot) as precedente
      from tab_supporto1, m_admin_area2
      where m_admin_area2.carto_id = tab_supporto1.carto_id
      and tab_supporto1.data_ordine <= 20061231
      and tab_supporto1.data_ordine > 20051231
      group by m_admin_area2.carto_id, m_admin_area2.feature_name ) B
      WHERE m_admin_area2.carto_id = A.carto_id AND m_admin_area2.carto_id = B.carto_id
      AND ((A.corrente-B.precedente)*100/B.precedente)>10The error returned is:
    Cannot process the following response from FOI server:
    <?xml version="1.0" encoding="UTF-8" ?> <oms_error> [Foi Server] foi process error.:Origine dati di mappa [oms] non trovata (map data source not found).</oms_error>
    Thanks,
    Luca
    Message was edited by:
    LukeBk

    Could the error be similar to this:
    JDBC query error
    Hope this helps,
    Dan Abugov (NAVTEQ)

  • JDBC  Inner Query Code Needed

    Hi
    I have a table called Sale
    contains a column called quantity_Available_For_Sale numeric(18,0)
    Another table called Withdrawal_Operations contains a column called quantity_withdrawan numeric(18,0)
    I need a jdbc code that add quantity_withdrawan value when inserted in the Withdrawal_Operations to the sum of the values of quantity_Available_for_Sale field
    this is my trial code
      String sql= "update Sale  set  Item_code ='"+jTextField7.getText()+"',quantity_Available_for_Sale='"+jTextField10.getText()+"SELECT SUM"+""+quantity_Available_for_Sale+""+" FROM "+'Sale'+"+"'WHERE  withdrawal_id='"+jTextField12.getText()+"'";It generates two errors
    unclosed character literal.
    not a statement.
    thanks
    Edited by: VANPERSIE on May 7, 2011 10:50 PM

    Hi,
    This is what you currently have, I think. All I have done is some formatting in order to be able to read it.
    String sql = "update Sale set  Item_code ='"   +
                 jTextField7.getText()             +
                 "',quantity_Available_for_Sale='" +
                 jTextField10.getText()            +
                 "'SELECT SUM'"                    +
                 ""                                +
                 "("                               +
                 quantity_Available_for_Sale       +
                 ")"                               +
                 ""                                +
                 " FROM "                          +
                 Sale                              +
                 ""                                +
                 "' WHERE  withdrawal_id='"        +
                 jTextField12.getText()            +
    Statement stmt = con.createStatement(sql);That approach is wrong for several reasons, some being
    1. Each time you concatenate a string together, it will be a brand new SQL statement for the server to hard parse.
    Not only is this inefficiant, it breaks your SQL cache, causes latching which is definite resource.
    Always use bind variables when dealing with databases.
    2. You are subject to SQL injection. If your text fields contains SQL or parts of SQL, malicious users could take advantage of that.
    3. Your statement is not type safe, and you need to clutter up with single quotes to turn strings into literals.
    With this kind of code you are at sub-zero level of writing database applications.
    A better approach would be to use PreparedStatement as suggested.
    In your case something like:
    String sql = "update Sale set  Item_code =?"   +
                 ",quantity_Available_for_Sale="   +
                 "SELECT SUM"                      +
                 ""                                +
                 "("                               +
                 quantity_Available_for_Sale       +
                 ")"                               +
                 ""                                +
                 " FROM "                          +
                 Sale                              +
                 ""                                +
                 " WHERE  withdrawal_id=?";
    PreparedStatement pstmt = con.prepareStatement(sql);
    pstmt.setString(1, jTextField10.getText());
    pstmt.setString(2, jTextField12.getText());This should take of the three points listed above.
    In my opinion you are now at level 1 of writing database applications.
    You still have some problems. Above sql, is not SQL, it is nothing but a Java String.
    You will struggle to make it into valid SQL, probably by using a cumbersome trial and error process.
    And this is even quite simple SQL.
    In your case you seem to be pulling data from the front end, and use this directly in the data access layer.
    So, you have no POJO layer (I am not saying that you should have).
    This makes the SQL a perfect candidate for what you already mentioned yourself, stored procedures.
    Using a stored procedure, you have something like this:
    String sql = "{call sales_pck.set_quant_avail(?,?)}";
    CallableStatement cstmt = con.prepareCall(sql);
    cstmt.setString(1, jTextField10.getText());
    cstmt.setString(2, jTextField12.getText());Looks much more appealing doesn't it?
    - And not much room for SQL syntax errors.
    You will of course have to implement that stored procedure. Something many Java developers do not like to do.
    Don't know why - to me it smells like technology anxiety.
    There is nothing wrong about stored procedures, and nothing old school about them. In your case it even seems like a sensible thing to do.
    The first advantage about it, is that you will get to work in a layer (The database) that actually knows SQL.
    Here's an attempt to implement your stored, implmented by using a PL/SQL package:
    create or replace package sales_pck as
      procedure set_quant_aval (
        p_item_code        in sale.item_code%type,
        p_with_drawal_id   in sale.withdrawal_id%type
    end sales_pck;
    create or replace package body sales_pck as
      procedure set_quant_aval (
        p_item_code        in sale.item_code%type,
        p_with_drawal_id   in sale.withdrawal_id%type
      ) is
      begin
        update sale
        set    item_code = p_item_code,
               quantity_available =
               select sum (quantity_available_for_sale)
                  from   sale
               where  withdrawal_id = p_with_drawal_id;
      end set_quant_aval;
    end sales_pck;
    /Doing this, you will soon realize that you are not quite there.
    You SQL is syntactically wrong (At least in Oracle).
    But you are now in the right environment to fix it.
    It is probably also semantically wrong, it gives little meaning, and you are probably facing mutating table
    (At least in Oracle and other databases supporting read consistency)
    Note on syntax errors. You probably mean
        update sale
        set    item_code = p_item_code,
               quantity_available =
                 (select sum (quantity_available_for_sale)
                  from   sale
                  where  withdrawal_id = p_with_drawal_id);Or
        update sale
        set    item_code = p_item_code,
               quantity_available =
                 (select sum (quantity_available_for_sale)
                  from   sale)
        where  withdrawal_id = p_with_drawal_id;I can't say which, they seem equally wrong.
    This is what you should do:
    1. Write a correct update statment in a query tool of your choice.
    2. Put that statment inside a stored procedure
    3. Test that procedure from a query tool
    4. Implement the procedure call in your application
    5. Test it.
    Conclusion:
    If you intend to do any (handwritten) SQL in your application, the goal is:
    - write as little as you can in the Java layer
    - write as much as possible in the database layer
    One way of achieving this, is by utilizing stored procedures.
    Regards
    Peter

  • JDBC RECIEVER ADAPTER Configuration

    Hi,
    i'm doing one scenario.I'm sending sap data to Oracle 9i database.Pls give reciever jdbc structure.which structure i follws for oracle 9i.Pls this is urgent.Pls help me.
    Thanks
    Ravi

    Hi Ravi ,
    Please show us the input file format which you are trying to store in the Oracle DB.
    The format should look like any of these statement formats,
    <root>
      <StatementName1>
    <dbTableName action=u201DUPDATEu201D | u201CUPDATE_INSERTu201D>
        <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2new</col2>
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName1>
      <StatementName2>
    <dbTableName action=u201DINSERTu201D>
    <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2</col2>
    </access>
    <access>
    <col1>val11</col1>
    </access>
    </dbTableName>
      </StatementName2>
      <StatementName3>
    <dbTableName action=u201DDELETEu201D>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>    
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName3>
      <StatementName4>
    <dbTableName action=u201DSELECTu201D>
        <table>realDbTableName</table>
    <access>
    <col1/>
    <col2/>
    <col3/>
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName4>
      <StatementName5>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName >
      </StatementName5>
      <StatementName6>
    <anyName action=u201D SQL_QUERYu201D | u201CSQL_DMLu201D>
    <access>SQL-String with optional placeholder(s)</access>
    <key>
      <placeholder1>value1</placeholder1>
      <placeholder2>value2<placeholder2>   
    </key>
    </anyName >
      </StatementName6>
    </root>
    Check this once and correct yourself.
    Or please give us the sample format which you are configuring.
    Urs,
    Soorya

  • JDBC-RFC Query Error

    Hi friends,
    I have 2 tables at sender JDBC side . one is header table and second one is Line items.
    Now i have to pass to RFC in such a way that onley once header and respective line items to the RFC.
    rite now i am using this Query in JDBC sender side
    select * from table_Header,table_Line_Item where flag = '1' and counter1 = counter2;
    where counter1 and counter2 represents the header and line items correspondence.
    now i need to change in query or in mapping or in integration any condition....
    please help me its urgent
    Regards
    Vijay Kumar

    Inorder to select records from 2 table prefer Storedprocedure
    Just Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
    This will have to be done for your SELECT statement in JDBC adapter. ALso, make the UPDATE as either TEST, if you dont want any updations or give an UPDATE statement for the UPDATE query.
    Set the polling interval of your JDBC adapter to 1 hour and it will work like u want.
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    Storedprocedure trigger using JDBC sender adapter.

  • JDBC Pooling query

    OK i have 4 servers in my cluster and wanted to check pooling is working ok as i have reports from Oracle dba we have exceeded maximum licensing connections with 'ORA-00019: maximum number of session licenses exceeded'
    Now.. first of all would this be down to the application not closing the connection off after query?
    Would this be in connection pooling? Ive checked already and can see 100connections set by default.
    One thing im concerned about after looking in monitoring is this
    Current capacity for 3 nodes is 100 and for one it shows 4?? I thought these would be equal. num available is also 4 whilst the others are 100?
    Any  answers to above apreciated.

    The application not closing the connection may have an effect, because this 'leaks' from the pool,
    which may then have to make more. If you cannot fix the app, at least set a idle-connection-timeout
    for the pool, so it can retract connections that your app has reserved but not used for that long.
    As to one server showing 4 while the others 100, that is a higher-than-JDBC issue, asking why
    user load was not sent to that node. JDBC just supplies a connection from the local instance
    of the pool if/when the work is being done on a node.

  • Using a SDO_FILTER in a JDBC GeoRaster Query

    Hi,
    I have the following query which works perfectly:
    http://192.168.33.52:8888/mapviewer/wms?REQUEST=GetMap
    &SERVICE=WMS
    &VERSION=1.1.1
    &LAYERS=
    &mvthemes=
    <themes>
    <theme name="geor_theme">
    <jdbc_georaster_query
    jdbc_srid="8307"
    datasource="WMS"
    georaster_table="imagery"
    georaster_column="image_geor"
    raster_bands="0"
    asis="false">
    (SELECT image_geor FROM (SELECT * FROM imagery WHERE acquisition_time > TIMESTAMP '2008-08-16 14:41:41.41' ORDER BY acquisition_time ASC) WHERE ROWNUM = 1)
    </jdbc_georaster_query>
    </theme>
    </themes>
    &STYLES=
    &FORMAT=image/png
    &BGCOLOR=0xFFFFFF
    &TRANSPARENT=TRUE
    &SRS=EPSG:4326
    &BBOX=-84.099675,39.777289,-84.086652,39.791813
    &WIDTH=500
    &HEIGHT=500
    My only question is whether I need to use a SDO_FILTER to optimize the SQL part of the query. For example, if it is quite a big image stored in the GeoRaster, the image may be larger than the BBOX in the WMS. Is there anything to be gained by using a SDO_FILTER in the SQL along with the BBOX info from the WMS (expressed using the ?,?,?,? notation) ?
    At the moment the image is clipped using the BBOX coordinates from the WMS query automagically. I was just concerned the SQL was selecting the whole image....
    Thanks
    Matt

    Hi Matt,
    when using asis="false" the spatial filter should be automatically appended to your query. You can look the log (set it to finest) to check the query being issued.
    But this is just an initial filter to retrieve the objects that have some interaction with the WMS BBOX. Later, just the piece of the GeoRaster image for this BBOX will be loaded (not the whole image).
    Joao

Maybe you are looking for