Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ORA-22816

RE: ORA-22816

From: Igor Neyman <ineyman_at_perceptron.com>
Date: Tue, 14 Feb 2006 15:50:37 -0500
Message-ID: <F4C27E77F7A33E4CA98C19A9DC6722A2B28C7E@EXCHANGE.corp.perceptron.com>


If it works from SQL*Plus, but fails when running through ODBC/Java, why don't you trace it and see, what is exactly going on?

Igor

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Thomas Day Sent: Tuesday, February 14, 2006 3:43 PM To: oracle-l_at_freelists.org
Subject: ORA-22816

First, I don't have a metalink account. Oracle messed up my old account, contract is coming to an end, and customer is dragging their feet about giving me the CSI number so I can get a new account.

However, I have R'ed TFM -
"Cause: RETURNING clause is currently not supported for object type columns, LONG columns, remote tables, INSERT with subquery, and dereferencing inside returning clause.

Action: Use separate SELECT statements to get the values."

We're doing an INSERET through a view. The insert statement is pretty straight-forward and doesn't have any apparent subqueries. It works fine if I run it in SQLPlus. However, we're running it through Java and an ODBC connection. The view has several decode statements and an outer join (the decode statements handle the output when the outer join doesn't find data in the second table).

So I'm wondering, is it the decode statements that are acting like a subquery or is it the outer join that's causing dereferencing, or is it something altogether different?

I don't have access to the resources that I need to answer this and I'm hoping that someone else has run across this problem and knows the answer.
--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Tue Feb 14 2006 - 14:50:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US