Oracle Error - OCI_INVALID_HANDLE

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sathyanveshi
Participant
Posts: 66
Joined: Tue Dec 07, 2004 12:48 pm

Oracle Error - OCI_INVALID_HANDLE

Post by sathyanveshi »

Friends,

While trying to run a job to load data from a source table to a staging table, I encountered the following error:

"LOAD_PS_RBT_ACCOUNT..Transform_PS_RBT_ACCOUNT: Oracle Error - OCI_INVALID_HANDLE"

LOAD_PS_RBT_ACCOUNT is the job name. Transform_PS_RBT_ACCOUNT is the transformation name.

I could understand that this is a Oracle related error. But I wanted to know the reason for this error and any mitigations.

Cheers,
Mohan
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's a connectivity error. The "handle" (a variable used in the OCI to manage the connection or the statement) is invalid. Possible causes include improperly specifying the connection string or database name, or a connection that has been lost since first being connected - that is, a network failure.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ririr
Participant
Posts: 84
Joined: Sun Apr 04, 2004 8:59 pm

Post by ririr »

try viewing data from Source Stage using "VIEW DATA". That would help to troubleshoot if the error is because of the incorrect login, SID(database name) or the SQL itself.
hkotze
Participant
Posts: 35
Joined: Tue Feb 04, 2003 5:09 am

Post by hkotze »

Hi Guys,

I get the exact same error and when we test it in toad with the same logon name and password, sid and tnsnames file we get a result back. The source data do contain a clob field that I specified as longvarchar and the length I made 2 000 000.

Any answer on this.

DS version 7.5A
OS HPUX 11i
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

CLOB fields are not supported, especially not ones that big. :shock: I would guess that is the heart of your problem.

What happens if you take this field out of the metadata and don't try to process it? Does it work fine then?
-craig

"You can never have too many knives" -- Logan Nine Fingers
hkotze
Participant
Posts: 35
Joined: Tue Feb 04, 2003 5:09 am

Post by hkotze »

CLOB fields are supported up to 2 Gig as per Oracle OCI 9i pdf doc.

I changed the type to a varchar and it is working only truncating some input data. It seems the plugin have some problems with CLOB's
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

hkotze wrote:CLOB fields are supported up to 2 Gig as per Oracle OCI

Yes but this is a terrible idea to move that much data on a row using DataStage. Numbers and letters are what ETL tools are meant to handle. Think a moment about moving a gigabyte of data as a single row. Your tool is written to allow you maximum flexibility to parse and manipulate strings of data. Even if the tool can do it (DS can't), you're talking about 1 row an hour of performance. Processing is a factor of characters per second, not rows.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply