Reg: JDBC

Hi...
   i am doing File to JDBC scenario using the stored procedure. While running the scenario,
I am getting below error.
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Test2' (structure 'EXECUTE'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
Can you please tell why that error is cuming?
Regards
Leela

Leela,
http://support.microsoft.com/kb/313181
SYMPTOMS
While using the Microsoft SQL Server 2000 Driver for JDBC, you may experience the following exception:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
CAUSE
This error occurs when you try to execute multiple statements against a SQL Server database with the JDBC driver while in manual transaction mode (AutoCommit=false) and while using the direct (SelectMethod=direct) mode. Direct mode is the default mode for the driver.
RESOLUTION
When you use manual transaction mode, you must set the SelectMethod property of the driver to Cursor, or make sure that you use only one active statement on each connection .
For  more clarification Please contact you DB .
Thanks
Prabhakar

Similar Messages

  • Reg: JDBC to IDOC Scenario Message Mapping

    hi Friends
    i am designing a Scenario JDBC - IDOC for accounting document interface using ACC_DOCUMENT03 idoc.
    i need the mapping program for that to map the JDBC fields with the IDOC fields, so can anyone help me the mandatory fields and the constant values for the IDOC which has to be mapped.Along with this can i know why the constants will be assigned to the fields like Begin =1 , MSGFN = 009 etc how these constants are defined.
    Thanks&Regards
    suman.

    Hi,
    for mapping constants in graphical msg mapping, select your target IDOC field..........then you have a constant in the below screen.........click it and then double-click on constant to change the value of the constant field.........then map this constant to your target IDOC field.
    for knowing which are the mandatory fields, ask your functional guys to tell you the mandatory fields in data segment of your IDOC and regarding Control segment EDIDC, you have to map fields which have sender and reciever system details.
    Regards,
    Rajeev Gupta
    Edited by: RAJEEV GUPTA on Feb 2, 2009 7:55 AM

  • Reg: JDBC Sender Adapter Locking everytime

    HI Experts,
    I am facing one issue regarding Sender JDBC Adapter.
    I already gone through few SDN LInk and followe the SAP Note 1083488 and few other links and blogs but there is no Use.
    I already kept JDBC SENDER>Advance>TASKTIMEOUT = 0 because as per the above note if I am keeping more than 0 then due to some server issues It is difficult to identify the adapter behaviour so I kept 0
    Can you please let me know any other Alternate way to identify this solution.
    Regards:
    Amar Srinivas Eli

    When you start communication channel what is the error are you getting??
    post your error message so that we can help you,
    Regards,
    Raj

  • Reg: JDBC Adapter without Update Query

    hi friends
    i have designed a scenario where JDBC as a sender. i need to configure the adapter without using update query

    Hi,
    I believe the date field will store along with the time filed in the same column. At least oracle does that.
    So in your select query you can write as below(from oracle, as i dont have a ms sql now)
    assume
    your table name = yourtable
    date column      = dtcolumn
    select * from yourtable where dtcolumn = sysdate - interval '1' minute;
    This query assumes that the dtcolumn will be always having the value of the date time stamp when data is inserted.
    To be frank you should not do this. I dont understand why you cannot add a column "processed" and add update that. Any specific business requirement?
    For best performance, typically in my implementation I suggest using a shadow table from which XI deletes the records. The actual table has the column saying if this got inserted to the shadow table.
    Regards
    Unni

  • Reg: JDBC -- RFC Sync call

    Hi All,
    I have created a scenario between JDBC and SAP, which is a synchronous communication. In SXMB_MONI and in communication channel monitoring it is successful. JDBC synchronous communication channel is able to fetch the data, However it is not able to push the data to AS400 DB2 database. Can anybody suggest regarding the same. (I want to avoid BPM)
    Regards,
    Venu V

    Thats the way SAP has implemented JDBC adapter.
    May be the reason could be that opening a JDBC connection and waiting for a response would increase the performance overhead highly. To avoid this JDBC connection are made async so that once the message is sent, the database connection is closed and table could be used for other transactions maintaining the integrity of data.
    Regards,
    Prateek

  • Reg jdbc communication channell proccessing

    I have scenario i.e JDBC to RFC
    but i need  small calrification like is it possible to trigger the jdbc sender communication channel automatically whne the file tirggerd from the orcle Database
    like without giving the any polling intervals CC should poll when the file triggerd.
    i am not going to use that file its just a flag to start the communication channel
    can we achive this through OS commands ???
    thanks in advance....
    Edited by: katakoti on Nov 9, 2011 2:18 PM
    Edited by: katakoti on Nov 9, 2011 2:19 PM
    Edited by: katakoti on Nov 9, 2011 2:20 PM

    can we achive this through OS commands ???
    Yes you can write script and control the channels externally like give start or stop command at your specified requirement time.
    Please see this link
    Control Communication Channels Externally without using RWB
    Also you can use wget or curl command in the script  followed by http url string.
    Example:
    wget  http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=start

  • Reg:JDBC adapter

    Is it possible to fetch the data from 5 different database tables using a sngle CC where JDBC is configured on sender side.if yes how?
    points will be rewarded for correct answers immediately....
    regards
    chandrakanth

    Hello ,
    You either use a select query with join or a stored procedure which will contain the logic to extract the data from multiple tables. But, the limitation in case of stored procedure is u can hv only one selct query in it.
    JDBC adapter will be able to holdany select query irrespective of how long it is.
    Sample code
    SELECT <Table_2>.EID, <Table_2>.FName, <Table_2>.LName, <Table_1>.REC_DAT, <Table_1>.DESCRP
    FROM <Table_1> INNER JOIN <Table_2> on
    <Table_1>.CARDNO = <Table_2>.CARD
    where REC_DAT = <condition>
    union
    SELECT <Table_2>.EID, <Table_2>.FName, <Table_2>.LName, <Table_1>.REC_DAT, <Table_1>.DESCRP
    FROM <Table_1> INNER JOIN <Table_2> on
    <Table_1>.CARDNO = <Table_2>.CARD
    where REC_DAT = <condition>
    Check these two threads...
    configuring jdbc adapter with multiple tables
    Two selects in one communication channel?
    ***********Reward points,if found useful

  • Reg:JDBC sender

    using JDBC sender adapter can we update the database of the receiver system ? If so pls provide me the blogs with suitable explanation
    anil

    Hi Anil,
    We can do this absolutely by JDBC sender adapter
    In the sender side choose JDBC adapter and give the select query in that corresponding field and write update statement in the corresponding update field.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm for sender side JDBC configuration.
    Follow this link
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
    At the receiver side you may use the IDoc/BAPI/RFC to connect the SAP
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    these links ll help u
    JDBC source in a Synchronous BAPI call.
    Re: Can I configure JDBC Sender to process the RFC response message?
    Re: JDBC Sender Synchronously?

  • Reg:JDBC Lookup to pull multiple values

    Hi All,
    We are trying to pull the data from SQL server and passing it to to RFC through JDBC lookup. Can anyone suggest me  how to pull data from  different tables and assign it to the target structure (RFC).
    Thanks in Advance,
    Lavanya.B

    Hi,
    You can consider this alternative using Stored Procedure...
    At receiver side you can execute stored procedure and return the required values in the Response structure. this response structure you have to map to you RFC structure.
    i) You can easily handle your select queries, complex logic in the stored procedure.
    ii) It is faster than triggering select queries.
    You can check these examples for practice and doubts...
    JDBC Stored Procedures
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    (3rd Scenario in the above pdf)
    Also refer
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
    Regards

  • Reg:JDBC scenario

    Hi All,
    My actual requirement is,need to trigger a the database(Oracle9i) on a daily basis for a scheduled time  and in receiver side it has to  post the xml file to 1) FTP server,2)as mail and  3) to portal as a web service.
    Can someone please suggest me how do this scenario.
    Thanks in Advance
    Lavanya.B

    Hi Lavanya,
       Please clarify some points
       you want to place same data in three receivers or based on conditions you havt ot send data??
    You can acieve it using BPM(if you send ding same data to 3 receivers)
    or you can acieve it using Enhance receievr determination if sending data besed on Conditions.
    Use JDBC Sender define the structure follow stanndarad procedure XI interface Development.
    receiver side use File,SOAP,Mail adapter.
    Cheers,
    Raj

  • Reg:JDBC to FILE Scenario

    Hi All,
    My scenario is JDBC to File.
    In receiver file communication channel I will be using  the  Conversion Agent tool and the file name should reflect either the value of the Field say <NAME>TEST</NAME> ,then my output file name will be TEST.CSV or the Busines Service name ie BS_TEST ,then it should be BS_TEST.CSV
    Please suggest me on this.
    Thanks in Advance,
    Lavanya.B

    Hi,
    Check this blog for using the Busines Service name as your file name:
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    the same you can use the Variables from Payload to get the field name as file name check [this|http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm] link and go to variable subsitution section second option  If the variable refers to an element in XML schema, add the prefix payload:
    Sachin

  • Reg:JDBC Receiver

    Hi All,
       My scenario is Proxy to JDBC (Asynchronous). I have the requirement to delete the old records i.e.  to delete the records of the particular fields that are mapped  and then insert the new values from the sender side to the same fields.
    My structure at the receiver side has already two statements and I have to implement the above functionality to both the statements.
    can anyone suggest me how to implement for the same.
    Thanks in Advance,
    Lavanya .B

    Hi All,
    Let me state an example say,I  have two fields with two different tables and for this 2 statements were used.
    TABLE1:
    Statement1----
    0-U
           NAME----
    0-1
    TABLE2:
    Statement2----
    0-U
           ADDRESS----
    0-1
    Both Name and Address  have values of 10 records .Again 8 records are updated to the Field NAME and no updation for the field Address.
    Can anyone tell me what will be the status and how many records will both the fields will have now? while using UPDATE_INSERT action.
    Lavanya.B

  • Reg: JDBC Connection Pool

    Hi,
    When will the parameters Waiters, Waiter high Watermark and Longest Wait(seconds) vary for JDBC Connection Pools in Weblogic 5.1? I find this to be zero always in the AdminJDBC info page.
    Thanks
    Sundar

    process limit on oracle database is controlled by
    parameter process which is the maximum threshold for maximum number of processes database can have.
    obviously there is os process threshold above it
    may be you can have increases connection limit in pool .. but need to properly close connections when done
    --AFAIK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter

    Dear Gurus,
    Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
    His Requirement::
    1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
    2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
    3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running  on that.....
    We Proposed::
    1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
    but he s not accepting for this
    2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
    but he s not even accepting for this
    3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
    but he s not even accepting for this
    We have done some R & D:::
    1. WE approached even through BPM and via switch conditions is one scenario
       FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
    2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
    Even though we know this...concept that...we jsut tried::
    In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
    Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables 
    Regards:
    Amar Srinivas Eli

    Hi! All,
    Finally I decided to do the scenario in two steps:
    1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
    2: FILE RECV --> RFC
    But I am getting issue while doing first scenario
    Desgn :
    I have created 2 Synchronous interfaces :
    1) FILE 2 JDBC REQ
    In this a) out put message is FILE  Req
              b) Input msage:; FILE RES
    2} JDBC2FILE RECV
            a) Output mesage;; JDBC REQ
            b) Input Msge :: JDBC Response
    Mappings:
    1) File REQ-->JDBC REQ
    2) JDBC RES-->FILE RES
    Interface mappings:
    1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
    CONFIGURATION ::
    1: One Seder File CC
    2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
    3; One Sender Agreement
    4: 2 Recver agreements
    5: One Interface Determination and
    6: One RECCV Determination
    My Question;;
    1. First let confirm whether my development steps are right or not ?
    2: Another thing s I am not sure reg Configuration Steps means
    whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
    3: main Issue is::::
    If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
    My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
    without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
    pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
    also explain in detail if i can  go for BPM
    Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
    Scenario File-JDBC-RFC
    File<-->JDBC Sync coomunication.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
    /people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
    Regards::
    Amar Srinivas Eli

  • Reg http to jdbc Scenario

    Hi all,
    I am trying to execute a synchronous Http to Jdbc Scenario using MS Access  table as my back end.
    In design part ,I have followed the steps like
    1. Created a http req ,jdbc req, jdbc response ,and then http response in Data types and the in Message types.
    2.Created Outbound MI with http req and http response as input and output messages  respectively,then Inbound message interface with jdbc req and jdbc response as input and output messages respectively.
    3.In Message mapping with  Http req and jdbc req as request mappings and jdbc response and http response as Response mappings following the Action and access Steps.
    Thats Fine with design part
    IN Configuration Part, Since it is a Http Sender ,i didnt create any sender agreement and sender communicatin channel.
    Then Configured Jdbc adapter properly and i am able to access my table with that.
    While Executing ,I can find that my message is sent in Runtime workbench and can find that Jdbc adapter is Running by showing green flag.
    I was trying to send an empid of a table as  key and expecting to  retrieve  the complete row of the corresponding key.
    But I could not find the response even though everything is fine with XI.
    Where Could be the problem ,where can I see the response from jdbc adapter .
    Please help me out in solving this .
    Thanks and Regards,
    Kalpana

    Hi Kalpana,
    Can you check this weblog
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    This should help you...
    Check the Response Mapping,also you have one IM with Reqest and Response mapping...
    Also if you have SP16 then you can have sender CC for HTTP also ...
    Regards,
    sridhar

Maybe you are looking for

  • Problem In Excel File download

    Hi I have created an excel file fro table using HSSF api.When i click on the link download excel,it opens properly but an empty new window also opens along with it..i do not want that to happen any Suggestions??

  • SharePoint Workflow Long Date does not output day of week!

    Hi all,  We have developed a workflow that sets a time delay and notifies users after three working days have elapsed. It detects a working day by checking whether the words "Saturday" or "Sunday" occur in the long date version of "Today". This workf

  • [Microsoft Intune] Deployed software not showing up in web portal

    I am testing microsoft intune in a testlab. I have downloaded the trial and installed it on the server and I synced my AD users with intune. After that i added a windows 8.1 device. I can reboot the machine remotely with the admin console and i can s

  • Have 6.3 but still can't convert my powershot s95 cr2

    I have CS4 and have been following the solutions listed here: http://kb2.adobe.com/cps/407/kb407110.html Since I don't have CS5, I downloaded Adobe DNG converter 6.3. However, when I go to the folder where I have been keeping my .cr2 via the converte

  • Problems buying book in Hong Kong

    I am using iphoto6.0.6 on my imac 2.16Ghz, and it doesnt allow me to choose my country... what can i do if i want to buy a photoalbum book i made. Can anyone help?