How to describe placeholder/parameters in a SQL statement

Hi
Does anybody know how to describe the placeholder/parameters in a statement? I only find the OCI documentation talking about "Describing Select-list Items". But what if I want to retrieve the data type of a placeholder (assuming I don't know beforehand or just want the program to be more flexible)? Doing this by describing schema metadata first (have to find out which schema object to use) and then using OCIDescribeAny() seems not a very good way. Thanks.

Jonah, and others,
how would you find out the (hash_value, address) of the statement just described to extract the statement-relevant information from V$SQL_BIND_CAPTURE?
Via a join with V$SQL and the statement's text?
Thanks, --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to enter bind variables in Calender SQL statement

    Hi,
    Anyone know how to include bind variables in Calender SQL statement. Let's say in sql statement below:
    select
    EMP.HIREDATE the_date,
    EMP.ENAME the_name,
    null the_name_link,
    null the_date_link,
    null the_target
    from SCOTT.EMP
    order by EMP.HIREDATE
    thanks.

    Hi,
    Here is the sql statement
    select
    EMP.HIREDATE the_date,
    EMP.ENAME the_name,
    null the_name_link,
    null the_date_link,
    null the_target
    from SCOTT.EMP
    where deptno = :dept
    order by EMP.HIREDATE
    Thanks,
    Sharmila

  • How to export the result from executing sql statement to excel file ?

    HI all,
    Great with Oracle SQL Developer, but I have have a trouble as follwing :
    I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
    anyone can help me to do that ? Thanks so much
    Sigmasvn

    Hello Sue,
    I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
    open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
    When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
    Regards
    Marcus

  • How to find redo generated per each SQL Statement?

    Database version is 10.2.0.4. OS is AIX.
    We have excessive redo generation during specific time of a day. We would like to identify which statement is contributing to this excessive redo.
    ADDM shows this as first finding
    Waits on event "log file sync" while performing COMMIT and ROLLBACK operations were consuming significant database time.
    Is it possible to find out which sql statement is generating how much redo in bytes during a specific time?
    Thank You
    Sarayu

    user11181920 wrote:
    Is it possible to find out which sql statement is generating how much redo in bytes during a specific time?It will not help you.
    For example, you will see bunch of UPDATE,DELETE,INSERT statements issued by apps. So? What you going to do with them? If you can modify the app to eliminate unnecessary DMLs - it would be great of course. But it is unlikely.From what I've seen, namely developers putting way more commits in than the business rules would justify, it is not so unlikely.
    >
    Also when DML statements generate Redo, the do not cause too many waits of "log file sync", because buffer Log writer flushes buffer as soon as it fills more than 30% or after some time, or on Commit/Rollback. This may or may not be true, as there can be several reasons for log file sync: insufficient I/O (which is the only one you are addressing); CPU starvation (because the cpu ultimately controls i/o requests, and even fixing some unrelated sql that hogs the cpu could change this); lgwr priority (on some systems it makes sense to simply raise the priority, it can vary widely as to whether this makes sense); and other things like private redo, file option flags and the IMU relationships with undo that can be too complicated to put in a partial sentence.
    >
    Waits on event "log file sync" while performing COMMIT and ROLLBACK operations were consuming significant database time.So the root cause can be too many commits, which you should evaluate and fix if possible. You can also use Tanel Poder's snapper script, including on lgwr to see more closely what it is waiting on. See page 28: http://files.e2sn.com/slides/Tanel_Poder_log_file_sync.pdf
    >
    Right. It is because Log Writer writes here synchronously, reliably, it waits until HDD writes data down and responds its written OK.
    And HDDs are not the fastest things in computer. They are mechanical - that is why.
    I would recommend you :
    1. Place redo log files on fast HDDs that used preferably dedicated for this purpose only. If other I/O will frequently disturb these drives they will cause heads change tracks which causes longest HDD waits.
    2. Consider to use faster technology like SAN or SSD.Read this instant classic: http://www.pythian.com/news/28797/de-confusing-ssd-for-oracle-databases/

  • How to use presentaion variable in the SQL statement

    Is there any special syntax to use a presentation variable in the SQL Statement?
    I am setting a presentation variable (Fscl_Qtr_Var)in the dashboard prompt.
    If i set the filter as ADD->VARIABLE->PRESENTATION, it shows the statement as 'Contract Request Fiscal Quarter is equal to / is in @{Fscl_Qtr_Var} '.
    And this works fine but when i convert this to SQL, it returns
    "Contract Request Date"."Contract Request Fiscal Quarter" = 'Fscl_Qtr_Var'
    And this does not work.It is not being set to the value in the prompt.
    I need to combine this condition with other conditions in the SQL Statement. Any help is appreciated. Thanks

    Try this: '@{Fscl_Qtr_Var}'

  • How to encode URL parameters in pl/sql?

    How to encode url and its paramters in PL/SQL to call a page using html GET method? Is there any equiavlent method of java's URLEncoder.encode() method in pl/sql (in any web packages) ?
    Any help/pointers highly appreciated.
    P.S. : URGENT PLEASE!!!

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:371959198986

  • Parameters in the SQL statement.

    Hi
    I am creating a PL/SQL report. The report has for example 3 columns say X,Y,Z. When i run the report, i have 2 non-mandatory parameters P1 and P2.
    My question is,
    If i enter a value in the parameter P1, then the where condition of the report should be something like
    WHERE X = P1.
    If i enter a value in the parameter P2, then the where condition of the report should be something like
    WHERE Y = P2.
    If i enter a value in both the parameters P1 and P2, then the where condition of the report should be something like
    WHERE X = P1 AND Y = P2.
    Can someone give an idea how to make this possiblie.
    Thanks
    Kumar

    You could use IF statements to accomplish the task:
    IF P1 IS NOT NULL AND P2 IS NOT NULL THEN
        SELECT ....
        FROM ....
        WHERE X = P1 AND Y = P2
    ELSIF P1 IS NULL AND P2 IS NOT NULL THEN
        SELECT ....
        FROM ....
        WHERE Y = P2
    ELSIF P1 IS NOT NULL AND P2 IS NULL THEN
        SELECT ....
        FROM ....
        WHERE X = P1
    ELSE
        SELECT ....
        FROM ....
    END IFHope this helps!

  • How to create a database using a SQL statement? Please help.

    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.25:1521:mydb","system","12345678");
    but mydb database does not exist.
    I want to make a connection to oracle server without database name.
    How can I do?

    Colleauge, what is the purpose of making a connection to a non-existent database.
    connections are made to the database to retrieve some data or put some data.
    for which the database should exists.
    so please create the mydb database first using Database Configuration Assistant (DBCA) which is much easier as it is GUI based rather than doing it with sql scripts.

  • How many bytes are transferred for a SQL statement?

    Hello!
    I switched on a buffer trace.
    Where can I see how many BYTES were transferred for an executed SQL stmt (if the bufferd table had to be accessed on the database in cause of an invalidation)?
    What I can see is the duration...
    Thanks very much,
    Holger

    Hello!
    I switched on a buffer trace.
    Where can I see how many BYTES were transferred for an executed SQL stmt (if the bufferd table had to be accessed on the database in cause of an invalidation)?
    What I can see is the duration...
    Thanks very much,
    Holger

  • How to apply the horizonal rule in SQL Statement

    My Problem is...
    Have One table called: T1
    Fields are...
    TC Varchar2(10),
    c1 Number,
    c2 Number,
    Dt Date Columns.
    Now The Records are...
    Record 1: 'Tc101',1,1,Day3
    Record 2: 'Tc101',2,2,Day2
    Record 3: 'Tc101',3,3,Day1
    Record 4: 'Tc101',1,1,Day3
    Record 5: 'Tc101',2,2,Day2
    Record 6: 'Tc101',3,3,Day1
    Record 1: 'Tc102',1,1,Day3
    Record 2: 'Tc102',2,2,Day2
    Record 3: 'Tc102',3,3,Day1
    Record 4: 'Tc102',1,1,Day3
    Record 5: 'Tc102',2,2,Day2
    Record 6: 'Tc102',3,3,Day1
    Now, I want to display...
    TC Day1 Day2 Day3
    'TC101', 2,2, 4,4, 6,6
    'TC102', 2,2, 4,4, 6,6
    If i am adding new records for TC101 Then I Wnat to display...
    Record 1: 'Tc101',1,1,Day4
    Record 2: 'Tc101',2,2,Day4
    Record 3: 'Tc101',3,3,Day4
    Now, I want to display...
    TC Day1 Day2 Day3 Day4
    'TC101', 2,2, 4,4, 6,6 6,6
    'TC102', 2,2, 4,4, 6,6
    If i am adding new records for TC102 Then...
    Record 1: 'Tc101',1,1,Day5
    Record 2: 'Tc101',2,2,Day5
    Record 3: 'Tc101',3,3,Day5
    Now, I want to display...
    TC Day1 Day2 Day3 Day4 Day5
    'TC101', 2,2, 4,4, 6,6 6,6 0,0
    'TC102', 2,2, 4,4, 6,6 0,0 6,6
    If i am adding new records for TC103 Then...
    Record 1: 'Tc103',1,1,Day5
    Record 2: 'Tc103',2,2,Day5
    Record 3: 'Tc103',3,3,Day5
    Now, I want to display...
    TC Day1 Day2 Day3 Day4 Day5
    'TC101', 2,2, 4,4, 6,6 6,6 0,0
    'TC102', 2,2, 4,4, 6,6 0,0 6,6
    'TC103', 6,6
    Here, I want to display Maximun 1 Week(7 Days only)
    kindly, provide the Solution for this Senario ASAP.

    Hello,
    U need this in report or in sql mode

  • 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

  • How to view the SQL statement generated during execution of the BW Query?

    Dear Experts,
    I am trying to retrieve data in a SAP BW Query from a Non-SAP system.
    I think if I am able to see the complete SQL statement that was generated when I executed the BW Query, I may be able to use it to retrieve the data.
    Do you know how and where I can see the SQL statement of a BW Query's SQL statement?
    I tried RSRT options to execute the Query but still could not find the SQL statement.
    Thanks in advance.
    Regards,
    Shunhui.

    hi
    goto rsrt
    give your query name
    select execute + debug option
    in the debug option under data manager check the check box "display SQL/BIA query
    selcet continue
    you can see the sql statement
    thanq

  • HOW TO GET TOP AND BOTTOM RECORDS IN SQL STATEMENT, URGENT

    Hi,
    I want to get the TOP 2 and BOTTOM 2 records (TOP 2 SAL , BOTTOM 2 SAL) from the following query result for each department . How do I get it using a SQL statement ? Thanks
    SQL> SELECT A.DNAME, B.ENAME, B.SAL FROM DEPT A, EMP B WHERE A.DEPTNO = B.DEPTNO ORDER BY DNAME, SAL
    DNAME------------ENAME--------SAL
    ACCOUNTING-------KING--------5000
    ----------------CLARK--------2450
    ---------------MILLER--------1300
    RESEARCH--------SCOTT--------3000
    -----------------FORD--------3000
    ----------------JONES--------2975
    ----------------ADAMS--------1100
    ----------------SMITH---------800
    SALES-----------BLAKE--------2850
    ----------------ALLEN--------1600
    ---------------TURNER--------1500
    -----------------WARD--------1250
    ---------------MARTIN--------1250
    ----------------JAMES---------950
    14 rows selected.

    Search for "top-N query" in oracle doucmentation.
    Example :
    for top 2
    SELECT * FROM
    (SELECT empno FROM emp ORDER BY sal)
    WHERE ROWNUM < 3;
    for bottom 2
    SELECT * FROM
    (SELECT empno FROM emp ORDER BY sal desc)
    WHERE ROWNUM < 3;

  • HOW TO GET TOP N RECORDS IN SQL , URGENT

    Hi,
    I want to get the TOP 2 and BOTTOM 2 records (TOP 2 SAL , BOTTOM 2 SAL) from the following query result for each department . How do I get it using a SQL statement ? Thanks
    SQL> SELECT A.DNAME, B.ENAME, B.SAL FROM DEPT A, EMP B WHERE A.DEPTNO = B.DEPTNO ORDER BY DNAME, SAL
    DNAME------------ENAME--------SAL
    ACCOUNTING-------KING--------5000
    ----------------CLARK--------2450
    ---------------MILLER--------1300
    RESEARCH--------SCOTT--------3000
    -----------------FORD--------3000
    ----------------JONES--------2975
    ----------------ADAMS--------1100
    ----------------SMITH---------800
    SALES-----------BLAKE--------2850
    ----------------ALLEN--------1600
    ---------------TURNER--------1500
    -----------------WARD--------1250
    ---------------MARTIN--------1250
    ----------------JAMES---------950
    14 rows selected.

    If Feroz is asking the TOP 2 Salaried employees and BOTTOM 2 Salaried employees
    for ***EACH**** DEPARTMENT, then following SQL is one of the many ways(proves good with performance).Also brings top2+ bottom2 in one shot.SELECT dname, ename, sal FROM
    (SELECT d.DNAME, e.ENAME, e.SAL,
           dense_rank() over(PARTITION BY e.DEPTNO ORDER BY e.SAL) dr
    FROM EMP e, DEPT d
    WHERE e.DEPTNO = d.DEPTNO)
    WHERE dr <= 2
    UNION
    SELECT dname, ename, sal FROM
    (SELECT d.DNAME, e.ENAME, e.SAL,
           dense_rank() over(PARTITION BY e.DEPTNO ORDER BY e.SAL DESC) dr
    FROM EMP e, DEPT d
    WHERE e.DEPTNO = d.DEPTNO)
    WHERE dr <= 2
    /Thx,
    SriDHAR

  • How to call SQL statements in InDesign CS6?

    Hi,
         My plug-in needs to interact with the database, and update the database content, how should I do, can I call SQL statements in InDesign CS6?
         Thanku very much.

    The same way you'd call them from any C++ program. You don't mention which platform, and that probably makes a difference.
    I'm accessing an SQL database in InDesign CS6 on Windows. I'm using the ODBC interface to SQL database that Windows provides, via the nanodbc wrapper. So I'm linking to odbc32.lib and odbccp32.lib, and including the nanodbc.cpp and nanodbc.h files. (See http://lexicalunit.github.io/nanodbc/ )
    Paul.

Maybe you are looking for

  • CS4 hyperlinks are inactive on exported PDF

    Ok, I have hyperlinks to URL's on my Indesign CS4 document. I selected the text, clicked new hyperlink, link to URL and unchecked shared destination and selected in character style my saved hyperlink style... then pasted the URL address into the dest

  • 802.11 parameters

    Hello everyone, I need a way to access 802.11 parameters like received signal strength (RSSI), basic service set (BSSID), basic service set scan list, ... of wireless card from a Java class. I have a Dell Latitude D400 with Windows XP SP1 and two wir

  • Error when sending xml to queue to start workflow

    I am trying to start workflow by sending xml to the com.bea.wlpi.EventQueue. My xml looks like this: msgText:<zenith><claimAssignment><policyId>2990</policyId><claimId>1986</claimId><subjectId>1</subjectId><subjectTypeId>1</subjectTypeId><branchId>1<

  • Repeating Table in Master Pages

    Hi =) I'm having some trouble with a dynamic xml form I'm creating. Inside a page I have a repeating table that allows the user to insert a new row (max 4 rows). All I want is this page to adjust nicely to the size of the repeating table. Since I've

  • Epson Printer Drivers and Leopard - Epson 740 or Epson RX700 problems

    It seems even after Epson updated their printer drivers Leopard will not all me to print to my Epson Stylus Color 740 AND my Epson RX700, I must choose one over the other. If I install the printer drivers from Apple they include drivers for the old E