Error connecting to Oracle database"Fatal Error: Caught

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

jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Error connecting to Oracle database"Fatal Error: Caught

Post by jojipjohn »

Hi all,

I am getting an error when I am tring to fetch data or write data to Oracle database using a paralle job.

Here is the erro message that I got:

Error executing View Data command:

##F TFPM 000281 16:18:03(000) <main_program> Fatal Error: Caught unknown exception in main program: terminating.



Output from job run:

##I TFCN 000001 16:17:57(000) <main_program>
Ascential DataStage(tm) Enterprise Edition 7.5
Copyright (c) 2004, 1997-2004 Ascential Software Corporation.
All Rights Reserved


##I TOSH 000002 16:17:57(001) <main_program> orchgeneral: loaded
##I TOSH 000002 16:17:57(002) <main_program> orchsort: loaded
##I TOSH 000002 16:17:58(000) <main_program> orchstats: loaded
##W TCOS 000049 16:17:58(001) <main_program> Parameter specified but not used in flow: DSProjectMapName
>##F TFPM 000281 16:18:03(000) <main_program> Fatal Error: Caught unknown exception in main program: terminating.
>
>


Could anyone please help me out with this. why am getting this error and how to resolve this.


Thanks in advance.
Joji John
ambasta
Participant
Posts: 93
Joined: Thu Jan 19, 2006 10:29 pm
Location: Bangalore

Post by ambasta »

Are u parameterising the connection details or hardcoding???if parameterizing then try to hardcode and see wat u r getting.
ambasta
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

I hardcoded the connection details. I tried connecting to an access DB in the same server its working but not for Oracle. I am able to connect to the same Oracle DB in a server job but not in a parallel job
Joji John
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Describe your job design. In particular, what stage type are you using to access Oracle, and what is your "write rule"? Can you View Data using this stage?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

No I am able to view data either. This is not working both for source and targetr stages, No matter what write rule i give.
Joji John
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What stage type? Oracle Enterprise, OraOCI, Dynamic RDBMS, ODBC or something else?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

I tried with both Oracle enterprise and ODBC stage, Its not working
Joji John
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Do you get any more errors if you expand the pop screen?
Check if odbc settings been configured properly.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

There are no more details available about the error. The same ODBC seting is working for server jobs.
Joji John
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

What is the version of DataStage that been used?
Try using tnsping to the Oracle server. Try to import metadata from using manager either by plugin or using Orchestrate.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

tnsping is working. I am able to connect to the database with toad and this is working for server jobs also. In parallel job I am able to import the table definition but not able to view data or run the job to extract or write to the database
Joji John
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

I am using datastage 7.5x2
Joji John
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create another, really simple parallel job with one Integer column. SELECT COUNT(*) FROM DUAL; will do as the query; output can be to a Peek stage. Can you get this to work?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

I tried this, even this job is not working giving the same error.
Joji John
jojipjohn
Participant
Posts: 52
Joined: Wed May 17, 2006 3:40 am
Location: India

Post by jojipjohn »

I am able to fire this SQL statements in toad and the same is working for server jobs. If it something to do with the DB privilages it should not work for Server job either right?
Joji John
Post Reply