Page 1 of 1

ORA-00942: table or view does not exist

Posted: Tue May 02, 2006 2:39 pm
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

Posted: Tue May 02, 2006 2:59 pm
by chulett
How would you solve this problem if DataStage wasn't involved?

Posted: Tue May 02, 2006 3:02 pm
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

Posted: Tue May 02, 2006 3:08 pm
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.

Posted: Tue May 02, 2006 3:13 pm
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.

Posted: Tue May 02, 2006 4:22 pm
by ray.wurlod
What is x..y? Are there two dots between the schema name and the table name? This is not valid syntax.

Posted: Tue May 02, 2006 6:00 pm
by kiran_418
I think you have passed wrong parameters to the datastage job. Check the parameters.

Posted: Tue May 02, 2006 6:14 pm
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.

Posted: Wed May 03, 2006 1:20 am
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

Posted: Wed May 03, 2006 2:02 am
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;"

Posted: Wed May 03, 2006 6:30 am
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.