Home
All Oracle Error Codes
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

Re: association operator (=>) and SQL

jaromir nemec

2005-04-17

Hi chaim,

> We're working with an overloaded Oracle supplied function.

maybe a wrapper function could be a solution for the problem, see example
below.

Regards,

Jaromir D.B. Nemec

--- usage of a wrapper function to workaround overloaded function problem
SQL> @x
SQL> ---
SQL> CREATE or replace PACKAGE p IS
2  FUNCTION foo (arg1 varchar2) RETURN varchar2;
3  FUNCTION foo (arg2 varchar2) RETURN varchar2;
4 END;
5 /

Package created.

SQL> CREATE or replace PACKAGE BODY p IS
2  FUNCTION foo (arg1 varchar2) RETURN varchar2 IS BEGIN RETURN 'Hello
arg1'; END;
3  FUNCTION foo (arg2 varchar2) RETURN varchar2 IS BEGIN RETURN 'Hello
arg2'; END;
4 END;
5 /

Package body created.

SQL> -- this fails
SQL> select p.foo(0) from dual;
select p.foo(0) from dual
    *
ERROR at line 1:
ORA-06553: PLS-307: too many declarations of 'FOO' match this call


SQL> --
SQL> create or replace function wrap(a varchar2, b varchar2) return varchar
2 is
3 begin
4  if b is null
5  then return p.foo(arg1=>a);
6  else return p.foo(arg2=>b); end if;
7 end;
8 /

Function created.

SQL> -- but this is OK
SQL> select wrap(NULL,'x') from dual;

WRAP(NULL,'X')
--------------------------------------------------------------------------------
Hello arg2

SQL> select wrap('x',NULL) from dual;

WRAP('X',NULL)
--------------------------------------------------------------------------------
Hello arg1

----- Original Message -----
From: <Katz.C@(protected)>
To: <lex.de.haan@(protected)>
Cc: <oracle-l@(protected)>


--
http://www.freelists.org/webpage/oracle-l