ORA-00942 at select [message #471332] |
Fri, 13 August 2010 07:51  |
larsebaer
Messages: 13 Registered: March 2009
|
Junior Member |
|
|
Hello,
i have a strange behavior on my database.
When i do a
SELECT NAME, NAME_1 from NAMES where NAME = :1
i get an ORA-00942 table or view does not exist.
when i do a
SELECT NAME, NAME_1 from NAMES where NAME = :1
(additional space in front of "from")
i get a result.
Every time i try exact the first SQL i get the error.
... and the first select does not appear in the V$SQLAREA -view.
what is wrong in my database?
Best Regards
Lars
[Updated on: Fri, 13 August 2010 08:09] by Moderator Report message to a moderator
|
|
|
Re: ORA-00942 at select [message #471333 is a reply to message #471332] |
Fri, 13 August 2010 07:57   |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
larsebaer wrote on Fri, 13 August 2010 08:51Hello,
i have a strange behavior on my database.
When i do a
SELECT NAME, NAME_1 from NAMES where NAME = :1
i get an ORA-00942 table or view does not exist.
when i do a
SELECT NAME, NAME_1 from NAMES where NAME = :1
(additional space in front of "from")
i get a result.
Every time i try exact the first SQL i get the error.
... and the first select does not appear in the V$SQLAREA -view.
what is wrong in my database?
Best Regards
Lars
Where are you running this as that is not valid syntax for a SQL prompt? I'd like to see a full session of your commands and error. I am guessing that that is not the query that is running. Maybe you are building it and you "think" you have spaces in the correct place.
|
|
|
|
Re: ORA-00942 at select [message #471901 is a reply to message #471353] |
Tue, 17 August 2010 14:46   |
larsebaer
Messages: 13 Registered: March 2009
|
Junior Member |
|
|
Hi Michael,
originally i have this behavior in a VB6-Program. Then i reviewed the SQL-Code in the v$sqlarea-view. This sql i tested in T.O.R.A. . In SQL*PLUS i have a Problem with the :1 Variable SQL*PLUS does not like the :1.
For some other reason i have restarted the Oracle instance. I now have to check if the problem is still there, or if the restart has fixed it. If it is gone there is still the question: what was it?
Best Regards
Lars
|
|
|
|
|
|
|
|
|
Re: ORA-00942 at select [message #472378 is a reply to message #472340] |
Fri, 20 August 2010 04:40   |
larsebaer
Messages: 13 Registered: March 2009
|
Junior Member |
|
|
.... and 11.2.0.2 for Windows x64 is scheduled sonewhere in Q4CY2010 by oracle....
so have a look after the database if you have this error - no patch before october...
Regards
Lars
|
|
|
|