oracle.sql.ARRAY.getFloatArray ()->; SQLException: feature not supported
Hello
I created a table with some columns of nested tables, given that something like
create or replace type tenFloats in the table of the types binary_float;
/
create table (book)
s varchar2 (12) not null,
d date not null,
BN tenFloats,
tenFloats BQ)
Bn NESTED TABLE as bn_tab store
Bq of NESTED TABLE as bq_tab store
/
In PL/SQL, it works, I can insert and extract.
Now I'm trying in Java
ResultSet testrs is db_conn.createStatement () .executeQuery ("select s, book bq");.
ARRAY arr = null;
While (testrs.next ()) {}
ARR = (Array) testrs. GetArray (2);
float [] bids = arr.getFloatArray (); / / <-fails here
}
This operation fails with:
Exception in thread "main" java.sql.SQLException: function not supported
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
at oracle.jdbc.driver.DatabaseError.throwUnsupportedFeatureSqlException(DatabaseError.java:702)
at oracle.sql.ArrayDescriptor.toNumericArray(ArrayDescriptor.java:1517)
at oracle.sql.ARRAY.getFloatArray(ARRAY.java:980)
at app.slawek.myClass.main(myClass.java:109)
OK, so in desperation I tried another way, with zero CARDS.
ARRAY arr = null;
While (testrs.next ()) {}
ARR = (Array) testrs. GetArray (2);
Reference d [] = arr.getOracleArray ();
System.out.println (d.Length);
float [] offers = new float [d.length];
for (int i = 0; i < bids.length; i ++) {}
offers= d [i] .floatValue (); / / <-fails here
System.out.Print (submissions [i] + "");
}
}
This time, I get:
Exception in thread "main" java.sql.SQLException: float Conversion failed
at oracle.sql.Datum.floatValue(Datum.java:225)
at app.slawek.myClass.main(myClass.java:114)
While in the debugger, I see that d is an array of objects of type BINARY_FLOAT 10.
I use 11 Oracle client and server on Windows 7 64 bit.
Can someone please?
Thank you
Slawek
What happens if you treat your tables nested as result sets?
while (testrs.next()) {
arr = (ARRAY)testrs.getArray(2);
ResultSet rs = arr.getResultSet();
while(rs.next()) {
Float f = (Float)rs.getObject(2);
}
rs.close();
}
Tags: Oracle
Similar Questions
-
ORA-22816: feature not supported with RETURNING clause
<!-StartFragment--> java.sql.SQLException: ORA-02014: cannot select the UPDATES view DISTINCT, GROUP BY, etc.
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:730)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5594)
at oracle.apps.fnd.framework.server.OAEntityImpl.doSelect (unknown Source)
Hello
I had the resolution of the following link
EODefImpl.java to implement so that EO
and override the createDef() method.Public Sub createDef()
{
super.createDef ();
setUseReturningClause (false);
}Thank you
AP
ORA-22816 - feature not supported with clause of returning OFFICER (EO)
-
Feature not supported in mass cases Tester
Hello
I get an error of not taken function supported in mass cases Tester when I try to use the data in reference to boot my modules.
Please let me know what could be the possible cause of this error. Is the use of reference data not supported in the current version of MCT?
The details of the error are:
This is a feature not supported
Exception: Exception
Message: This is a feature not supported
Source: Oracle.Policy.Modeling.MassCaseTester
HelpLink:
TargetSite: Boolean Check()
Stack trace:
at Oracle.Modeling.MassCaseTester.RulebaseChecker.Check)
Thank you
AakarshUnfortunately you are right - given reference are not supported in the current version of the MCT.
It is expected that it be fixed for the 10.2 release.
-
Form trigger error ORA-22816: feature not supported with RETURNING clause
Hi Apex developers.
I created the form to the poster with the INSTEAD of trigger. Everything works very well for the UPDATE and DELETE. But to INSERT the "automatic line (DML) treatment" trigger ORA-22816: feature not supported with RETURNING clause. When I disable the INSTEAD OF trigger it start work very well too. But I have to use INSTEAD OF trigger for safety reasons.
Meet someone too the question?
What is workaroud for the question?
Thank you very much.
MichaudHi Martin,
MMH, it beats me. You could try with tracing active sql (add & ptrace = YES to your URL), see what actually running.
Cordially Jens
-
Feature not supported in 16 - bit
Please I need help for Microsoft application "If a 64-bit windows is available. If yes where & how download/install
Feature not supported in 16-bit.
My system Type x 64-based PC System Center c:\windows\system32::"\ //My? \c:users\user\AppData\local\Temp\setup\11931027B-Ac26-47OB-995F-9B34-4659269.exe '(Incompatitible with 64-bit Windows). Have tried but failed to find any info.16-bit applications may not work on a 64-bit version of Windows. There is no 16-bit subsystem to execute.
If a 16-bit application is critical, the only way is to use 32-bit Windows.
-
Oracle Sql developer 2.1 does not work
Hello
Oracle Sql developer 2.1 does not work on my machine (Windows server 2003 pack 2 service) but works on xp and vista. On the other hand oracle datamodeller works very well.
can someone help me?
Thank youWho must have worked also. Do you all not basic ASCII characters in the path?
K.
-
T450s: Hosted network feature not supported?
I have a ThinkPad T450s bought in Dec 2015 with Windows 10 Pro. It has the Intel AC 7265 wireless card. I am trying to use the hosted network feature Windows to use the laptop as a hotspot for other devices, but I can't make it work.
When I open an administrator command prompt and run "netsh wlan show drivers", the parameter ' hosted network supported:' has the value 'no '.
I tried updating the wireless network card driver via the tool companion of Lenovo, via the Intel driver update utility and Windows via the Device Manager. The wireless driver has been updated to version 18.330.1 dated dated 05-01-2016. Then, I rebooted the machine but still no improvement. The characteristic hosted network shows as not supported. I also tried showing the devices hidden in Device Manager but under network adapters, there is no virtual card listed Microsoft hosted network.
Is this a driver problem? Anyone with a broadcast network animated T450s as being taken in charge?
Thank you
Well, I found a solution on the Intel community forum: https://communities.intel.com/message/327193. A couple of users in this thread (the one with a Lenovo X 1 carbon) suggested to use an older version of 18.11 18.12 driver. So that's what I did and it worked! Here are my actual steps:
-
Oracle 11.2.0.1.0 not supported for planning?
I just noticed this entry in the matrix of the platform:
Oracle 11.2.0.1.0 database is supported only for: calculation Manager, EPM System Installer (requires 11.1.1.3.05), EPM Workspace, Integrator ERP, Financial Reporting (requires 11.1.1.3.28), Performance Management architect, Shared Services (requires 11.1.1.3.11)
OK, so I guess that rules out 11.2 as an RDBMS supported for Hyperion Planning 11.1.1.3? I imagine something more low, say 11.1.0.6.0 or less should not be a problem then?
Or is not officially supported, it will work very well what that means? Don't bother taking the chance, even if it's good?Oracle 9.2.0.5 by Oracle 11.1.0.6.0 are supported.
11.2.0.1.0 not supported, it can work but use it at your own risk, because it is not currently supported.See you soon
John
http://John-Goodwin.blogspot.com/ -
Hands-free features not supported in the current context of material
Hello
I have a generic Bluetooth headset and a bluetooth PCMCIA card with the latest drivers Toshiba.
The adapter finds the headset and other bluetooth devices, but it will not allow me to pair the headset with my computer.
I am running XP with Service Pack 2 installed.Can someone help me? I would really like to get the headset working on my laptop?
Many thanks for any help,
Jake
Hello
did you check if the Bluetooth headset has a security key? Usually, if you pair two devices BT you type a key.
When the key has been accepted devices will connect.Give me some feedback if you find something out.
Welcome them
-
JDBC 4.0 - 8 SQL Server version is not supported by this driver
I use JBoss AS 6.1.0 Final and running using the JRE 6 included with jdk1.6.0_32.I need to connect to a MS SQL 2008 database and have downloaded the latest Microsoft JDBC drivers contained in sqljdbc_4.0.2206.100_enu.exe.I have copied sqljdbc4.jar to the default\lib folder and set up my DS etc.When my application tries to connect to the MS SQL database, I get;12:32:53, 064 WARNING [ISQLServerConnection] ConnectionID:1 ClientConnectionId: a0955e8d-226a-44e6-b8f8-b0217cd3cf47 Server major version: 8 is not supported by this driver.12:32:53, 080 Throwable WARN [JBossManagedConnectionPool] then that he was trying to get a new connection: null: org.jboss.resource.JBossResourceException: could not create a connection; -nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: SQL Server version 8 is not supported by this driver.) ClientConnectionId:a0955e8d - 226-44e6-b8f8-b0217cd3cf47)Some messages said that it was due to a bug in a previous JRE and upgrade to 32 would solve it!Any ideas?TIA.Hello
The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.
http://social.technet.Microsoft.com/forums/da-DK/SQLDataAccess/threads
-
Hello
I have a created an EO based on a synonym (synonym is created for a Table by using binding remote Db)
I created a from VO of the EO above and added to an AM. When I run the AM and try to insert a record I get following error
[164] BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4:5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND, REFUNDED_IND, CSP_IND RETURNING: 7: 8: 9,: 10,: 11,: 12,: 13; END;
[165] insert link param 1: test
[166] insert link param 2: you
[167] insert link param 3: 2014-10-16 21:37:09.0
[168] insert link param 4: your
[169] insert link param 5: you
[170] insert link param 6: N
OracleSQLBuilderImpl.doEntityDML [171] failed...
[172] X / Open SQL State is: 99999
[173] java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in 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:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
in java.awt.EventQueue$ 1.run(EventQueue.java:603)
in java.awt.EventQueue$ 1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 2.run(EventQueue.java:617)
in java.awt.EventQueue$ 2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
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)
[174] OracleSQLBuilder: ROLLBACK WORK point registration "BO_SP".
[175] DCBindingContainer.reportException: oracle.jbo.DMLException
oracle.jbo.DMLException [176]: Houston-26041: could not publish data from database in "Insert": SQL statement ' BEGIN INSERT INTO TRACK_TRANSACTION_STATUS_BIZ (TRANS_NO, TRANS_ID, START_DATE, LOGIN_USER_ID, SESSION_ID, REFUND_APPLICABLE_IND) VALUES (: 1,: 2,: 3,: 4: 5:6) TRANS_STATUS, ISHOP_LOGIN_IND, EMAIL_ADDR_AT_SIGN, TEL_NO_INT_PREFIX, REFUND_APPLICABLE_IND. , REFUNDED_IND, CSP_IND INTO TURNING: 7: 8: 9: 10: 11:12:13; END; ».
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)
to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in 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:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
in java.awt.EventQueue$ 1.run(EventQueue.java:603)
in java.awt.EventQueue$ 1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 2.run(EventQueue.java:617)
in java.awt.EventQueue$ 2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
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: ORA-22816: feature not supported with RETURNING clause
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
... 52 more
# # 0 in detail
java.sql.SQLException: ORA-22816: feature not supported with RETURNING clause
ORA-06512: at line 1
Ask for help in this regard
ADF will generate default DML statement with RETURNING clause, and it is not applicable to your use case: ORA-22816: feature not supported with RETURNING clause
Instead, you can try with setUseReturningClause (false): http://docs.oracle.com/middleware/1213/adf/develop/adf-bc-entity-objects.htm#BABJAJCA
Dario
-
Merge not supported on table space
Hi all
I'm working on an existing table that has a unique id. It should be expanded with additional id, which we will call a group id.
Assume there is a table
The object_id is the PK and obviously unique. The group_id must be unique for each distinct f1, f2, f3 combination.create table t ( object_id number not null, f1 varchar2(100) not null, f2 varchar2(100) not null, f3 varchar2(100) not null, f4 mdsys.sdo_geometry, group_id number );
I like the merge statement, also for the updates, because of its flexible syntax. I wanted to do:
but I get an ORA-29886: feature not supported for the field index. (I'm on Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0)merge into t using ( select distinct f1 , f2 , f3 , rownum group_id from t ) g on ( t.f1 = g.f1 and t.f2 = g.f2 and t.f3 = g.f3 ) when matched then update set t.group_id = g.group_id;
Of course, it is easy to write a pl/sql loop (and I did), but is there a way to do this in pure sql in a single update statement in an elegant way?
Thank you!Boneist wrote:
Assuming that object_id is a primary key, then I would do something like:update t set t.group_id = (select t2.dr from (select t1.*, dense_rank() over (partition by t1.f1, t1.f2 order by t1.f1, t1.f2) dr from t t1) t2 where t2.object_id = t.object_id)
Works better without the PARTITION BY clause ;)
UPDATE t SET group_id = ( SELECT dr FROM ( SELECT object_id, dense_rank() over(order by f1, f2, f3) dr FROM t ) v WHERE v.object_id = t.object_id ) ;
Of course, it is easy to write a pl/sql loop (and I did), but is there a way to do this in pure sql in a single update statement in an elegant way?
Boneist suggested (without partition), or somewhere in between with a FORALL statement.
For example:
DECLARE gid_tab sys.odcinumberlist; oid_tab sys.odcinumberlist; BEGIN select object_id, dense_rank() over(order by f1, f2, f3) bulk collect into oid_tab, gid_tab from t ; forall i in 1..oid_tab.count update t set group_id = gid_tab(i) where object_id = oid_tab(i) ; END; /
According to the volume of data to process, you may need to test with a LIMIT of COLLECT clause in BULK as well.
Edited by: odie_63 Feb 4. 2011 15:26
-
ORA-00845: MEMORY_TARGET not supported on this system
Dear all,
When I go to start to oracle I m getting this error.
SQL > startup
ORA-00845: MEMORY_TARGET not supported on this systemIf you want to open the GUI mode via putty?
You can use Xming
-
Why is-menu Oracle SQL Developer navigation so slow?
For example if I click Tools, it takes like 5 seconds to open.
The cursor icon taking also like 2-3 seconds to next day where it is.
Oracle SQL Developer has impressive features, but I can't use it like that.
Can anyone help or point in a direction?
It's a nice machine but I remote desktop to it, but the rest of the applications are working fine.
#added it
AddVMOption - Dsun.java2d.noddraw = true
AddVMOption - Dsun.java2d.ddoffscreen = false
looks a bit better
-
List of function not supported in Android
Hello
Is there a complete list and Update of features not supported on Android devices?
Just did a rendition of 'test' for Android 10' of the iPad articles and, as expected, not all of the features and tricks work. I knew that would happen... I was wondering if there is a guide "do not do" for Android.
Thank you!
See the following article:
Let us know if a feature that is supposed to be supported does not work.
Maybe you are looking for
-
Problem with comparing (related excel)
Problem: Essentially the vi does that retrieve values from excel and compare it with a predetermined value and if the return value is equal to or superior to the vi stops and returns the cell that gave him a thar value. I think that it can think I te
-
Windows Vista: 0x800106ba, 0x800b0109,
OK so yesterday my computer want install certain updates and before it finished installing them it says error cannot finish install. My computer froze and I had to reboot. When he started toward the high nothing worked he says he couldn't find itunes
-
importing of .pst OUTLOOK in Vista Mail files
I have tried to import Vista Mail, try to import my old email saved in OUTLOOK from an XP based PC (.pst files). I'm migrating from XP to Vista on a new computer. Import Vista Mail function fails and gives me the message 'Messages cannot be imported
-
Logitech unifying device is not recognized
Windows 7 does not recognize the unifying device for logitech M510 wireless mouse. any ideas? all my usb ports work.
-
How to display full-screen the front camera.
When I opened a front camera of qml and startviewfinder code, the screen is not complete as in the photobomer example. Someone knows how to fix this? Thank you.