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 Poras, Henry R.

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

But wait, now we are getting into other problems. The object of the optimizer is
to determine the optimal physical access path to the data, in order to return
our desired result set. There are always numerous ways to ask the same query.
There are different SQL syntaxes which will always return identical result sets.
An ideal optimizer will be aware of these identities and always use the same,
optimal, execution plan regardless of how we phrased the query. Performance
shouldn 't be dependent on how we write the queries. It has been in the past as
optimizers aren 't perfect, but the goal is to move away from this. If we can
decide that the optimizer needs to be aware of the parenthesis, we are now
saying that we want our syntax to influence the execution plan and hence
performance. Ugh!!

Henry


-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of Stephen.Lee@(protected)
Sent: Friday, July 16, 2004 10:39 AM
To: oracle-l@(protected)
Subject: RE: to_number question



I think at the heart of the argument that the error should not occur (at
least MY opinion) is that we CAN impose an order on processing so that (A or
B) and C is not the same as A or (B and C), and the RDBMS is not allowed to
throw away the parenthesis and do the processing in any way it chooses.

So at least some folk around here don 't like the fact that it is OK for the
RDBMS to "throw away the parenthesis " in the case of a subquery when an
optimizer that is too smart for its britches can form a logically equivalent
query ... assuming no errors occur.

Maybe it 's a purely pragmatic thing based on what gives the best performance
most of the time. Whatever the reason, I haven 't been convinced that it has
any basis in relational theory. It seems to be nothing more than a
specification.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --