Query BEX - slow - sql statement

Hi to all.
When I execute a query on my master data I see(with the ST05) that the sytem executes a lot of query like that:
SELECT
FROM
  "/BIC/SC_RAG_SOC"
WHERE
  "SID" IN (:A0 ,:A1 ,:A2 ,:A3 ,:A4 )
The SID values are updated 5 for time !!!
Due to the fact that I need to be select almost 500 K of record, can I modify one of the system (database or java) paramenters in order to obtain the following code ?:
SELECT
FROM
  "/BIC/SC_RAG_SOC"
Thank'you in advance

May be first you want to try following:
1. Run Configurator Purge concurrent program which will physically delete all the logically deleted records over the time. You must do this if you haven't done this since long time.
2. Run Gather schema stats on the CZ schema.
If that does not work, then you should upload file SR with explain plan.
HTH

Similar Messages

  • Just a helpful SAP note for slow SQL statements

    Hi Guys,
    Just wanted to share this SAP note with you. I am sure many of you might have gone through it.
    [SAP Note 155413 - Analysis of slow SQL statements|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=155413]
    Cheers,
    Abu

    >
    ZAFCO ABAP wrote:
    > Hi Guys,
    >
    > Just wanted to share this SAP note with you. I am sure many of you might have gone through it.
    >
    > [SAP Note 155413 - Analysis of slow SQL statements|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=155413]
    >
    > Cheers,
    > Abu
    Hi,
    I would bet not as many as you might think -  many questions here suffering form not GOING through
    the analysis before they post it here. 
    Meantime I think questions to SQL statement performance here will only be answered when the execution plan on the statement  is posted with it.
    bye
    yk

  • Single select query or any sql statement with o/p

    Hi,
    I have one table test_tab with column names empno,empname.The test_tab values is as follows,
    empno empname
    01 siva
    02 ram
    03 kamal
    04 sathish
    i will give the empname values like 'siva,kamal,roshan,sathish' and empno >03,but in the table roshan name is not there.I need the below mentioned o/p
    example qry: select empno,empname from test_tab where empname in('siva','kamal','roshan','sathish') and empno>03;
    my o/p should be like this,
    empname empno
    sathish 04
    roshan ''
    But the empname 'roshan' is not there in table.I need the empname as 'roshan' and empno is null value in a single select query or subquery or any sql statements.
    Please help me the resolve this issue.
    Thanks
    Sivaraman

    Hi,
    Do you want this?
    with data as
    (select 1 EMPNO, 'siva' as empname from  DUAL union all
    select 2 EMPNO, 'ram' from  DUAL union all
    select 3 EMPNO, 'kamal' from  DUAL union all
    select 4 EMPNO, 'sathish' from  DUAL union all
    select null EMPNO, 'roshan' from  DUAL )
    select *  from data
    where EMPNAME in ('siva','kamal','roshan','sathish')
       and nvl2(empno,empno,4) > 3 

  • JBO-27122 - How to replace ESTCOUNT query and other SQL statements

    Hi,
    Env - JDeveloper 11.1.1.1.0
    I'm trying to run simple CRUD application (Dept --<Emp) with unsuported database (Informix 11.5). The problem is that ADF runs following query on startup:
    SELECT (1) FROM
        (SELECT Emp1.empno,        
                Emp1.ename,        
                Emp1.job,        
                Emp1.mgr,        
                Emp1.hiredate,        
                Emp1.sal,        
                Emp1.comm,        
                Emp1.deptno
           FROM emp Emp1
          WHERE Emp1.deptno = ?) ESTCOUNTbut Informix don't understand SELECT (1) clause and need SELECT (*). Is there any way to replace this. Further - is this possible to customize queries passed to database. I think, that my general problem is that Informix has problems with SQL dialect used by ADF. I noticed also JBO-27122 with filtering table:
    SELECT Emp1.empno,        
           Emp1.ename,        
           Emp1.job,        
           Emp1.mgr,        
           Emp1.hiredate,        
           Emp1.sal,        
           Emp1.comm,        
           Emp1.deptno
    FROM emp Emp1
    WHERE ( ( ( (Emp1.job LIKE ? )
      AND (Emp1.deptno = ? ) ) ) )
      AND Emp1.deptno = ?and also UPDATE statement.
    It's very important for me to run ADF 11 app with Informix 11.5 beacause it's main database in y company.
    Kuba

    Hi Steve,
    Now I have following builder:
    public class InformixSQLBuilder extends SQL92SQLBuilderImpl{  
        @Override
        protected boolean getSupportsAliasInUpdateStatements() {
            return false;
        @Override
        public String getQueryHitCountSQL(RowSet rs){
            return null;
        public static SQLBuilder getInterface() {
          return new InformixSQLBuilder();
    Update, Insert, Delete works !!! but it seems that getQueryHitCountSQL() method can not returns null. When after DML operation when I try to scroll to another Dept in BC tester I get following exception:
    Exception in thread "AWT-EventQueue-0" oracle.jbo.AttributeLoadException: JBO-27022: Nie udało się wczytać wartości o indeksie 1 z obiektem Javy typu java.lang.Integer z powodu java.sql.SQLException.
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2187)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         ... 26 more
    ## Detail 0 ##
    java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [466] loadFromResultSet failed (1)
    [467] DCBindingContainer.reportException :oracle.jbo.AttributeLoadException
    [468] oracle.jbo.AttributeLoadException: JBO-27022: Nie udało się wczytać wartości o indeksie 1 z obiektem Javy typu java.lang.Integer z powodu java.sql.SQLException.
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2187)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:967)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:411)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6134)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5899)
         at java.awt.Container.processEvent(Container.java:2023)
         at java.awt.Component.dispatchEventImpl(Component.java:4501)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         ... 45 more
    ## Detail 0 ##
    java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:967)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:411)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6134)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5899)
         at java.awt.Container.processEvent(Container.java:2023)
         at java.awt.Component.dispatchEventImpl(Component.java:4501)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [469] JUErrorHandlerDlg.reportException(oracle.jbo.AttributeLoadException)
    Exception in thread "AWT-EventQueue-0" oracle.jbo.AttributeLoadException: JBO-27022: Nie udało się wczytać wartości o indeksie 1 z obiektem Javy typu java.lang.Integer z powodu java.sql.SQLException.
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2187)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         ... 26 more
    ## Detail 0 ##
    java.sql.SQLException: ResultSet not open, operation not permitted.
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:407)
         at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:648)
         at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:638)
         at com.informix.jdbc.IfxResultSet.getInt(IfxResultSet.java:1088)
         at oracle.jbo.common.IntegerTypeSQLNativeImpl.getDataFromResultSet(JboTypeMapEntries.java:504)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2178)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3475)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2067)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:4912)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:4761)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3099)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2959)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2072)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4568)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3387)
         at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1873)
         at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3197)
         at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:8604)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:439)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1341)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1330)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1245)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [470] loadFromResultSet failed (1)Kuba

  • Help with a very slow sql statement

    Hi this statement takes 10 seconds to run and is run a lot, can anyone help me speed it up.
    Each section in itself is quick but when i add the IN section it slows down, probably because there is 20291 rows in the view v_allitems.
    anyone know how i can speed up?
    select ITEMTYPE,
    ITEMID,
    NOTESID,
    NOTES,
    DUEDATE,
    OPENDATE,
    SUBJECT,
    TYPE,
    STATUS,
    OWNER,
    CREATEBY,
    CREATEDATE,
    ITEMCODE
    FROM v_allitems
    where
    ITEMCODE in ( 'ACT,'||4264) OR ITEMCODE IN
    (SELECT pcchildcode
    ||','
    || pcchild item
    FROM afpc
    CONNECT BY pcparent = prior pcchild
    AND pcparentcode = prior pcchildcode START
    WITH pcparent = 232
    AND pcparentcode = 'CAS'
    UNION ALL
    SELECT pcparentcode
    ||','
    || pcparent item
    FROM afpc
    CONNECT BY pcchild = prior pcparent
    AND pcchildcode = prior pcparentcode START
    WITH pcchild =4264
    AND pcchildcode = 'ACT'
    )

    Something to just try i guess (wild guessing here).
    WITH
       itemcodes AS
       SELECT
          DISTINCT ItemCode
       FROM
          SELECT 'ACT,' || 4264 AS ItemCode
          FROM DUAL
             UNION ALL    
             SELECT pcchildcode || ',' || pcchild item AS ItemCode
             FROM afpc
             CONNECT BY  pcparent       = prior pcchild
             AND         pcparentcode   = prior pcchildcode
             START WITH  pcparent       = 232
             AND         pcparentcode   = 'CAS'
                UNION ALL
             SELECT pcparentcode || ',' || pcparent item AS ItemCode
             FROM afpc
             CONNECT BY  pcchild     = prior pcparent
             AND         pcchildcode = prior pcparentcode
             START WITH  pcchild     = 4264
             AND         pcchildcode = 'ACT'
    SELECT
       v.ITEMTYPE,
       v.ITEMID,
       v.NOTESID,
       v.NOTES,
       v.DUEDATE,
       v.OPENDATE,
       v.SUBJECT,
       v.TYPE,
       v.STATUS,
       v.OWNER,
       v.CREATEBY,
       v.CREATEDATE,
       v.ITEMCODE
    FROM v_allitems v,  itemcodes i
    WHERE v.ItemCode  = i.ItemCode;Assuming (probably a good assumption) that's not good, how long does this query take to finish for you?
             SELECT pcchildcode || ',' || pcchild item AS ItemCode
             FROM afpc
             CONNECT BY  pcparent       = prior pcchild
             AND         pcparentcode   = prior pcchildcode
             START WITH  pcparent       = 232
             AND         pcparentcode   = 'CAS'
                UNION ALL
             SELECT pcparentcode || ',' || pcparent item AS ItemCode
             FROM afpc
             CONNECT BY  pcchild     = prior pcparent
             AND         pcchildcode = prior pcparentcode
             START WITH  pcchild     = 4264
             AND         pcchildcode = 'ACT'

  • Broken pipe / timeout during slow SQL statement in servlet

    I have a servlet which supplies the client with quite a large block of data from an SQL query.
    This works fine in a local test environment but I get problems running it under a fully fledged application server environment.
    I find a "Broken Pipe" exception on the application log and the client side application gets an application error status code.
    07/07/16 09:32:30.85 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.85 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.85 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.85 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.85 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.85 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.86 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.86 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.86 lapSycWebsite: Broken pipe
    07/07/16 09:32:30.86 lapSycWebsite: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
    at java.nio.channels.Channels.write(Channels.java:60)
    at java.nio.channels.Channels.access$000(Channels.java:47)
    at java.nio.channels.Channels$1.write(Channels.java:134)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.j
    ava:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java
    :309)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java
    :190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    :q
    We're looking for ways to get the SQL execution time down, but even if we succeed in this case it's a source of instability that will trip us up in the future.
    This SQL statment can take up to about 8 minutes to return the first row.
    The client is a Java swing program, by the way, not a browser as such.
    Later:
    We've got the SQL execution time down and it's working for the time being but it's a problem that's going to hit us again sooner or later. Still looking for a solution.
    Message was edited by:
    IronChicken

    Refer this url for inserting blob datatype to database.
    See the LOBDatatype sample. This sample uses java application but same works for a servlet too.
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
    You can refer source to see how the lob data is inserted.
    Chandar

  • 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

  • JDBC Adapter - Update SQL Statement - Timestamp

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

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

  • Creating a dynamic sql statement

    hi,
    I am having a query
    select w.id, w.cr_dt, w.cc_cor_addr_id, w.cc_cee_addr_id,
    w.ttl_pkgs, w.chrg_wt, wf.wb_bkg_chgd_amt + wf.wb_bkg_chgd_amt_st
    from ops_waybl_fin wf, ops_waybl w
    where wf.id = w.id
    and cre_bill_batch_dtls_id in (select get_bill_batch(1) from dual);
    the bold part is a function returns a select query.
    if the sql statement is run then we get data based on which the parent query returns data.
    how we should use a function that returns select query.
    Please advice..

    *** not tested *** Sven probably had in mind something like
    with
    v_count_cust_no as
    (select count(orr.param_val) the_count
       from ops_report_req orr
      where orr.id = :p_req_id
        and orr.param_nm = 'CUST_ID'
    v_count_cust_cntr as
    (select count(orr.param_val) the_count
       from ops_report_req orr
      where orr.id = :p_req_id
        and orr.param_nm = 'CUST_CNTR_ID'
    variant as
    (select case when (select the_count from v_count_cust_no) > 0
                 then case when (select the_count from v_count_cust_cntr) > 0
                           then 1
                           else 2
                      end
                 else case when (select the_count from v_count_cust_cntr) > 0
                           then 3
                           else 4
                      end
            end the_type
       from dual
    select w.id,w.cr_dt,w.cc_cor_addr_id,w.cc_cee_addr_id,w.ttl_pkgs,w.chrg_wt,wf.wb_bkg_chgd_amt + wf.wb_bkg_chgd_amt_st
      from ops_waybl_fin wf,ops_waybl w
    where wf.id = w.id
       and cre_bill_batch_dtls_id in (select to_number(b.id)
                                        from ops_bill_batch_dtls b,ops_cust_cntr cc
                                       where b.cust_cntr_id = cc.id
                                         and b.bill_batch_id = f1(1)
                                         and b.status_lid = 255
                                         and (((select the_type from variant) = 1
                                               and cc.cust_no in (select param_val
                                                                    from ops_report_req
                                                                   where id = :p_req_id
                                                                     and param_nm = 'CUST_ID'
                                               and cc.ID in (select param_val
                                                               from ops_report_req
                                                              where id = :p_req_id
                                                                and param_nm = 'CUST_CNTR_ID'
                                           or ((select the_type from variant) = 2
                                               and cc.cust_no in (select param_val
                                                                    from ops_report_req
                                                                   where id = :p_req_id
                                                                     and param_nm = 'CUST_ID'
                                           or ((select the_type from variant) = 3
                                               and cc.ID in (select param_val
                                                               from ops_report_req
                                                              where id = :p_req_id
                                                                and param_nm = 'CUST_CNTR_ID'
                                           or ((select the_type from variant) = 4
                                     ) Regards
    Etbin

  • Jdbc adapter log sql statement to file

    Hi,
    I'm using a Proxy to Jdbc scenario.
    In the Adapter Configuration the logSQLStatement is set to true.
    Is it possible to log the sql statement shown in the Audit  to a file?
    Regards Ralf

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

  • Maximum SQL statement on ODBC 8176 or higher ?

    Hello.
    I am developing a DB reporting program using ODBC.
    My customer complained that the program shut down when query the SQL statement.
    But, my computer didn't shut down when I queried the same SQL statement.
    The difference is my customer used 8177 ODBC driver, but my computer installed 8176 driver, so I changed ODBC driver 8176 to 8177 and the problem appeared too.
    I debugged and I found that the program shut down at SQLPrepare API.
    The size of the SQL statement is 8238 bytes.
    I tested and I found that the program shut down when the SQL statement size was around 5900bytes or larger.
    I think, this is the Oracle ODBC drivers bug, does anybody meet the same problem?
    I noticed to my customer this situation and he tried to downgrade ODBC driver 8177 to 8176 but he failed.
    How can I solve this problem? I tried that the same SQL statement with OCI but it was no problem.

    I've never encountered a situation where the ODBC driver improperly handled a statement that the Oracle database could, and I've seen cases where the ODBC driver was given statements longer than Oracle's maximum.
    My recollection is that Oracle itself doesn't support SQL statements longer than 8k (though I think it depends on the version of the database-- it may have been 4k in the past). If you want to generate SQL statements this long (and I'm not sure you do-- perhaps there are views, etc that you need to create to simplify your queries) you really ought to by using the DBMS_SQL package. You populate a table with 256 byte chunks of data and then call this package, so you can have infinitely long SQL statements.
    Justin

  • Execution of SQL Query to slow

    Hey all!!!
    I'm using 10g express edition with apex 3.1, when I run this query:
    select asig.idasig IDASIG, asig.idAsig "C&oacute;digo Asignatura", asig.idasig ID,substr(asig.codigoasig||' '||asig.nombre,0,40) "Asignatura", p.nombre||' '||p.apellidos "Responsable", t.usuario "T&eacute;cnico", substr(ea.estado,0,22) "Estado Asignatura", ec.estado "Estado Certificado", cert.idestado
    from certificado cert, asignatura asig, histasig ha, profesor p, tecnico t, estado ea, estado ec
    where cert.idasig = asig.idasig and
    p.idprof = asig.idprof and
    t.idtecnico = asig.idtecnico and
    *(cert.idasig, cert.fecha) in (select idasig, max(fecha) from certificado group by idasig) and*
    ec.idestado = cert.idestado and
    ha.idasig = asig.idasig and
    *(ha.idasig, ha.fecha) in (select idasig, max(fecha) from histasig group by idasig) and*
    ea.idestado = ha.idestado
    It gets too slow, making the query gets results in approximately 149s.
    Someone can give me an idea...
    PD:The case is that we have another query that make almost the same but with this one I get the results in less than 1s.

    These are the results:
    TKPROF: Release 10.2.0.1.0 - Production on Mar Feb 10 10:35:58 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Trace file: C:\oraclexe\app\oracle\admin\XE\udump\xe_ora_4724.trc
    Sort options: prsela  exeela  fchela 
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    select asig.idasig ID1, asig.idAsig ID2, asig.idasig ID3,asig.codigoasig, asig.nombre, p.nombre,p.apellidos,t.usuario,ea.estado,ec.estado,cert.idestado
    from certificado cert, asignatura asig, histasig ha,  profesor p, tecnico t, estado ea, estado ec
    where cert.idasig = asig.idasig and
    p.idprof = asig.idprof and
    t.idtecnico = asig.idtecnico and
    (cert.idasig, cert.fecha) in (select idasig, max(fecha) from certificado group by idasig) and
    ec.idestado = cert.idestado and
    ha.idasig = asig.idasig and
    (ha.idasig, ha.fecha) in (select idasig, max(fecha) from histasig group by idasig) and
    ea.idestado = ha.idestado
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.15       0.14          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch       64    102.17     102.43          0     369673          0         937
    total       66    102.32     102.57          0     369673          0         937
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 
    Rows     Row Source Operation
        937  NESTED LOOPS  (cr=369673 pr=0 pw=0 time=102241172 us)
        937   NESTED LOOPS  (cr=368672 pr=0 pw=0 time=103609539 us)
        937    NESTED LOOPS  (cr=5030 pr=0 pw=0 time=97377 us)
        937     NESTED LOOPS  (cr=3082 pr=0 pw=0 time=72064 us)
        937      NESTED LOOPS  (cr=2081 pr=0 pw=0 time=55194 us)
        947       HASH JOIN RIGHT SEMI (cr=44 pr=0 pw=0 time=22573 us)
        947        VIEW  VW_NSO_1 (cr=17 pr=0 pw=0 time=4100 us)
        947         HASH GROUP BY (cr=17 pr=0 pw=0 time=3151 us)
       1659          INDEX FAST FULL SCAN PK_CERTIFICADO (cr=17 pr=0 pw=0 time=1728 us)(object id 15811)
       1659        MERGE JOIN  (cr=27 pr=0 pw=0 time=11173 us)
         39         TABLE ACCESS BY INDEX ROWID ESTADO (cr=10 pr=0 pw=0 time=286 us)
         39          INDEX FULL SCAN PK_ESTADO (cr=5 pr=0 pw=0 time=95 us)(object id 15790)
       1659         SORT JOIN (cr=17 pr=0 pw=0 time=7693 us)
       1659          INDEX FAST FULL SCAN PK_CERTIFICADO (cr=17 pr=0 pw=0 time=42 us)(object id 15811)
        937       TABLE ACCESS BY INDEX ROWID ASIGNATURA (cr=2037 pr=0 pw=0 time=31871 us)
        947        INDEX UNIQUE SCAN PK_ASIGNATURA (cr=1011 pr=0 pw=0 time=16230 us)(object id 15797)
        937      TABLE ACCESS BY INDEX ROWID TECNICO (cr=1001 pr=0 pw=0 time=14632 us)
        937       INDEX UNIQUE SCAN PK_TECNICO (cr=64 pr=0 pw=0 time=6532 us)(object id 15777)
        937     TABLE ACCESS BY INDEX ROWID PROFESOR (cr=1948 pr=0 pw=0 time=20712 us)
        937      INDEX UNIQUE SCAN PK_PROFESOR (cr=1001 pr=0 pw=0 time=11554 us)(object id 15795)
        937    INDEX RANGE SCAN PK_HISTASIG (cr=363642 pr=0 pw=0 time=102276685 us)(object id 15809)
        937     FILTER  (cr=361692 pr=0 pw=0 time=101967826 us)
    64914543      HASH GROUP BY (cr=361692 pr=0 pw=0 time=139395915 us)
    94619691       INDEX FAST FULL SCAN PK_HISTASIG (cr=361692 pr=0 pw=0 time=94752646 us)(object id 15809)
        937   TABLE ACCESS BY INDEX ROWID ESTADO (cr=1001 pr=0 pw=0 time=39308 us)
        937    INDEX UNIQUE SCAN PK_ESTADO (cr=64 pr=0 pw=0 time=15348 us)(object id 15790)
    alter session set sql_trace true
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        1      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 36 
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.15       0.14          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch       64    102.17     102.43          0     369673          0         937
    total       67    102.32     102.57          0     369673          0         937
    Misses in library cache during parse: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      0      0.00       0.00          0          0          0           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        0      0.00       0.00          0          0          0           0
    Misses in library cache during parse: 0
        2  user  SQL statements in session.
        0  internal SQL statements in session.
        2  SQL statements in session.
    Trace file: C:\oraclexe\app\oracle\admin\XE\udump\xe_ora_4724.trc
    Trace file compatibility: 10.01.00
    Sort options: prsela  exeela  fchela 
           1  session in tracefile.
           2  user  SQL statements in trace file.
           0  internal SQL statements in trace file.
           2  SQL statements in trace file.
           2  unique SQL statements in trace file.
         147  lines in trace file.
         134  elapsed seconds in trace file.We had seen that the possible problems are here:
    937               INDEX RANGE SCAN PK_HISTASIG (cr=363642 pr=0 pw=0 time=102276685 us)(object id 15809)
    64914543       HASH GROUP BY (cr=361692 pr=0 pw=0 time=139395915 us)
    94619691       INDEX FAST FULL SCAN PK_HISTASIG (cr=361692 pr=0 pw=0 time=94752646 us)(object id 15809)The time spent is too much, but we don't see how can we solve this problem, any idea?

  • SQL STATEMENT OF A QUERY

    Hi all
    Can we see the SQL statement of a BEx query, if so , where and how?
    Thanks in advance.

    Yes, you can do that in transaction RSRT. Enter the query name, click the button "Execute & Debug" and click the checkbox for SQL code.

  • BEx queries - one or more SQL statements generated?

    Iu2019m a BusinessObjects man and BEx is new to meu2026When you execute a BEx query against a cube u2013 how does BEx manage that query and what gets send to the backend DB (e.g. Oracle)?
    I understand the cube is one table in Oracle?, but other tables (dimensions?) will also be needed to return all the data for a given report/query.
    Does BEx pass that as one query to Oracle, or is it performed as separate queries, with BEx pulling the result sets together?

    Hi Durgesh, Susan
    Thank you to both of you for your response to Ed on this thread.  The background to these questions on how SQL statements are generated from BEx queries that we are working with Ed in a project to test the capability of accelerating the performance of BEx queries via the following process described below. (Please excuse any terminology errors as like  I do not have a background in SAP):
    1. Export fact table InfoObjects relevant to queries for InfoCubes to be accelerated by defining as Open Hub destinations, creating mappings and a data transfer process. Trigger export from SAP BI via a Process Chain and then load data to external database via ETL tool.  Master data (dimension tables) remain in SAP BI
    This step was completed successfully, including exporting of data.
    2. Create a Universal Data Connect (UDC) source system to map to the exported fact tables.
    3. Create a virtual provider mapping to the UDC source defined in step 2 to enable access to external table via JDBC.
    4. Execute BEx report, selecting the query properties 'Cache inactive' and 'Reading all data at once', specifying restrictions (variables) in the report which would result in a small subset of data being returned from the fact table if applied in the SQL passed to the external database.
    We hoped that SAP BI would push down predicates which could be applied to the fact table into the SQL sent to the external database via the virtual provider, but instead an SQL query selecting all columns with no WHERE clause was generated with the result that a 36 million row results set was sent across a network to join with dimension data, rather than a few rows.
    Is this how SAP BI works in version 7.0 or are there configuration options which can change this behaviour?  Is so, if all tables (including master data (dimensions) were exported to external database would SAP BI then transmit the database queries as joins to the external database?
    Sorry this was a bit long, and thank you in advance for any advice you can give.
    Stuart.

  • How to set Query SQL Statement parameter dynamically in Sender JDBCAdpter

    Hi All,
    I have one scenario in which we are using JDBC Sender Adapter.
    Now in this case,we need to set Query SQL Statement with a SELECT statement based on some fields.
    This SQL statement is not constant, it would need to be changed.
    Means sometimes receiver will want to execute SQL statement with these fields and sometimes they will want to execute it with different fields.
    We can create separate channels for each SQL statement but again that is not an optimum solution.
    So ,I am looking out for a way to set these parameters dynamically or set SQL statement at Runtime.
    Can you all please help me to get this?

    Shweta ,
    <i>Sometimes receiver will want to execute SQL statement dynamically</i>....
    How you will get the query dynamically? Ok Let me assume, consider they are sending the query through file, then its definitely possible. But u need BPM and also not sender JDBC receiver adapter instead, receiver JDBC adapter.
    SQL Query File ->BPM>Synchronous send [Fetch data from DB]--->Response -
    >...............
    Do u think the above design will suit's ur case!!!!
    Best regards,
    raj.

Maybe you are looking for

  • Firefox keeps crashing after much troubleshooting...

    Whenever i put some load onto firefox as in multi tabs open... streaming, surfing, maybe a download... pretty much my normal interweb abuse it has been crashing... like every 5-10 minutes and it is killing me. Some fixes i tryed: -New profile -Update

  • Solid 3d shapes cs5

    hello. when diong adjustments to a 3d shape like this sphere in cross section of the 3d panel. its always hollow along with all shapes. how would you get these this shape to be solid. thanks phil.

  • Macbook 2009 Late White, WIFI not Working on Windows 7 Home Premium

    Anyone could help as captioned subject?

  • IPS-4240 Password Recovery

    Hi, I have a problem with IPS-4240. Nobody of my workmates knows the password and I read that the only way is to reinstall the version of IOS. Is there any other way to recover the password than reinstalling? thanks. GNU GRUB  version 1.0(11)2  (631K

  • Can I-Photo Events be closed with a keyboard shortcut ?

    If I open an event or events containing, for example, 100 photos, can I close that event without scrolling to the top and clicking the delta arrow? Can I close all open events with a keyboard shortcut?