Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Getting invalid column name without access to system tables

When I run an SQL statement from my application, I get the following error message: "ORA-00904: invalid column name." My question is, without access to the system tables, is there a way of getting more information about this error, like the column name that is invalid?

What query are you running when you get this message? Your answer lies there. One of the columns in the query that is running is invalid. If you can run the query, then you can see the "system tables" that contain information about the tables in the query. Simply start a SQL*Plus session and do a describe on the table (or tables). One of the columns in your query will not be a valid column name in one of the tables.

If you don't know which SQL statement it is, then you could turn tracing on to try and find the statement in error. The DBA might need to help you with this if you're unfamiliar with how to do it.

For More Information

Dig Deeper on Oracle database performance problems and tuning

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.