ORA-00942: table or view does not exist

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

ORA-00942: table or view does not exist

Post by adams06 »

i am getting this error can some one help me out

x..y: ORA-00942: table or view does not exist

Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How would you solve this problem if DataStage wasn't involved?
-craig

"You can never have too many knives" -- Logan Nine Fingers
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

Post by adams06 »

chulett wrote:How would you solve this problem if DataStage wasn't involved?
:twisted: the target table is there but still i am getting the error
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If the target table was "there" you wouldn't be getting the error. :wink:

So, your mission - should you choose to accept it - is to find out what piece you've got wrong. Check the instance/sid/dsn you are connecting to in the stage, the userid you are connecting with and the schema owner you have specified. At least one of them is wrong.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Methinks you need to look at the SQL after following Craig's advice. Your SQL may/may not contain the schema owner, plus the column derivations in the ODBC/OCI stage contain fully qualified names. Even if you have your table name correct, if the derivations contain another table name you need to clear that out or go import the table definition without fully qualified set, then import that new metadata into the job.

When it doubt, ALWAYS look at the SQL.
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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What is x..y? Are there two dots between the schema name and the table name? This is not valid syntax.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kiran_418
Participant
Posts: 40
Joined: Tue Feb 22, 2005 11:12 am

Post by kiran_418 »

I think you have passed wrong parameters to the datastage job. Check the parameters.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ray.wurlod wrote:What is x..y?
StageName..LinkName I do believe is how it is reported. Or perhaps the other way 'round. :wink:

The names were probably changed to protect the innocent, anyway.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Oracle table name are case sensitive if you have created table with lower case and looking with upcase then it will display table does not exists.. Have you check option case sensitive in datastage or created table name....


Thanks,
Anupam
jinm
Premium Member
Premium Member
Posts: 47
Joined: Tue Feb 24, 2004 1:59 am

Post by jinm »

what you need to ensure

A: User ID is granted access to the table.
B: If no synonym exists you need to prefix the table-name with schema owner in the select statement.

"select column from owner.tablename;"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

sb_akarmarkar wrote:Oracle table name are case sensitive if you have created table with lower case...
That's only true if you explicity enclosed the table name in double-quotes when you did so. And if you did, you deserve all the grief that brings upon your head. :twisted:

Otherwise, you can create a table in any mix of case you want and subsequently look it up with any other mix of case as Oracle will upcase everything in the 'background' at query time.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply