Double games of results returned on stored procedure call

Hello

I have a stored procedure created Java and called using the Spring JDBC using StoredProcedure class, stored procedure returns duplicate rows, is this a known problem?

When I run the stored procedure even in DBVizualiser it not show correctly.

The class below is used to execute the stored procedure:

public class CustomerSearchProcedureRunner extends StoredProcedure {
 public CustomerSearchProcedureRunner(JdbcTemplate jdbcTemplate) {
  super();
  this.setJdbcTemplate(jdbcTemplate);
  this.declareParameter(new SqlReturnResultSet(RETURN_RESULTS, new CustomerRowMapper()));
  this.declareParameter(new SqlParameter(CUST_SP_IN_PARAM, Types.VARCHAR));
  this.setSql("{CALL INSURANCE.SEARCHCUSTOMER (?) ON ALL}");
  this.setSqlReadyForUse(true);
  this.compile();
 }
}


and Java Stored Procedure that runs SQLFire is given below:

public class CustomerSearchProcedure {
 
 private static final String DOLLAR = "\\$";
 private static final String COLON = ":";
 private static final String CUST_NAME = "CUST_NAME";
 private static final String CUST_NO = "CUST_NO";
 private static final String GENDER = "GENDER";
 
 
 public static void searchCustomer (String customers, ResultSet[] outResults,
   ProcedureExecutionContext context) throws SQLException {
  StringBuilder sql = new StringBuilder();
  StringBuilder whereCondt = new StringBuilder();
  String[] tokens = new String[]{};
  
  if (customers != null && customers.trim().length() > 0) {
   tokens = customers.split(DOLLAR);
  }
  
  sql.append("<global>SELECT * FROM INSURANCE.CUSTOMERS ");
  whereCondt.append("WHERE CUST_PRIMARY IN ('Y', 'N') ");
  // Apply dynamic where condt
  for (int i=0; i < tokens.length; i++ ) {
   String token = tokens[i];
   if (token.startsWith(CUST_NO)) {
    if (whereCondt.length() > 0) {
     whereCondt.append(" AND ");
    }
    whereCondt.append("CUST_NO = " + token.substring(token.indexOf(COLON)+1));
   }
   if (token.startsWith(CUST_NAME))  {
    if (whereCondt.length() > 0) {
     whereCondt.append(" AND ");
    }
    whereCondt.append("CUST_NAME LIKE '"+ token.substring(token.indexOf(COLON)+1).trim() + "%'");
   }
   if (token.startsWith(GENDER)) {
    if (whereCondt.length() > 0) {
     whereCondt.append(" AND ");
    }
    whereCondt.append("GENDER ='"+ token.substring(token.indexOf(COLON)+1).trim() + "'");
   }
  } //End of for
  
  if (whereCondt.length() > 0) {
   sql.append(whereCondt.toString());
  }
  
  Connection cxn = context.getConnection();
  Statement stmt = cxn.createStatement();
  ResultSet rs = stmt.executeQuery(sql.toString());
  outResults[0] = rs;
 } //END OF METHOD
}

A correction preceding: "for the case on the information in the TABLE of the DataSet to be targeted on each node is also sent for the tag requests will target only this dataset (and avoids duplicates).»

should read "in the case of on TABLE query Tags will only target the local primary data on the node for tables partitioned, while for replicated tables, it is sent to only one of the lines (and so avoids duplicates in both cases).» WHERE clause to TABLE is not used for cutting data only for the size of the set of nodes to the target.

The tag prunes yet the query to all of the local primary buckets in all cases (i.e. which WE ALL and on GROUPS of SERVERS) so the comment about and equivalent was incorrect. However, this will always be looking for data in duplicate for replicated tables and TABLE is the only way to avoid it for now.

Tags: VMware

