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
A Cure for Madness

A Cure for Madness

2004-09-02       - By Lex de Haan

Reply:     <<     11  

in case this message arrives twice, my apologies. I removed some quoting
this time ;-)

I agree Niyi -- just to add my two cents:

The SQL language is missing/lacking functionality to implement this
properly.
in relational algebra, "(R WHERE P) WHERE Q " is logically equivalent with "R
WHERE P AND Q " which is also equivalent with the other two permutations.

Obviously, the example that started this thread shows that SQL doesn 't have
corresponding syntax -- because apparently there are cases where these
transformations are *not* allowed.

See bug 2235753 for an interesting similar case (unfortunately most, if not
all, of the bug text is hidden I believe) and I think the only "workaround "
in Oracle is to use hints like NO_MERGE or ORDERED_PREDICATES.

I don 't think we would like the Oracle optimizer to stop considering
subquery flattening, view merging, and predicate pushing in all "possibly
suspect " cases, right?

Kind regards,
Lex.

-- ---- ---- ---- ---- ---- ---
visit http://www.naturaljoin.nl
-- ---- ---- ---- ---- ---- ---
skype me <callto://lexdehaan >

-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of Niyi
Sent: Wednesday, September 01, 2004 23:28
Subject: Re: Re[2]: A Cure for Madness

I personally think Oracle 's to_number is working as it should, throwing an
exception if you try to convert an invalid number, not SILENTLY converting
it to null. The fundamental issue here is with predicate ordering
determining the result of a query. I don 't know the solution to this issue,
but I know that to_number is just one of the scenarios that can run into
it.


-- Binary/unsupported file stripped by Ecartis --
-- Type: text/x-vcard
-- File: Lex de Haan.vcf


---
To unsubscribe - mailto:oracle-l-request@(protected)&subject=unsubscribe
To read recent messages - http://freelists.org/archives/oracle-l/09-2004