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

Reply:     <<     31     32     33     34     35     36     37     38     39     40     >>  

Thursday, July 15, 2004, 10:32:41 AM, Stephen.Lee@(protected) (Stephen.Lee@(protected)) wrote:
> > because when I tried to execute it I
> > received an error that made me realize that
> > his query should not work at all.

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

No, seriously, unless somehow I pulled the wrong query from
your earlier email, it should not execute at all:

select /*+ NO_MERGE(Z) NO_PUSH_PRED(Z) PUSH_SUBQ(Z) */
distinct nbr_cc_fop_name into v_fop
from ( select nbr_cc_fop_name, nbr_cc_fop_high, nbr_cc_fop_low
from nbr_cc
where nbr_cc_fop_name in ( 'AX ', 'MC ', 'VI ', 'DS ')) Z
where to_number(trim(substr(p_corigid,1,20))) between
to_number(trim(nbr_cc_no_low))
and to_number(trim(nbr_cc_no_high));

Your subquery returns three columns: nbr_cc_fop_name,
nbr_cc_fop_high, and nbr_cc_fop_low. Your main query
references columns like nbr_cc_no_low and nbr_cc_no_high.
These columns do not exist in the results from the subquery.
When I execute the above query, I receive the following
error:

ERROR at line 8:
ORA-00904 (See ORA-00904.ora-code.com): "NBR_CC_NO_HIGH ": invalid identifier

This error is what I 'd expect.

Best regards,

Jonathan Gennick --- Brighten the corner where you are
http://Gennick.com * 906.387.1698 * mailto:jonathan@(protected)

Join the Oracle-article list and receive one
article on Oracle technologies per month by
email. To join, visit http://five.pairlist.net/mailman/listinfo/oracle-article,
or send email to Oracle-article-request@(protected) and
include the word "subscribe " in either the subject or body.

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