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 Dan Tow
Reply:     <<     41     42     43     44     45     46     47     48     49     50     >>  

response inline, below:

Dan Tow
650-858-1557
www.singingsql.com


Quoting Wolfgang Breitling <breitliw@(protected) >:

> Quoting Jonathan Gennick <jonathan@(protected) >:
>
> > Astounding. It 's also astounding I 've never run into this
> > issue before. It 's not like I never write subqueries.
> >
> It should not be too astounding. If you design your system properly and use
> the
> correct column types for the data ( number types for numbers, date types for
> dates ) then you do not run into this issue.
>
> Which is also why I am not in favour of Dan (Tow) 's suggestion that the
> database engine work overtime to work around those cases of poor design.
> There
> are other, better ways of dealing with them. You need to be aware of the
> issues
> and the solutions, however.

Hey, I 'm all for good design, but finding bad design is not an excuse for
database functional (not just performance) behavior that changes without
warning just because the database decides to start taking a different path to
the data, nor errors that only apply to rows the database shouldn 't be
returning, anyway. Yes, it *is* true (as in this case) that *some* of the
otherwise-useless errors that result with the current Oracle behavior point to
bad database design, and it 's not altogether useless to have something point
out that bad design. However, not *all* errors that result from failing to
check the other predicates before deciding it 's *really* an error point to
database design errors. Even if they all did, *database design errors happen in
the real world, and we can 't always make them go away even when they are
pointed out*. From a practical perspective, how often do you suppose the random
person seeing an error like this is going to *know* it points to a database
design error, and is going to do all that it takes to rectify that design
error?!

BTW, just to show my sincerity about abhorring database design errors, I *do*
think that SQL should have an optional mode (alter session set ..., or an
init.ora parameter for the whole database) where implicit type conversions
(e.g., a.CharTypeCol=b.NumberTypeCol) are simply not allowed, resulting in
errors at *parse* time - this, used during development, would catch a great
many design column-type errors very early in the development stage, *before* it
is too late, rather than waiting for millions of rows of production data to
finally result in a row that fails the conversion, when it is generally
super-expensive at best to fix the error at the design level.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --