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-16       - By Jonathan Gennick

Reply:     <<     51     52     53     54     55     56     57     58     59     60     >>  

I 've been on the fence about whether to post the note below.
I think I 'll go ahead and post it, because it sums up as
best I can why I 'm so flummoxed over this issue. It 'll give
you an idea of where my head is at, though you might feel
that I have a rather strange way of looking at things.

To get any resolution, I 'm just going to have to go off in a
corner and reflect for awhile.

Friday, July 16, 2004, 11:05:24 AM, Poras, Henry R. (Henry_Poras@(protected)) wrote:
PHR > If we can
PHR > decide that the optimizer needs to be aware of the parenthesis, we are now
PHR > saying that we want our syntax to influence the execution plan and hence
PHR > performance. Ugh!!

Neither Stephen, nor I are trying to impose execution plans
on the optimizer.

With SQL you have the conceptual execution of a query versus
the actual execution performed by the database. Having the
proper conceptual model in mind is critical, because that 's
what you use when you actually write a SQL statement.

My mental model for subqueries in the FROM clause has
always been:

The outer SELECT operates against the rows
and columns returned by the subquery

Subquery merging breaks this model. That in itself wouldn 't
normally bother me, because it 's an optimization performed
by the database to get at my data more quickly. It bothers
me in this case though, because the optimization causes
behavior that does not conform to the mental model I just
gave above. (cognitive dissonance?)

What can I do? I can do at least two things:

* Adjust my mental model of how SQL, and especially
subqueries, works

* Decide whether I agree with the behavior, and build an
argument for whatever side of that question I ultimately
decide to fall on