ORA-00942: table or view does not exist

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
austin_316
Participant
Posts: 80
Joined: Fri Aug 21, 2009 7:49 am
Location: India

ORA-00942: table or view does not exist

Post by austin_316 »

hi colin,
got any solution for this issue. We too are facing similar issue.
its giving the error

Code: Select all

main_program: (aptoci.C:355). Message: ORA-00942: table or view does not exist
(aptoci.C:491). Message: ORA-00942: table or view does not exist
(aptoci.C:403). Message: ORA-00942: table or view does not exist
(aptoci.C:460). Message: ORA-24374: define not done before fetch or execute and fetch
we have oracle enterprise stage which is trying to read data from a table partitioned in the database and store the records in a dataset.

we tried giving the Read Method as Table/User Defined SQl/Auto-Generated SQl. but the same error gets popped up in all of the cases.


Regards,
ravi.
Last edited by austin_316 on Thu Jun 02, 2011 12:29 am, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Please don't hijack old posts, when you have a problem no matter how "similar" it may be to something you've found, start your own post. Then you have control over its fate.

Also, please edit your post and add the required information we're missing - O/S, version, etc.
-craig

"You can never have too many knives" -- Logan Nine Fingers
austin_316
Participant
Posts: 80
Joined: Fri Aug 21, 2009 7:49 am
Location: India

ORA-00942: table or view does not exist

Post by austin_316 »

Apologies for posting over the old one.
i have updated the details like datastage version,o/s and job type.
kindly help me in solving the issue.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try qualifying the table name with its schema (owner) name.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: ORA-00942: table or view does not exist

Post by SURA »

Check the privilege for the user connecting Oracle through Datastage.

DS User
austin_316
Participant
Posts: 80
Joined: Fri Aug 21, 2009 7:49 am
Location: India

ORA-00942: table or view does not exist

Post by austin_316 »

hi,
Although the job is giving this error, data from the table is fetched and iam able to store the data in a dataset. we have given the value for partitiontable and table in the properties as #$SRC_SCHEMA#.SAMPL_PART_TBL.
And also the status of the job in the websphere datastage director is shown as Finished
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In the "Job starting" event in the log, verify that the environment variable job parameter has a valid value.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
austin_316
Participant
Posts: 80
Joined: Fri Aug 21, 2009 7:49 am
Location: India

ORA-00942: table or view does not exist

Post by austin_316 »

hi ray,
thanks for the reply.
i have checked the value for the variable in the log. it is having the proper value. one more point i forgot to mention is when i remove the property "Partition Table" from the oracle enterprise we are not getting the error and if we keep it job is running successful(Status updated as Finished) and records are being fetched, but iam seeing this fatal error in the logs. :?
Post Reply