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: Lag function problem was: Never ending activity in temp file

Gints Plivna


> For your particular query you can tune it, by specifying partition
> clause, and thus limiting the size of the analytic window.=20
I'll try partition clause. And I tried a bit also lead function,
appeared it hadn't such problems (of course I can somehow order
everything vice versa and try lead).

> But I guess what you are really want to ask is: if for particular ID
> there is more than one row, give me the code of the first row, else
> give me value of current row.
this is oversimplified example just to show performance problems. The
real problem generally was, to count all codes for particular persons,
but in a following manner:
if person has code 'LVA' then count it and only it.
if person hasn't code 'LVA' then count all other codes particular person ha=

So to avoid exists clause, self join or something similar I tried to
partition source table (actually join from many tables) by person id
and order by code in a manner that 'LVA' always comes first.
Then for each person I'll look back and see if this is new person,
then I count the code. If this is the same person as in previous row,
then I'll look back for this person first code, if it is 'LVA' then I
don't count code, else count it.

In this report I had to simply count codes, in other reports I'll have
to join them to other dimensions and count somehow even more complex
for example by address or sex.

And I see that here is the real power of analytic functions,
especially if they worked as I imagined :)))

> Like Tom Kyte says "Tune the question, not the query".=20
Of course that's true.