Similar Questions

  • How to do a select on the results of a stored procedure?

    Hello

    I am new to Oracle. I work with SQL Developer.

    I'm doing a simple select on the results of a stored procedure call. I don't know how to do it. Here's what I have so far:

    declare
    type ref_cursor is ref cursor;
    results ref_cursor;
    Start
    MyStoredProcedure (123 results);
    Select * from results;
    end;
    /

    but he said to me:

    Error from the 1 in the command line:
    declare
    type ref_cursor is ref cursor;
    results ref_cursor;
    Start
    GET_TAX_TYPE_BY_TAX_ENTITY_KEY (60670100000000, results);
    Select * from results;
    end;
    Error report:
    ORA-06550: line 6, column 15:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 6, column 1:
    PL/SQL: SQL statement ignored
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:

    Obviously, select * results; is not the right way to do it. But what is?

    Thanks for any advice forthcoming.

    If a SQL cursor is built by a reporting system, a Java application, a c# program, or a PL/SQL call - the database doesn't care, because he doesn't know the difference. A Select SQL cursor created in PL/SQL through the ref cursor interface, won't be faster than the same SQL select in Eclipse. If the SQL source code is the same, the same cursor SQL program will be used by both.

    What give you BIRT is the flexibility of the use of code Server (PL/SQL) to create the slider - this code doing business and technical decisions on how to design side than SQL, Select. Which is a good thing because it summarized the data model and the complexity BIRT server technique.

    So my choice would be to use the procedural interface and return to the reporting system for the rendering of the ref Cursor.

    The question of a slider running via the slider (selection of a cursor), is questionable. Yes, there are a set of specifications that allows to do this kind of thing. But it must be very firmly justified and careful design because it really is an exception. I personally (blame my DBA) would need a justification because it is much more of an exception. I have never seen it put in place in production in more than a decade of DBA'ing, despite the developers try to use such a hack - as it has always been much more powerful and the deployment of alternatives.

    The concept for robust and efficient code for Oracle is: Maximise SQL. Minimize the PL/SQL (or Java / c# / etc.).

    That means when it comes to database power, write an SQL program to do. Stop thinking of SQL as a language of data recovery a single simplistic statement. Think of it as a programming language. Extremely complex problems can be resolved with a single SQL, which requires easy code 100 + lines of PL/SQL, Java, or c#. Write SQL programs. Not SQL one-liners for a grinding program PL/SQL or Java data.

    Why then PL/SQL? It is the best language to manage the creation of SQL, dealing with the process flow, conditional processing, and so on of exception handling. It is less than SQL (such as Java and c#) in the treatment of the data.

  • Return more than an OUT parameter of the stored procedure called in sql

    I searched for it, but maybe that I did a good job. I would return two parameters of a stored procedure that is called from an sql query. Something like
    select my_proc(in_param) from dual
    When the results of the query will return 2 columns. It is guaranteed in my design in order to return only a single record.

    Is this possible?

    The version of Oracle that I use is:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
    PL/SQL Release 10.2.0.2.0 - Production
    "CORE     10.2.0.2.0     Production"
    TNS for Linux: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production

    Is this possible?

    Laughing out loud
    You can not call a stored SQL procedure. Only functions can be called from SQL.

  • change the caption of the label of a result of the stored procedure

    I have need to change the caption of the label on the report using the generator of reports and the source of data to a stored procedure.

    Your information and your help is much appreciated,

    Kind regards

    Iccsi

    There are at least two ways to handle this.

    The first is to transmit the column headings to the State as parameters.

    The second is to use a subreport that uses a record-results set that contains the column headers. You will need to set the sub-rapport to zero margins to get things to line up correctly.

  • SQL dynamic stored procedure call

    I want to run the following command (which I build dynamically) to pl/sql, stored procedure, but I get the error message
    How can I run this command from pl/sql after I built it dynamically?


    exec RESEND_MISSING_UFMS (June 5, 13 04.00.00.000000000 AM ', June 6, 13 04.00.00.000000000 AM', 'VPS'); < < works very well on the sql prompt.


    create or replace procedure tranhost.ufm_resubmit
    AS
    v_time1 varchar2 (50);
    v_time2 varchar2 (50);
    cmd_str1 varchar2 (100);
    cmd_str2 varchar2 (100);

    BEGIN
    Select to_char (sysdate-1,' MON-JJ-AA "") in the double v_time1;
    Select to_char(sysdate,'DD-MON-YY') in the double v_time2;

    -next fails with ORA-00900: invalid sql statement.

    immediately run "exec RESEND_MISSING_UFMS('''||) v_time1 | "04.00.00.000000000 AM","' | v_time2 | ("04.00.00.000000000 AM VPS",""); " ;

    END;
    /
    CREATE OR REPLACE PROCEDURE tranhost.ufm_resubmit
    AS
       v_time1    VARCHAR2 (50);
       v_time2    VARCHAR2 (50);
       cmd_str1   VARCHAR2 (100);
       cmd_str2   VARCHAR2 (100);
       var_sql    VARCHAR2 (300);
    BEGIN
       SELECT TO_CHAR (SYSDATE - 1, 'DD-MON-YY')
         INTO v_time1
         FROM DUAL;
    
       SELECT TO_CHAR (SYSDATE, 'DD-MON-YY')
         INTO v_time2
         FROM DUAL;
    
    -- follownig fails with ORA-00900: invalid sql statement .
       var_sql :=
             'BEGIN RESEND_MISSING_UFMS('''
          || v_time1
          || ' 04.00.00.000000000 AM'','''
          || v_time2
          || ' 04.00.00.000000000 AM'',''VPS''); END;';
       DBMS_OUTPUT.put_line (' Block :' || var_sql);
    
       EXECUTE IMMEDIATE var_sql;
    END;
    
  • The stored procedure call Fail

    I don't know that this is probably a simple answer, but please bear with me.

    I have a page

    defaulredirect.asp

    It receives form default.asp variables'

    I need to use form variables in my stored procedure. My procedure works fine in SQL, but when I try to add it as a command, it does not work.

    I'm not sure what I'm doing wrong. I am not sure what details you need. Please be patient with me.

    The procedure inserts the form in table variables and returns the identifier of the newly created (identity) for later use in my application.

    Your stored procedure has 7 settings, but you have created 8 in your asp code? What is 'cmdInsertRecord.CreateParameter ("@RETURN_VALUE", 3, 4) '?  I see that in your stored procedure. The parameters, including the order of their creation, must match exactly.  I've never used a type of return value so I don't know how it is used. I'll research, but in the meantime, try to comment on this possibility and see if it runs.

  • The JNI in Java, stored procedure call

    Dear,
    I want to know how to call stored procedure JNI Java. How to configure my java.library.path in Oracle to get a specific directlry containing DLLs file inorder to System.loadLibrary ("< dll_file_name >");

    Not sure if I'm on the right track, but it seems that Oracle does not support JNI.

    http://download.Oracle.com/docs/CD/B19306_01/Java.102/b14187/chthree.htm#CACFCDJF


    Oracle database does not support the use of JNI in Java applications. If you use JNI, then your application is not 100% pure Java and native methods need porting between platforms. Native methods can result in a server crash, violating the security and corrupted data.

  • IPCC Express Premium supports stored procedure calls

    IPCC expresses premium version support database features get information from databases odbc by calling stored procedures? The customer does not want that all custom sql queries with access, we are only allowed to use existing stored procedures.

    Yes, there is a post in March that describes what you need to do. I am currently using stored procedures with a SQL DB client and it works very well. I don't have to add custom tables that correspond to the stored procedure output well.

    http://forums.Cisco.com/eForum/servlet/NetProf?page=NetProf&type=EmailAFriend&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1ddd8f26%2F2#selected_message

    Mike

  • Personalization form - stored procedure call in the form library.

    Let's say we have a form: OEXOEORD.fmb (sales order form)

    Using Form Builder to open it, we see that it connects to other libraries PL/SQl, such as OEXOELIN (file: OEXOELIN.pll)

    and there are several stored procedures in OEXOELIN.

    is that possible in the customization of the form of good sales of command (OEXOEORD.fmb)

    call us a procedure in the OEXOELIN library? for example: we call procedure OE_LINE_SHIPPING.packing_insruction in the OEXOELIN library?

    I tried to use the Builtin FORMS_DLL or "Execute procedure", but does not work.

    We use the R12.

    the solution we found is:

    (1) use the form customization to call a custom library

    (2) custom library calls the forms library

  • In a table - looping through the rows and the stored procedure call

    APEX version: 3.2.0.00.27

    Hello

    I searched the forum and tried a few things but could not make it work.

    I have a tabular presentation, developed with the help of the ATD (Cascading LOV - method of tabular presentation - AJAX - ATD )

    What I'm trying to do now:
    -After submit and validations, loop through all the lines and
    -call a stored procedure passing 3 parameters obtained from each of the lines on the form of tables. This procedure will be an update of a database table.

    On the forum, I found that I could do the loop "* FOR i IN 1..." APEX_APPLICATION.g_f03. "LOOP COUNT *" syntax.

    Only for testing purposes, I tried just to view information with the following (On Load - after a footer) process (example of Denes Kubicek == > http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html):
    declare
      v_today  varchar2 (200);
    begin
    --  :P40_test := APEX_APPLICATION.g_f03(1);
    --  :P40_test2 := APEX_APPLICATION.g_f04.COUNT;
      :P40_test2 := 100;
    
      v_today := to_char (sysdate, 'dd.mm.yyyy');
    
    --FOR i IN 1.. APEX_APPLICATION.g_f03.COUNT LOOP 
    
      :P40_test := APEX_APPLICATION.g_f02(2);
    
      HTP.p ('<script type="text/javascript">');
      HTP.p (   'alert(''Today is '
              || v_today
    --          || APEX_APPLICATION.g_f04(APEX_APPLICATION.g_f03(i))
              || '.\n'
              || 'end!'');'
             );
      HTP.p ('</script>');
    
    --    :P40_test := APEX_APPLICATION.g_f02(APEX_APPLICATION.g_f02(i));
    
    --END LOOP;
    
    end;
    The foregoing would give me a ' * ORA-01403: no data found * ' message. I tried through various variants of APEX_APPLICATION.g_f0* #*, but still can't get anything to display correctly. In commenting on all the lines referring to APEX_APPLICATION.g_f0x above, the date would be are they displayed fine.

    I tried uncomment the FOR... LOOP and play with the code (defining the process runs "On submit - after calculations" and Validations), I got was a ' * ORA-06502: PL/SQL: digital error or value: character conversion number error * "message.

    Here is the script of the form in a table:
    select 
    "V"."MSLINK",                                       -- hidden (number)
    "V"."INSTALLATION_DATE",                        -- editable date picker
    "V"."MANUFACTURER_INDICATOR",              -- editable (cascading LOV -- text)
    "V"."MODEL_INDICATOR",                           -- editable (cascading LOV -- text)
    "V"."DIAMETER_INDICATOR",                      -- editable (LOV -- number)
    "V"."PURPOSE_INDICATOR",                        -- editable (LOV -- text)
    "V"."VALVE_NUMBER",                                -- shown but not editable -- number
    "V"."MODIFY_DATE",                                  -- shown but not editable
    "V"."MODIFY_USER",                                   -- shown but not editable
    "V"."VALVES_STYLE"."FEATURE"                  -- shown but not editable -- number
    from "#OWNER#"."VALVES" "V"
    Where
      "V"."PROJECT_ID" = :P1_PROJECT_NUMBER AND
      "V"."VALVES_DFLAG" = 0
    Regarding the parameters for the stored procedure, it would the MSLINK, VALVE_NUMBER and the VALVES_STYLE. FEATURE.

    Help, please!
    (Sorry for the long post).

    Thank you

    Tan

    Hi, Tan,

    I have not seen that type of object - I've only used custom types for purposes of test years ago and have never used their within Apex!

    One possibility is that the value of checksum being is based on all of the content of these fields, rather than only the part of the FEATURE. If there are other parts of the object, you could include those items as well.

    Otherwise, as you f01 KP for a record, you will need to retrieve the values of the FUNCTION in your PL/SQL code directly from the table (because the user cannot modify these fields, you can be sure that the values in the table will be still valid).

    Andy

  • SQL Server, stored procedure call error

    Using the JDBC Service to call a stored procedure causes an error. A simple statement execution using SQL that connects on the same SQL database server works as expected.

    CALL PAF_SAVE_FORMDATA (?,?)

    At the call of my approach, I refer the following error below. Any help would be appreciated.

    ALC-DSC-005-000: com.adobe.idp.dsc.DSCNotSerializableException: no serializable
    Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: internal error.
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute (EjbTransactionProvi der.java:207)
    at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute (DefaultTransactionT emplate.java:79)
    at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.handleFault (WorkflowDSCInvoker.java:752)
    at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke (WorkflowDSCInvoker. java: 366)
    at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:157)
    at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept (InvocationInterceptor. java: 140)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed (RequestInterceptor ChainImpl.java:60)
    to com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$ 1.doInTransaction (Transa ctionInterceptor.java:74)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute (EjbTr ansactionCMTAdapterBean.java:342)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew (EjbTransactionCMTAdapterBean.java:284)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionCMTAdapter_ caf58c4f.doRequiresNew (unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute (EjbTransactionProvi der.java:143)
    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept (TransactionInt erceptor.java:72)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed (RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept (InvocationStra tegyInterceptor.java:55)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed (RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept (InvalidStateIntercep tor.java:37)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed (RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept (AuthorizationInterc eptor.java:132)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed (RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed (RequestInterceptor ChainImpl.java:60)
    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke (AbstractMessageReceiv er.java:315)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall (SoapSdkEndpoint. java: 138)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke (SoapSdkEndpoint.java:81)
    at sun.reflect.GeneratedMethodAccessor178.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter (InvocationFilter.java:43)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter (FilterInstanceWrapper.java: 190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest (CacheServletWrapper.jav one: 90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination (HttpInboundLink .java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation (HttpInboundLink .java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators (NewConn ectionInitialReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete (NewConnectionInitia lReadCallback.java:113)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted (AioReadCompletionLi stener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    to com.ibm.io.async.AsyncChannelFuture$ 1.run(AsyncChannelFuture.java:205)
    to com.ibm.ws.util.ThreadPool$ Worker.run (ThreadPool.java:1497)
    Caused by: com.ibm.websphere.csi.CSITransactionRolledbackException: rollbackonly marked Transaction
    at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:200)
    at com.ibm.ejs.csi.RequiresNew.postInvoke(RequiresNew.java:93)
    at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:581)
    at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3986)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionCMTAdapter_ caf58c4f.doRequiresNew (unknown Source)
    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute (EjbTransactionProvi der.java:143)
    ... more than 65

    at com.adobe.idp.dsc.provider.impl.base.AbstractResponseHolder.handleException (AbstractRespo nseHolder.java:136)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkBindingStubUtil.deSerializeResponse (SoapSdkBindingStubUtil.java:122)
    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend (SoapAxisDispatche r.java:128)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send (AbstractMessageDispat dear .java: 57)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.common.utils.invoke.InvokeWithProgressRunner.invokeServiceOperation (InvokeWithP rogressRunner.java:170)
    at com.adobe.common.utils.invoke.InvokeWithProgressRunner.run (InvokeWithProgressRunner.java: 97)
    to org.eclipse.jface.operation.ModalContext$ ModalContextThread.run (ModalContext.java:113)

    The call should be at {} as {CALL PAF_SAVE_FORMDATA (?,?)}

    did you?

    Nith

  • Oracle stored procedure call

    Codes following regularities when it was run in sqlplus.

    DECLARE
    P_COM_ID VARCHAR2 (30);
    P_STATION VARCHAR2 (30);
    P_TYPE VARCHAR2 (99);
    NUMBER OF P_YEAR;
    NUMBER OF P_MONTH;
    NUMBER OF P_DAY;
    NUMBER OF P_HOUR;
    NUMBER OF P_MINUTE;
    DATE OF P_RECEIVED;

    BEGIN
    P_COM_ID: = 'XOX ';
    P_STATION: = '4064149';
    P_TYPE: = 'SA ';
    P_YEAR: = 2006;
    P_MONTH: = 1;
    P_DAY: = 2;
    P_HOUR: = 0;
    P_MINUTE: = 0;
    P_RECEIVED: = to_date ('2006-01-02 08:01:10 ',' yyyy-mm-dd hh);

    INGEST. REINSERT_OLD_HLY_INGEST_ROW (P_COM_ID, P_STATION, P_TYPE, P_YEAR, P_MONTH, P_DAY, P_HOUR, P_MINUTE, P_RECEIVED);
    COMMIT;
    END;

    However, when I called the procedure in coldfusion mx7, nothing seemed to happen.
    Codes of coldfusion are:

    < cffunction name = "f_reinsertOldHlyIngest" display = "f_reinsertOldHlyIngest" access = "public" returntype = "string" output = "false" >
    < name cfargument = "raw_com_id" required = "true" type = "string" >
    < name cfargument = "raw_station" required = "true" type = "string" >
    < name cfargument = "raw_struct_type" required = "true" type = "string" >
    < cfargument = "raw_Year" required = "true" name type 'number' = >
    < cfargument = "raw_Month" required = "true" name type 'number' = >
    < cfargument = "raw_Day" required = "true" name type 'number' = >
    < cfargument = "raw_Hour" required = "true" name type 'number' = >
    < cfargument = "raw_minute" required = "true" name type 'number' = >
    < cfargument = "date_time_received" required = "true" type = "name" >

    <! - grab any data basic error that could occure - >
    <! - declare a bunch of variables when necessary - >
    <! - grab any data basic error that could occure - >
    <!--> arguments.date_time_received channel change
    < cfset date_time_received = ' to_date ('"& arguments.date_time_received &" ',' yyyy-mm-dd hh) ">".
    < cftry >

    < cfset DB_ERROR_MSG = "" >

    <! - statement SQL/PL, which inserts a name record is called - >
    "< procedure ="INGEST.reinsert_old_hly_ingest_row cfstoredproc"datasource =" #this.datasource #
    "username =" "#This.username #" password = "#this.password # ' returncode ="no">
    < cfprocparam type = 'in' cfsqltype = "cf_sql_varchar" maxlength = "30" value = "" #arguments.raw_com_id # "null ="yes">"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_varchar" maxlength = "30" value = "' #arguments.raw_station # ' null 'no' = >"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_varchar" maxlength = "9" value = "' #arguments.raw_struct_type # ' null 'no' = >"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_numeric" value = "' #arguments.raw_year # ' null 'no' = >"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_numeric" value = "' #arguments.raw_month # ' null 'no' = >"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_numeric" value = "' #arguments.raw_day # ' null 'no' = >"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_numeric" value = "' #arguments.raw_hour # ' null 'no' = >"
    < cfprocparam type = 'in' cfsqltype = "cf_sql_numeric" value = "' #arguments.raw_minute # ' null 'no' = >"
    < cfprocparam type = 'In' cfsqltype = "CF_SQL_VARCHAR" value = "#preservesinglequotes (date_time_received) ' # ' null 'no' = >"
    <!-< cfprocparam type = 'In' cfsqltype = 'CF_SQL_DATE' value = "#CreateODBCDateTime (arguments.date_time_received) ' # ' null 'no' = >->"
    < / cfstoredproc >

    < cfcatch type = "DATABASE" >
    < cfset DB_ERROR_MSG = '#CFCATCH. DETAIL #">"

    < / cfcatch >

    < / cftry >
    < cfif DB_ERROR_MSG NEQ "" > "".

    < cfset BD_ERROR_MSG = "update of the database has failed!" >


    < cfelse >

    < / cfif >
    < cfreturn DB_ERROR_MSG >
    < / cffunction >

    Any help would be appreciated. Thank you.

    Thanks Phil,

    "We have coded to_date ('" & arguments.date_time_received & "","yyyy-mm-dd hh) ' in the procedure pl/sql and just past the date_time_received in format CF_SQL_TIMESTAMP and the problem is solved. Thank you.

    Lisa

  • Button action result depends on a call to a stored procedure

    Hello

    I'm developing an application using JDeveloper 10.1.3.4, JSF, and ADF BC 10.1.3.4.

    I have an "Update" button, its outcome of the action depends on the result of a stored procedure called by a method in my ApplicationModuleImpl (actionListener to the button - #{bindings ['call_stored_procedure'] .execute}).
    In particular, if the stored procedure returns "OK" the program can navigate to a new page of JSP, more of a case of navigation. If the stored procedure returns 'ERROR' no navigation should occur, the program must stop the JSP page. I need something like "raise form_trigger_failure" Oracle Forms. I tried to throw an oracle.jbo.ValidationException, but navigation take place instead.

    Thank you very much in advance

    Husband

    Load the SRDemo to jdev10.1.3 and see the classes ADFUtils nd JSFUtils. I guess they are also on the blog of Steve Muenchs here.
    Locate the getApplicationModuleForDataControl (...) method.

    Timo

  • stored procedures, newbie question

    I am at the point with my Web site where I need to think about the optimization of the query and have started looking at stored procedures for the first time.

    1. am I right in thinking the benefit of the execution of stored procedures is that it is a pre-compiled query?

    2. I'm trying to use the query cache as my 'normal' queries go, but is it possible to cache the results of a stored procedure?

    In practice, using 1 & 2 would provide a significant increase in performance.

    Personally, I use it only for large heavy updates or deletions. For example, I have an Oracle package with a bunch of procedures that run when a person completes an order - this process involves many tables, deletions, updates and a relatively simple logic. I think that the ideal candidate for a stored procedure.

    I use CF as an alternative if, for example, I have to repeat a load of complex business logic in a stored procedure that I have already written in a CFC.

    Keep in mind the benefits of a stored procedure - basically precompiled code. Don't forget that if you are using well trained cfqueries with cfqueryparams, execution plan gets compiled to the top in the first round * anyway *, so if you call a stored procedure or run your query really there is no difference.

    And Yes - do not underestimate the additional time it takes for a developer to do everything in the stored procedures rather than ColdFusion, they don't call it rapid development of applications for anything

    Don't forget as well as someone can write a stored procedure to poorly coded as well as they can write a wrong encoded query. At least if the developer has its application in front of him, he can see instantly what he needs of the index and locate errors, you could go years before realizing a person made a mistake inside a stored procedure, as no one can see the code.

    Regarding security Yes - if you really want to limit security then sprocs will do that for you. However in most of the applications I've seen the right developer has the possibility to write a query, as they see fit.

    Once I use stored procedures while I think of it - if you have more than one application that needs to do the same thing: this should * definitely * be a stored procedure.

    Basically, the same rules apply to them as any other aspect of programming; security of the duplication of code, efficiency, ease of maintenance - it's all a matter of their maximum weight and decide what is best.

  • Run the stored procedure of c#

    Hi, im new to the use of stored procedures and I have the following stored procedure...

    CREATE OR REPLACE PROCEDURE DRL_PROCEDURE2 (var_SOURCE_OBJECTID IN varchar2, var_NEW_OBJECTID OUT varchar2)
    AS
    BEGIN
    SELECT MAX (NEW_OBJECTID)
    IN var_NEW_OBJECTID
    OF DRL_CONVERSION
    WHERE SOURCE_OBJECTID = var_SOURCE_OBJECTID;
    END;

    I want to be able to call this procedure from my windows form application and display the result of the stored procedure in a label... could someone please help me! Thanks in advance!

    http://www.csharpfriends.com/articles/getarticle.aspx?articleid=78
    You can find out how to call the stored procedure (in the link above you will find an example of SQL Server 2005 that also work for you from your oracle stored procedure) in c#.

    HTH
    Girish Sharma

Maybe you are looking for

  • How to disable double-sided printing on HP jet Office 6700

    I just bought a HP officejet 6700 premium for my iMac computer. I also installed Microsoft for my iMac. I don't want the duplex printer forever. I tried going to system preferences / printers, etc. and it directs me to the Web site of the printer. Fr

  • Brightness G505s Windows 7 problem

    Nice day I recently bought a new laptop of Lenovo G505s with W8 natively installed because I couldn't find anything with W7. W8 has really started to bother me so I configured the uefi bios, so it could accept to W7, then I installed W7. It seems I f

  • HP Officejet 4635 e: ERROR of SCANNING

    When I try to scan to my computer, the printer and my laptop comes up with an error. My laptop says that something there is no shortcut to scan on my device and to uninstall the printer and reinstall? Really? When I first hooked the printer until it

  • HP Officejet Pro 8610: How can I get a report with the total number of pages printed on my HP Officejet Pro 8610?

    The number of pages that print is so critical to a choice to use the "HP Instant ink Plan' or not, how can I find the total number of pages that I printed on my brand new (installed 2 days ago) 8610?  And if I can, there are a total of 'resettable' o

  • Firewall Windows simply won't turn on

    I have a Toshiba Satellite L505-LS5006, and it is currently running Windows 7 Home Premium. I tried to allow a program through windows firewall and I have to update the firewall settings with a button that reads: "use recommended settings". When I cl