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: query slow in 9i, but not slow in 8i -- solved

Guang Mei

2004-03-02

Replies:
I finally had chance to test various things for my orginal slow query. I
bounced the 9i db to make sure that I have a fresh db to start with. Here
are the things I tried:

1. I tried to set workarea_size_policy to manual, leaving all other stuff
unchanged. The query still slow, I had to kill the session.

2. Keep workarea_size_policy to AUTO, which is default, change
pga_aggregate_target to 1000M . The query still slow, I had to kill the
session.

3. Keep workarea_size_policy to AUTO, and keep pga_aggregate_target to 25M
(set in init.ora), but add hint
/*+ USE_HASH(identifier) */. The query took about 3 minutes to finish! So
the work around for this particular query in 9i in to add a hint.

BTW, I also found that "Query Duration" not accurate (and I don't know how
to get accurated Query Duration except putting time stamp before and after
query). Uudo TS is 6G in 9i which should be good enough since we don't have
too many processes running. (Our 8i db has 4G temp TS and it is running
perfectly fine).

Finally, many thanks to all the people who have helped!

Guang


-----Original Message-----
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)
Pacheco
Sent: Tuesday, March 02, 2004 2:36 PM
To: oracle-l@(protected)
Subject: Re: query slow in 9i, but not slow in 8i


The problem here is you are doing several things
like != what is forcing to do full scans

What I'll try if this query is really important is
-- Create indexes on all columns you query, toget a full index scan instead
a full table scan.
-- Be sure, there is an index on nvl(seqtable.valid, 'Y')
-- test to add to pid is not null to nvl(pid,'~') ='~' and create a index on
that

I think you have to optimize the access table by table, and then the order
of tables, I agree you should try to find a way, if possible, to avoid
distinct.

----- Original Message -----
From: "Jamadagni, Rajendra" <Rajendra.Jamadagni@(protected)>
To: <oracle-l@(protected)>
Sent: Tuesday, March 02, 2004 3:29 PM
Subject: RE: query slow in 9i, but not slow in 8i


removing redundant "distinct" might help in this query too ...

Raj
----------------------------------------------------------------------------
----
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
select standard_disclaimer from company_requirements;
QOTD: Any clod can have facts, having an opinion is an art !


-----Original Message-----
Guang Mei wrote:

> I understand that the cost value does not mean anything. But from my
> experience, when I see a query's cost from explain plan reaches six
> digits, usually something is not right.
>
> Anyway the actual query has much more stuff in it. The sql I showed in my
> orginal post was only part of it and that was the part that slowed the
thing down.
> I can not run the sql on 9i now since they are other stuff running. But
> the orgianl complex query took 20 minutes to finish on 8i, and the
> exact query produced this in 9i's alert log file:
>
> ORA-01555 caused by SQL statement below (Query Duration=199335 sec, SCN:
> 0x0000.01db218e):
> Sun Feb 29 23:20:46 2004
> select distinct accession, id
> from   (
> select distinct to_char(PID) accession, identifier.ID
> from   mt.genbankinfo, mt.seqtable, mt.identifier
> where  seqtable.ID = genbankinfo.SeqtabID
>      and   seqtable.GeneID = identifier.GeneID
>      and   PID is not null
>      and   identifier.type != 'A'
>      and   identifier.speciesid in
> (24,31,2,19,18,17,23,21,27,32,20,34,30,22,25,26,28,29)
>      and   nvl(seqtable.valid, 'Y') != 'N'
> union all
> select distinct upper(strings.strtok(protein_id, '.')) accession,
>      identifier.id
> from   mt.genbankinfo, mt.seqtable, mt.identifier
> where  seqtable.ID = genbankinfo.SeqtabID
>      and   seqtable.GeneID = identifier.GeneID
>      and   protein_id is not null
>      and   identifier.t
> .....
----------------------------------------------------------------
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
-----------------------------------------------------------------

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