Page 1 of 1

Using different Oracle user

Posted: Wed Nov 03, 2004 10:47 pm
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?

Posted: Wed Nov 03, 2004 11:27 pm
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.

Posted: Thu Nov 04, 2004 12:02 am
by krystlecsy
I don't see this option in the Oracle Stage of DataStage PX. Are u using this version of DataStage as well?

Posted: Thu Nov 04, 2004 12:18 am
by davidnemirovsky
Oops! No I'm not. Not using PX. Sorry about that. :oops:

Posted: Thu Nov 04, 2004 12:24 am
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.

Re: Using different Oracle user

Posted: Thu Nov 04, 2004 11:34 am
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.