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) <= 97530)
  OR    (to_number(a.OSI_SRV_CODE_FROM) >= 97531 and
to_number(a.OSI_SRV_CODE_TO) <=  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) <= 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) <= 92526)", 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






======================= Confidentiality Statement ======================= 
The information contained in this message and any attachments is 
intended only for the use of the individual or entity to which it is 
addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL 
and exempt from disclosure under applicable law.  If you have received 
this message in error, you are prohibited from copying, distributing, or 
using the information.  Please contact the sender immediately by return 
e-mail and delete the original message from your system. 
===================== End Confidentiality Statement =====================  


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hamid Alavi
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to