Calling webservice in udf for inserting data into webservice

Dear Experts,
      Please give me the drawbacks of using lookup function for inserting data. we are calling a webservice from the udf for inserting the data using a webservice.
It is a file to jdbc usnig a soap lookup . we use this approach because we need to pass the response from webservice along with the error data to the jdbc.   is there any other way to do it without using bpm ?
    In the udf we are creating the xml structure for webservice and passing the parameters through arguments.
is there a better approach for this ?
Thanks,
Aju

Hi Aju,
You can do it without BPM.
Write UDF for Soap Lookup. Parse the response message from Webservice.  and map the required values to respective fields.
See the weblog
Webservice Calls From a User Defined Function.
Negative point of this solution is that it will take some time to call Webservice and get response back from it.
Kulwinder

Similar Messages

  • Which trigger to use for insert data into db table in Forms

    Hi,
    My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
    I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
    Is it Key-commit trigger at form level?
    Please advise.
    Thanks,
    Yuvaraaj.

    Hi Yuvaraaj.
    Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
    @2nd reply
    Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
    You are inserting one record in master block then insert 3 record name A,B,C for that master record.
    Now you want master record should insert to each A,B,C record. Means
    'how are you' --master record
    and you want
    'A'- 'how are you'
    'B'- 'how are you'
    'C'- 'how are you'OR
    ?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
    Hope this helps...
    Hamid
    Mark correct/helpful to help others to get right answer(s).*
    Edited by: HamidHelal on Jan 26, 2013 1:20 AM

  • Query for inserting data into table and incrementing the PK.. pls help

    I have one table dd_prohibited_country. prohibit_country_key is the primary key column.
    I have to insert data into dd_prohibited_country based on records already present.
    The scenario I should follow is:
    For Level_id 'EA' and prohibited_level_id 'EA' I should retreive the
    max(prohibit_country_key) and starting from the maximum number again I have to insert them
    into dd_prohibited_country. While inserting I have to increment the prohibit_country_key and
    shall replace the values of level_id and prohibited_level_id.
    (If 'EA' occurs, I have to replace with 'EUR')
    For Instance,
    If there are 15 records in dd_prohibited_country with Level_id 'EA' and prohibited_level_id 'EA', then
    I have to insert these 15 records starting with prohibit_country_key 16 (Afetr 15 I should start inserting with number 16)
    I have written the following query for this:
    insert into dd_prohibited_country
    select     
         a.pkey,
         b.levelid,
         b.ieflag,
         b.plevelid
    from
         (select
              max(prohibit_country_key) pkey
         from
              dd_prohibited_country) a,
         (select
    prohibit_country_key pkey,
              replace(level_id,'EA','EUR') levelid,
              level_id_flg as ieflag,
              replace(prohibited_level_id,'EA','EUR') plevelid
         from
              dd_prohibited_country
         where
              level_id = 'EA' or prohibited_level_id = 'EA') b
    My problem here is, I am always getting a.pkey as 15, because I am not incrementing it.
    I tried incrementing it also, but I am unable to acheive it.
    Can anyone please hepl me in writing this query.
    Thanks in advance
    Regards
    Raghu

    Because you are not incrementing your pkey. Try like this.
    insert
       into dd_prohibited_country
    select a.pkey+b.pkey,
         b.levelid,
         b.ieflag,
         b.plevelid
       from (select     max(prohibit_country_key) pkey
            from dd_prohibited_country) a,
         (select     row_number() over (order by prohibit_country_key)  pkey,
              replace(level_id,'EA','EUR') levelid,
              level_id_flg as ieflag,
              replace(prohibited_level_id,'EA','EUR') plevelid
            from     dd_prohibited_country
           where level_id = 'EA' or prohibited_level_id = 'EA') bNote: If you are in multiple user environment you can get into trouble for incrementing your PKey like this.

  • Need Logic for Inserting data into table from another table

    Hi,
    Could you please give me some logic on below:
    TABLE_A has columns A,B,C,D
    What i did
    ==========
    Created new table
    TABLE_1_A with columns A1,A2,B1,B2,B3
    Requirement
    ===========
    I should populate columns A1,A2 (table TABLE_1_A) with the data from column A (table TABLE_A)
    & simillarly populate columns B1,B2 with the data from B.
    the data is huge in the table_a.
    Database: 10g
    Thanks.

    Hi,
    Here's one way:
    INSERT INTO  table_1_a
            (a1, a2, b1, b2)
    SELECT      a,  a,  b,  b
    FROM      table_a
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    See the forum FAQ {message:id=9360002}

  • How to use record type for inserting data into a table

    I've read through the web the following tip:
    "When working with a large number of columns, using variables of type RECORD is a better approach. With this approach, you do not have to list anything in the INSERT statement, because you are inserting a variable into the table that is defined as a row from the same table."
    I usually define a variable as
    r_mytable     mytable%ROWTYPE;
    and inside my procedure I'll set the fields I need as
    r_mytable.field1 := 1;
    r_mytable.field3 := 7;
    and then I perform the insert as
    insert into mytable
    (field1,
    field3)
    values
    (r_mytable.field1,
    r_mytable.field3);
    According to the tip I've copied above, how can I use the TYPE RECORD of pl/sql for achieving the same result but perhaps in a smarter way?
    Thanks in advance!

    Hi,
    Are you looking for this?
    SQL> create table table1 (id number, descr varchar2(30));
    Table created
    SQL>
    SQL> DECLARE
      2   my_rec table1%rowtype;
      3  BEGIN
      4   my_rec.id := 1;
      5   my_rec.descr := 'TEST';
      6   insert into table1 values my_rec;
      7  END;
      8  /
    PL/SQL procedure successfully completed
    SQL> select * from table1;
       ID DESCR
        1 TESTWorks with UPDATE too :
    SQL> DECLARE
      2   my_rec table1%rowtype;
      3  BEGIN
      4   my_rec.id := 2;
      5   my_rec.descr := 'TEST2';
      6   update table1 set row = my_rec where id = 1;
      7  END;
      8  /
    PL/SQL procedure successfully completed
    SQL> select * from table1;
       ID DESCR
        2 TEST2

  • Inserting data into database using service callout

    Hi,
    Im using 3 service callout for calling 3 database projects in osb. Im getting output from first two service call outs. In last service callout i have to insert data into data base which is output from service callout. im getting fault while inserting data. Can any body help me with any samples for inserting data into data base which is output from another service callout
    BEA-382513: OSB Replace action failed updating variable "body": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "element {http://www.w3.org/2003/05/soap-envelope}Body { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://xmlns.oracle.com/pcbpel/adapter/db/POC/NRICHMENT/}OutputParameters { {http://www.w3.org/2001/XMLSchema}anyType }

    Hi prabu,
    I tried with several inputs but im getting same error. How to map to data base input of third service call out with output values of second service call out?
    Any sample blogs

  • Invoking  Servlet to insert  data  into database

    I have written a compose page in html which on clicking SEND button has to call a servlet which inserts the values entered in htmlpage int to database .
    Can any one suggest me how it is done.
    thanks....:)

    for inserting data into the database u need to do the following
    1)write the servlet doGet method.Inside it use the object of the HttpServletRequest to retrieve the values entered in the html page.The method getParameter is used for that.If it is going to be a name written in textbox it should be like
    req.getParameter("txtname");
    req being the object of the HttpServletRequest object and txtname the name of the textbox.
    2)Load the driver
    3)Fix the connection
    4)Write a preparedstatement or statement which would insert the value which is requested above
    5)Execute the query.
    thats it
    All the best
    VaijayanthiBalaraman

  • Insert data into oracle database using a PHP form

    I'm trying to enter data into my oracle database table using a php form. When I click submit no data is added. Could someone help me please. I'm new to php/oracle thing.
    NOTE: I don't have any problem connecting to the database using php.
    Here is the code I'm using:
    <?php
    // just print form asking for name if none was entered
    if( !isset($query)) {   
    echo "<form action=\"$uri\" method=post>\n";
    echo "<p>Enter Name: ";
    echo "<input type=text size=100 maxlength=200 name=data value=\"$data\">\n";
    echo "<br><input type=submit name=submit value=Submit>\n";
    echo "</form>\n";
    exit;
    // insert client's name
    $query = "INSERT INTO client (name) VALUES ($data)";
    // connect to Oracle
    $username = "xxxx";
    $paswd = "yyyyyy";
    $dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
    "(HOST=patriot.gmu.edu)(PORT=1521))".
    "(CONNECT_DATA=(SID=COSC)))";
    $db_conn = ocilogon($username, $paswd, $dbstring);
    $stmt = OCIParse($db_conn, $query);
    OCIExecute($stmt, OCI_DEFAULT);
    OCIFreeStatement($stmt);
    OCILogoff($db_conn);
    ?>
    Thanks for your help. I will also appreciate a better was to do it.
    Tony

    resumption and jer,
    Sorry I cannot format the code for easy reading!
    The page is submitting to itself. See action = \"$uri\". I used the same logic to enter SELECT querries into the database. It pulls and displays data back on the webpage. The code I used for this is below. Compare it with the one above for inserting data into the table.
    <?php
    // connect to oracle
    $username = "xxxxx";
         $paswd = "yyyyy";
         $dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
              "(HOST=patriot.gmu.edu)(PORT=1521))".
              "(CONNECT_DATA=(SID=COSC)))";
         $db_conn = ocilogon($username, $paswd, $dbstring);
    // username and password will be unset if they weren't passed,
    // or if they were wrong
    if( !isset($query)) {
    // just print form asking for account details
    echo "<form action=\"$uri\" method=post>\n";
    echo "<p>Enter Query: ";
    echo "<input type=text size=100 maxlength=200 name=query value=\"$query\">\n";
    echo "<br><input type=submit name=submit value=Submit>\n";
    echo "</form>\n";
    exit;
    // remove unwanted slashes from the query
    $query = stripslashes($query);
    // run the query
    $stmt = OCIParse($db_conn, $query);
    OCIExecute($stmt, OCI_DEFAULT);
    // Open the HTML table.
    print '<table border="1" cellspacing="0" cellpadding="3">';
    // Read fetched headers.
    print '<tr>';
    for ($i = 1;$i <= ocinumcols($stmt);$i++)
    print '<td class="e">'.ocicolumnname($stmt,$i).'</td>';
    print '</tr>';
    // Read fetched data.
    while (ocifetch($stmt))
    // Print open and close HTML row tags and columns data.
    print '<tr>';
    for ($i = 1;$i <= ocinumcols($stmt);$i++)
    print '<td class="v">'.ociresult($stmt,$i).'</td>';
    print '</tr>';
    // Close the HTML table.
    print '</table>';
    OCIFreeStatement($stmt);
    OCILogoff($db_conn);
    ?>

  • Native SQL: insert data into oracle database, no return message.

    hi,
    the statement : insert into <TableName> values (Source)
    how can I know if the data have already insert to the database table?
    now I have a program have this problem: the data has already exist, but there's no error message return when insert the same data again.
    data: dbs like dbcon-con_name value 'HRGK',
                       dbtype type dbcon_dbms.
    data: sqlerr_ref type ref to cx_sql_exception,
             exc_ref    type ref to cx_sy_native_sql_error,
             error_text type string.
    data: cnt type i,
            i(2) type c.
    set locale language 'E'.
    EXEC SQL.
      CONNECT TO :DBS
    ENDEXEC.
    EXEC SQL.
      SET CONNECTION :DBS
    ENDEXEC.
    EXEC SQL.
      SELECT COUNT(*) from org_unit into :cnt
    ENDEXEC.
    write: / cnt.
    *do.
    i = 'A'.               
    try.
        EXEC SQL.
          BEGIN
           insert into ORG_UNIT ( ORGAN_ID, UNIT_NO, UNIT_NAME, PARENT_ID)
                         values ( 'A', '123412', 'SDFSG', 'DDS');                     " ORGAN_ID is primary key
    " If the data 'A' has already exist in database ORG_UNIT, it will show error message
    " But if I use :I instead 'A', it will not show error message.
            IF SQL%FOUND THEN
               COMMIT;
            END IF;
          END;
        endexec.
        EXEC SQL.
          SELECT COUNT(*) from ORG_UNIT into :cnt
        ENDEXEC.
        write: / cnt.
    catch cx_sy_native_sql_error into exc_ref.
        error_text = exc_ref->get_text( ).
        write: / error_text.
      catch cx_sql_exception into sqlerr_ref.
        perform handle_sql_exception using sqlerr_ref.
    endtry.
    EXEC SQL.
      disconnect :DBS
    ENDEXEC.
    *enddo.
    *&      Form  handle_sql_exception
    form handle_sql_exception
      using p_sqlerr_ref type ref to cx_sql_exception.
      format color col_negative.
      if p_sqlerr_ref->db_error = 'X'.
        write: / 'SQL error occured:', p_sqlerr_ref->sql_code,
               / p_sqlerr_ref->sql_message.                     "#EC NOTEXT
      else.
        write:
          / 'Error from DBI (details in dev-trace):',
            p_sqlerr_ref->internal_error.                       "#EC NOTEXT
      endif.
    endform.                    "handle_sql_exception
    please help to see the words:
    *" If the data 'A' has already exist in database ORG_UNIT, it will show error message*
    *" But if I use :I instead 'A', it will not show error message.*
    in the program.
    Thanks a lot!

    resumption and jer,
    Sorry I cannot format the code for easy reading!
    The page is submitting to itself. See action = \"$uri\". I used the same logic to enter SELECT querries into the database. It pulls and displays data back on the webpage. The code I used for this is below. Compare it with the one above for inserting data into the table.
    <?php
    // connect to oracle
    $username = "xxxxx";
         $paswd = "yyyyy";
         $dbstring = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)".
              "(HOST=patriot.gmu.edu)(PORT=1521))".
              "(CONNECT_DATA=(SID=COSC)))";
         $db_conn = ocilogon($username, $paswd, $dbstring);
    // username and password will be unset if they weren't passed,
    // or if they were wrong
    if( !isset($query)) {
    // just print form asking for account details
    echo "<form action=\"$uri\" method=post>\n";
    echo "<p>Enter Query: ";
    echo "<input type=text size=100 maxlength=200 name=query value=\"$query\">\n";
    echo "<br><input type=submit name=submit value=Submit>\n";
    echo "</form>\n";
    exit;
    // remove unwanted slashes from the query
    $query = stripslashes($query);
    // run the query
    $stmt = OCIParse($db_conn, $query);
    OCIExecute($stmt, OCI_DEFAULT);
    // Open the HTML table.
    print '<table border="1" cellspacing="0" cellpadding="3">';
    // Read fetched headers.
    print '<tr>';
    for ($i = 1;$i <= ocinumcols($stmt);$i++)
    print '<td class="e">'.ocicolumnname($stmt,$i).'</td>';
    print '</tr>';
    // Read fetched data.
    while (ocifetch($stmt))
    // Print open and close HTML row tags and columns data.
    print '<tr>';
    for ($i = 1;$i <= ocinumcols($stmt);$i++)
    print '<td class="v">'.ociresult($stmt,$i).'</td>';
    print '</tr>';
    // Close the HTML table.
    print '</table>';
    OCIFreeStatement($stmt);
    OCILogoff($db_conn);
    ?>

  • I can insert data into an access database, but I need to querry the database for specific information. How do I do it?

    I can insert data into an access database, now I need to do some simple querries such as selecting all records that are greater than a certain value or = a certain value. How can I return only the selected records?

    If you don't want to spend any money, then instead of ActiveX, I would recomend LabSQL from Jeffrey Travis. I use it instead of the Connectivity toolkit and have had no problems. Besides being free, you have the advantage of being able to use it with any database. ActiveX ties you to Access and you upgrade your version of Access and find the properties and methods are different, you've got a lot of reprogramming to do.

  • How can I insert data into the standard CRM tables ?

    Hi Experts,
    Scenario----
    I need to download few attributes (fields) from SAP MDM to SAP CRM via SAP XI. I'm using the 'COMT_PRODUCT_MAINTAIN_API' API for it.
    The attributes(fields) that are present in the strucutres of API are downloaded into CRM system (by executing the Inbound proxy that is created based on the Message Interface created on XI) by calling the functions present in the API.
    And for those fields that are not present in CRM, but need to be downloaded into CRM, I'm creating the Set Type attributes in CRM, which get appended to the API.
    My query is:
    There are fields in CRM into which I need to insert the values. But they are not listed in the API. So, how can I insert(/download) the values into these standard fields?
    Regret the long description. Intended to be clear.
    TIA. Points will be awarded.
    Regards,
    Kris
    Edited by: Kris on Jul 21, 2008 8:00 AM

    he INSERT program throws exception???
    can any one help me how to insert data into tabel.I have never used the jdbc driver to access, but what do you think that the flag READONLY=true means? An insert is not a read.
    Kaj

  • How can i insert data into DB from my page programatically in Oracle ADF..?

    Hai, this is praveen.
    I have created  an EO and VO, when i have inserted data by dragging and dropping from DataControl -->Operations-->Create. I have successfully inserting data. But how can i do it programatically. What are the pre-defined steps that i can use over there to insert data into table programatically. Could u plz help me?

    Hi,
    You have to create an action Listener in the bean for any button.
    Then call an AM method.
    In that you have to do the following
    ViewObject yourVO = getYourVO();
    Row r = yourVo.createRow();
    r.setAttribute("Column1", value1); //the name of column should be as it is in your vo attribute.
    yourVO.insertRow(r);
    this.getDbTransaction().commit();
    Thanks

  • How do I run a database procedure that inserts data into a table from withi

    How do I run a database procedure that inserts data into a table from within a Crystal report?
    I'm using CR 2008 with an Oracle 10i database containing a number of database tables, procedures and packages that provide the data for the reports I'm developing for my department.  However, I'd like to know when a particular report is run and by whom.  To do this I have created a database table called Report_Log and an associated procedure called prc_Insert_Entry that inserts a new line in the table each time it's called.  The procedure has 2 imput parameters (Report_Name & Username), the report name is just text and I'd like the username to be the account name of the person logged onto the PC.  How can I call this procedure from within a report when it's run and provide it with the 2 parameters?  I know the procedure works, I just can't figure out how to call it from with a report.
    I'd be grateful for any help.
    Colin

    Hi Colin, 
    Just so I'm clear about what you want: 
    You have a Stored procedure in your report.  When the report runs, you want that same procedure to write to a table called Report_Log. 
    If this is what you want the simple answer is cannot be done.  Crystal's fundamental prupose is to read only, not write.  That being said, there are ways around this. 
    One way is to have a trigger in your database that updates the Report_Log table when the Stored Procedure is executed.  This would be the most efficient.
    The other way would be to have an application run the report and manage the entry. 
    Good luck,
    Brian

  • Inserting data into a Clob

    I need to insert data into a Clob (>8k) and have not been able to determine how
    to do it without using Oracle's extensions to the JDBC JDK.
    Does anyone have a code snippet to show how to populate the Clob in the first
    place?
    Thanks,
    Cully.
    Settings from weblogic.properties:
    weblogic.jdbc.connectionPool.oraclePoolCSA=\
    url=jdbc:oracle:thin:@IHP273:1521:AIRCORE,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=csav2;password=csav2
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePoolCSA=\
    guest,everyone
    weblogic.allow.reset.weblogic.jdbc.connectionPool.oraclePoolCSA=everyone
    weblogic.allow.shrink.weblogic.jdbc.connectionPool.oraclePoolCSA=everyone
    weblogic.jdbc.TXDataSource.CSATXDataSource=oraclePoolCSA

    Shiva,
    That was it....instead of doing the Blob work all in the same insert
    statement, I grabbed a new sequence and inserted a row with an empty_blob().
    After that I did an update on that row setting the correct value of the
    Blob.
    Thanks for the help!!
    "Shiva Paranandi" <[email protected]> wrote in message
    news:[email protected]...
    I tried with SP2 only and it works. The problems might be that you aregetting a
    null blob. Try inserting an emtpy blob first. Check out this program whichworks
    for me on WLS 6, SP2.
    Shiva.
    Tony Bailey wrote:
    Still getting the NPE. Any other ideas??? Are you able to do this
    successfully on sp2?
    "Shiva Paranandi" <[email protected]> wrote in message
    news:[email protected]...
    Try these two things:
    1. Change your SQL query to "SELECT image FROM " + table + " for
    update";
    2. Also, set conn.setAutoCommit(false);
    Shiva.
    Tony Bailey wrote:
    If I step through the code in the debugger, everything is A-OK up
    until
    the
    getBinaryOutputStream, then I get a NPE. The blob appears to be
    instantiated when I toString() it in the previous line.
    private Blob getBlob(File f, String table)
    throws SQLException
    Connection conn = null;
    PreparedStatement pstmt = null;
    ResultSet rs = null;
    String SQL;
    Blob imgblob = null;
    FileInputStream fis = null;
    OutputStream bos = null;
    try
    conn = dbutil.getConnection();
    SQL = "SELECT image FROM " + table;
    pstmt = conn.prepareStatement(SQL);
    rs = pstmt.executeQuery();
    rs.next();
    imgblob = rs.getBlob("image");
    logger.log(Debug.DEBUG, "DictTblCtrlr.getBlob(): The
    blob
    is: "
    + imgblob);
    fis = new FileInputStream(f);
    bos = ((OracleBlob)imgblob).getBinaryOutputStream();
    byte[] buffer = new byte[65534];
    int length = -1;
    while ((length = fis.read(buffer)) != -1)
    bos.write(buffer, 0, length);
    bos.flush();
    catch (Exception sqle)
    logger.log(Debug.ERROR, "DictTblCtrlr.getBlob(): " +
    sqle.getMessage());
    sqle.printStackTrace();
    throw new SQLException(sqle.getMessage());
    finally
    try { fis.close();  bos.close(); } catch (Exception e)
    dbutil.release(rs, pstmt, conn);
    return imgblob;
    [07-19-2001 03:02:07] DEBUG:DictTblCtrlr.getBlob(): The blob is:
    weblogic.jdbc.rmi.SerialBlob@1f1f12
    [07-19-2001 03:02:23] ERROR:DictTblCtrlr.getBlob():
    java.lang.NullPointerException
    java.sql.SQLException: java.lang.NullPointerException
    at
    weblogic.jdbc.rmi.SerialBlob.getBinaryOutputStream(SerialBlob.java:73)
    at
    com.uctech.psws.persistence.datacontroller.DictionaryTableController.getBlob
    (DictionaryTableController.java:410)
    at
    com.uctech.psws.persistence.datacontroller.DictionaryTableController.insert(
    DictionaryTableController.java:363)
    "Shiva Paranandi" <[email protected]> wrote in message
    news:[email protected]...
    Could you post the exception?
    Shiva.
    Tony Bailey wrote:
    Using the example, I get a NullPointerException when calling
    getBinaryOutputStream() under WL6.0sp2.
    "Filip Hanik" <[email protected]> wrote in message
    news:[email protected]...
    look under
    $BEA_HOME/wlserver6.0sp1/samples/examples/jdbc/oracle/OracleBlobClob.java
    >>>>>>>
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net
    "Cully Orstad" <[email protected]> wrote in message
    news:[email protected]...
    I need to insert data into a Clob (>8k) and have not been
    able
    to
    determine how
    to do it without using Oracle's extensions to the JDBC JDK.
    Does anyone have a code snippet to show how to populate the
    Clob
    in
    the
    first
    place?
    Thanks,
    Cully.
    Settings from weblogic.properties:
    weblogic.jdbc.connectionPool.oraclePoolCSA=\
    url=jdbc:oracle:thin:@IHP273:1521:AIRCORE,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=csav2;password=csav2
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePoolCSA=\
    guest,everyone
    weblogic.allow.reset.weblogic.jdbc.connectionPool.oraclePoolCSA=everyone
    >>>>>>>>
    >>>>>>
    >>>>
    >>
    weblogic.allow.shrink.weblogic.jdbc.connectionPool.oraclePoolCSA=everyone
    >>>>>>>>
    weblogic.jdbc.TXDataSource.CSATXDataSource=oraclePoolCSA

  • Inserting data into po_lines_archive_all

    I',m making a web app. using the Jdev (RUP4) with OA Extension.
    I need to be clear about if i'm allowed to insert data into for instance the po_lines_archive_all table without using any API's (assuming that I'm following the described approch within the framework)?
    In the case I'm not allowed, where do I locate the API which could do the trick?

    hi Jaco Verheul and tapashray
    first of all it's not po_lines_archive_all, but PO_lines_all (sorry that's my mistake)
    If you look at the mentioned version of the Oracle Order Management Open Interface APIs page 2-151 then you find the following sample code:
    Create Operation Example 2
    Inserting a new line into an existing order.
    Warning: You cannot insert new lines (or, process any other
    entity) belonging to different orders in one process order call
    -- NEW LINE RECORD
    l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
    -- Primary key of the parent entity (If not passed, this will be retrieved
    from the parent record, p_header_rec, if it was also passed to process order
    else there will be an error in the processing of this line).
    l_line_tbl(1).header_id := 1000;
    -- Attributes for the new line
    l_line_tbl(1).inventory_item_id := 311;
    l_line_tbl(1).ordered_quantity := 1;
    -- Indicator that a new line is being created
    l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
    -- CALL TO PROCESS ORDER
    OE_ORDER_PUB.Process_Order(........
    -- Passing just the entity records that are being created
    p_line_tbl=> l_line_tbl
    -- OUT variables
    And since I want to inserting a new line into an existing order that should be OK right? There is also sample code on how to update, delete etc, in many other scenarios.
    The link Jaco Verheul is refering to does not work at the time, so I will check it later
    Thanks,
    Michael

Maybe you are looking for

  • Stored procedure transactions

    I want to select message from a table (INBOX), put there id in a pending table and return those messages as a cursor. FUNCTION nonPendingMessages      RETURN pkg_delijn.ref_cursor AS      nonPendingCursorRef pkg_delijn.ref_cursor;      CURSOR nonPend

  • Cant use mac without a mouse

    My mouse has just died on me, and its going to be a while till i can afford to get another. I've tried to use the mac using keyboard shortcuts but cant get any where i need to go. Ive printed off the support from apple but one problem remains, i cant

  • Contact Center Simulator - Authorization

    Hi, we have activated contact center simulator, however when we try to run it in the BCB/CCS administration page, we can't login and get "Cannot authenticate the user" message prompted. any lead is really appreciated. thanks JD

  • For the iPhone video experts...

    I want to use my iPhone as a video camera or webcam for extended periods of time (i.e., 2, 3 or even 4 hours per instance), and to have an easy way to either download the files or record the webcam broadcast. I am on the edge of going 3g or 3gs but w

  • Latest Update does not fix unresponsive settings

    I have upgraded to the latest version of the Flash Player for Mac OS X Lion (v10.3.183.7) and I am still experiencing the unresponsive settings screen.  I have made sure to completely uninstalled the prior verson, reboot and install the latest versio