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
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
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.