Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Anyone run into this strange ORA-00904 error ??

RE: Anyone run into this strange ORA-00904 error ??

From: Bellow, Bambi <bbellow_at_chi.navtech.com>
Date: Tue, 02 Dec 2003 15:14:24 -0800
Message-ID: <F001.005D8714.20031202151424@fatcity.com>


Content-Type: text/plain;
 charset="iso-8859-1"

I have run into this problem in the past in two different situations. The first is where there is a reserved word somewhere that you managed to sneak through somehow... the second is where there is an internal view created for some reason that barfs... e.g., VW_NSO_1.$NSO_COL_1. Check your alert log. If it's the latter, it's a bug. If it's the former, try specifying the columns and adding a column alias where the column could conceivably be a reserved word. You didn't give us all the column names, but try something like this...  

select internal_identifier int_id, title_cd,nonissue, nonissue2, boy_this_could_be_a_problem a,nonissue3... from your_table
where x=y  

HTH,
Bambi.  

 -----Original Message-----
[mailto:babette.turnerunderwood_at_hrdc-drhc.gc.ca] Sent: Tuesday, December 02, 2003 10:34 AM To: Multiple recipients of list ORACLE-L

We started having a weird problem that looks like some kind of data dictionary corruption.

My first choice is to run catalog / catproc. This did nothing to resolve the problem.

Why am I able to describe an object, but get ORA-00904 when I try to select from the table...

SQL> desc ispownre3.individual_names;

 Name                                      Null?    Type 
 ----------------------------------------- -------- ------------------ 
 INTERNAL_IDENTIFIER                                NUMBER(12) 
 TITLE_CD                                           NUMBER(3) 
. . .

SQL> select * from ispownre3.individual_names; select * from ispownre3.individual_names

                         * 

ERROR at line 1:
ORA-00904: invalid column name

------_=_NextPart_001_01C3B929.641D10D0
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DTahoma><SPAN class=3D738340423-02122003><FONT =
face=3DArial><FONT=20
color=3D#0000ff size=3D2>I have run into this problem in the past in = two different=20
situations.&nbsp; The first is where there is a reserved word somewhere = that you=20
managed to sneak through somehow... the second is where there is an = internal=20
view created for some reason that barfs... e.g., = VW_NSO_1.$NSO_COL_1.&nbsp;=20
Check your alert log.&nbsp; If it's the latter, it's a bug.&nbsp; If = it's the=20
former, try&nbsp;specifying the columns and adding a column alias where = the=20
column could conceivably be a reserved word.&nbsp; You didn't give us = all the=20
column names, but try something like =
this...</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D738340423-02122003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D738340423-02122003>select=20
internal_identifier int_id, title_cd,nonissue, nonissue2,=20 boy_this_could_be_a_problem a,nonissue3...</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D738340423-02122003>from=20
your_table</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D738340423-02122003>where=20
x=3Dy</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D738340423-02122003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D738340423-02122003>HTH,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D738340423-02122003>Bambi.</SPAN></FONT></DIV>
<DIV><FONT face=3DTahoma><SPAN class=3D738340423-02122003><FONT =
face=3DArial=20

color=3D#0000ff size=3D2>&nbsp;</FONT></SPAN><BR><FONT size=3D2><SPAN=20
class=3D738340423-02122003><FONT face=3DArial=20
color=3D#0000ff>&nbsp;</FONT></SPAN>-----Original =
Message-----<BR><B>From:</B>=20
babette.turnerunderwood_at_hrdc-drhc.gc.ca=20 [mailto:babette.turnerunderwood_at_hrdc-drhc.gc.ca] <BR><B>Sent:</B> = Tuesday,=20
December 02, 2003 10:34 AM<BR><B>To:</B> Multiple recipients of list=20 ORACLE-L<BR><B>Subject:</B> Anyone run into this strange ORA-00904 = error=20
??<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"><!-- Converted from =
text/rtf format -->
  <P><FONT face=3DArial size=3D2>We started having a weird problem that = looks like=20
  some kind of data dictionary corruption.</FONT> </P>   <P><FONT face=3DArial size=3D2>My first choice is to run catalog / = catproc. This=20
  did nothing to resolve the problem.</FONT> </P>   <P><FONT face=3DArial size=3D2>Why am I able to describe an object, = but get=20
  ORA-00904 when I try to select from the table...</FONT> </P><BR>   <P><FONT face=3DArial size=3D2>SQL&gt; desc = ispownre3.individual_names;</FONT>=20
  <BR><FONT face=3DArial=20
  =
size=3D2>&nbsp;Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
  Null?&nbsp;&nbsp;&nbsp; Type</FONT> <BR><FONT face=3DArial=20
  size=3D2>&nbsp;----------------------------------------- --------=20
  ------------------</FONT> <BR><FONT face=3DArial=20
  =
size=3D2>&nbsp;INTERNAL_IDENTIFIER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
  NUMBER(12)</FONT> <BR><FONT face=3DArial=20   =
size=3D2>&nbsp;TITLE_CD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  NUMBER(3)</FONT> <BR><FONT face=3DArial size=3D2>. . . </FONT></P>   <P><FONT face=3DArial size=3D2>SQL&gt; select * from=20   ispownre3.individual_names;</FONT> <BR><FONT face=3DArial = size=3D2>select * from=20
  ispownre3.individual_names</FONT> <BR><FONT face=3DArial=20   =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb= sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb= sp;&nbsp;=20
  *</FONT> <BR><FONT face=3DArial size=3D2>ERROR at line 1:</FONT> =
<BR><FONT=20

  face=3DArial size=3D2>ORA-00904: invalid column name</FONT>=20
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3B929.641D10D0--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Bellow, Bambi
  INET: bbellow_at_chi.navtech.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Dec 02 2003 - 17:14:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US