connector received Oracle error code ORA-1406
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
connector received Oracle error code ORA-1406
Hi Team,
Derivation for one of the column in my oracle connector is as follows:
AVG( NVL(C1, 0) ) * AVG(
CASE WHEN C2 <= 0 THEN ABS(C2) ELSE 0 END )
When i run job,getting below error message:
While reading data for column COLUMN_NAME, the connector received Oracle error code ORA-1406. (CC_OraStatement::logArrayReturnCodes, file CC_OraStatement.cpp, line 4155)
Tried all the possible ways ,Please help in resolving this error.
Derivation for one of the column in my oracle connector is as follows:
AVG( NVL(C1, 0) ) * AVG(
CASE WHEN C2 <= 0 THEN ABS(C2) ELSE 0 END )
When i run job,getting below error message:
While reading data for column COLUMN_NAME, the connector received Oracle error code ORA-1406. (CC_OraStatement::logArrayReturnCodes, file CC_OraStatement.cpp, line 4155)
Tried all the possible ways ,Please help in resolving this error.
Cheers,
Schindler
Schindler
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
You should have your Oracle definition something like
and use the name "MyColumn" in your source stage.
Code: Select all
AVG( NVL(C1, 0) ) * AVG( CASE WHEN C2 <= 0 THEN ABS(C2) ELSE 0 END ) AS MyColumn
Last edited by ArndW on Tue Sep 17, 2013 3:53 am, edited 1 time in total.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 232
- Joined: Fri Aug 04, 2006 1:20 am
- Location: Bangalore
What it is in Oracle isn't the question, it might be if you were just selecting a column but you're not. Instead you are building a logical or derived column based on "C1" and "C2" with a mixture of functions so Oracle just assumes the worst and goes big.
Still trying to understand what data type and size you are using in the source stage for your "as MyColumn" field... not convinced that's been properly answered yet.
Still trying to understand what data type and size you are using in the source stage for your "as MyColumn" field... not convinced that's been properly answered yet.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
-
- Participant
- Posts: 30
- Joined: Wed May 15, 2013 1:22 am
- Location: Bangalore
I corrected my code typo above. But it remains that you are creating a new column through your case and you need to know what that derived data type is. I just read that Craig has already suggested this. You might perform an explicit CAST() on this result and make sure you use the same definition in DataStage.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: