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

Home -> Community -> Mailing Lists -> Oracle-L -> ORA-01722

ORA-01722

From: Hamid Alavi <hamid.alavi_at_quovadx.com>
Date: Sun, 21 Apr 2002 11:33:20 -0800
Message-ID: <F001.0044A7A4.20020421113320@fatcity.com>


Hi List,
I have a strange problem for ONLY one table in entire database, when run the following query got ORA - 01722 and when I drop the table and rebuild it it's running OK,
Any Idea?
this is the query which I run:

select count(*)

 	 from (select osi_srv_code_from, osi_srv_code_to
     		from op_service_info_osi where OSI_TASK_ID = ? and 
       		substr(OSI_SRV_CODE_FROM, 1, 1) = '9' AND
substr(OSI_SRV_CODE_TO, 1,1)='9' ) a
		 where
       	(to_number(a.OSI_SRV_CODE_FROM) = 97001 and
to_number(a.OSI_SRV_CODE_TO) = 97001)
  OR    (to_number(a.OSI_SRV_CODE_FROM) >= 97002 and
to_number(a.OSI_SRV_CODE_TO) &lt;= 97530)
  OR    (to_number(a.OSI_SRV_CODE_FROM) >= 97531 and
to_number(a.OSI_SRV_CODE_TO) &lt;=  97750)
  OR    (to_number(a.OSI_SRV_CODE_FROM) = 97003 and
to_number(a.OSI_SRV_CODE_TO) = 97003)
  OR    (to_number(a.OSI_SRV_CODE_FROM) >= 97004 and
to_number(a.OSI_SRV_CODE_TO) &lt;= 97530)
  OR    (to_number(a.OSI_SRV_CODE_FROM) = 97535 and
to_number(a.OSI_SRV_CODE_TO) = 97535)
  OR    (to_number(a.OSI_SRV_CODE_FROM) = 92056 and
to_number(a.OSI_SRV_CODE_TO) = 92056)

  OR (to_number(a.OSI_SRV_CODE_FROM) >= 92057 and to_number(a.OSI_SRV_CODE_TO) &lt;= 92526)&quot;, exception: ORA-01722: invalid number

oracle 8.1.7 sun OS5.7, I have the same problem on 8.1.6 version TOO.

Hamid Alavi
Office 818 737-0526
Cell 818 402-1987

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Hamid Alavi
  INET: hamid.alavi_at_quovadx.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Sun Apr 21 2002 - 14:33:20 CDT

Original text of this message

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