Using different Oracle user

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
krystlecsy
Participant
Posts: 50
Joined: Wed Jul 14, 2004 7:56 am

Using different Oracle user

Post by krystlecsy »

Need some help here regarding about the error below:-

ora_F_01: GenericQuery:esqlErrorHandler
Prepare failed for:
query is: select * from ETL_USER.F_01
sqlcode is: -942
esql complaint: ORA-00942: table or view does not exist

ora_F_01: GenericQuery::getSchema - could not prepare query 'select * from ETL_USER.F_01'.


Now, the problem is the F_01 table owner is PCAMI and somehow when I use another user (ETL_USER) to access the tables who has been granted the rights to select from the table and also a public synonym is created for the F_01 table, DataStage automatically appends an ETL_USER.F_01 at the statement. Can someone tell me how do I remove that? Any solution to this?
davidnemirovsky
Participant
Posts: 85
Joined: Fri Jun 04, 2004 2:30 am
Location: Melbourne, Australia
Contact:

Post by davidnemirovsky »

How are you building the query for this transaction in DataStage?

Are you using the 'Fully Generated Query' option in the 'SQL' tab of your Oracle stage?

This way it might fill in the 'Derivation' field in the 'Columns' tab.

Blank out the derivation. That should fix it.
Cheers,
Dave Nemirovsky
krystlecsy
Participant
Posts: 50
Joined: Wed Jul 14, 2004 7:56 am

Post by krystlecsy »

I don't see this option in the Oracle Stage of DataStage PX. Are u using this version of DataStage as well?
davidnemirovsky
Participant
Posts: 85
Joined: Fri Jun 04, 2004 2:30 am
Location: Melbourne, Australia
Contact:

Post by davidnemirovsky »

Oops! No I'm not. Not using PX. Sorry about that. :oops:
Cheers,
Dave Nemirovsky
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I normally include the schema (owner) name as a job parameter, and inlude it explicitly in the Table Name field.

Using a job parameter makes it easy to move from development through to production where the schema name may be different.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Eric
Participant
Posts: 254
Joined: Mon Sep 29, 2003 4:35 am

Re: Using different Oracle user

Post by Eric »

krystlecsy wrote: user (ETL_USER) to access the tables who has been granted the rights to select from the table and also a public synonym is created for the F_01 table
The Oracle user must have access to a number of system tables.
These are all detailed in the Enterprise: Job developers guide.
Post Reply