Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
to_number question

to_number question

2004-07-15       - By Stephen.Lee@(protected)
Reply:     <<     31     32     33     34     35     36     37     38     39     40     >>  

> -- --Original Message-- --
> You wouldn 't happen to have CREATE TABLE statement handy,
> with some INSERTs to generate some sample data, would you?
> I 'd really like to recreate your scenario on my own system.

I do not. The char(18) columns nbr_cc_no_low and nbr_cc_no_high hold number
ranges. Apparently, there are (or have been) oddball ranges that use
letters. Either that, or the column has some ad hoc entries somebody stuck
in there for some reason or another (somebody slap that guy). The
nbr_cc_fop_name is a varchar2(6). The two columns nbr_cc_no_low and
nbr_cc_no_high work with the nbr_cc_fop_name to define valid ranges for a
particular type nbr_cc_fop_name. The table itself has 50388 rows.
Approximately 100 of the rows have entries that will break to_number. The
rows of interest -- those where nbr_cc_fop_name in ( 'AX ', 'VI ', 'MC ', 'DS ') --
make up 13 rows, and they are all valid for to_number. I have a feeling
that a BIG part of what is tripping me up is the fact that there is an index
on nbr_cc_no_high but not on nbr_cc_fop_name (and not nbr_cc_no_low ...
don 't look at me, I didn 't design this). I suspect that the optimizer has
fallen in love with that juicy, ripe index.

The p_corigid are values coming from another table. What I have to do is
populate dev and test with something like:

copy from joe/blow@(protected) insert xyz using select this, that, doink(corigid),
some_more from schema.xyz;

And for you fans of normalization, you might notice that the doink function
has to apply the dummy numbers to only part of the "other " argument while
leaving part of it unchanged. Which should tell you that this single column
contains more that one piece of info. Ain 't that great! (I just work
here.)

> because when I tried to execute it I
> received an error that made me realize that
> his query should not work at all.

I swear I can hear the Twilight Zone theme song playing.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --