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

query slow in 9i, but not slow in 8i

2004-03-02       - By Jonathan Lewis

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


True -

If work_area_policy = auto in 9.2, then the
pga_aggregate_target is used. Since this
defaults to 25M (better check that) and the
limit for a process is 5% of total, then the
v9 run is probably trying to do its sort with
1.25M, rather than the 90M used by 8i.

This would tend to explain a dramatic increase
in the run time. (But it 's a little surprising that
the estimated cost doesn 't really indicate this).
The session statistics for the v9 run should
show the 'workarea usage - multipass ' count
go up each time this query runs.

According to the Steve Adams ' formula, the
required memory for a one-pass sort would
be about 3M, rather than 1.25M (Based on
the assumption that the BYTES reported by
the execution plan is close to correct, and the
configuration is 8K blocks and default
sort_multiblock_read_count).


Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

The Co-operative Oracle Users ' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

March 2004 Hotsos Symposium - The Burden of Proof
Dynamic Sampling - an investigation
March 2004 Charlotte OUG (www.cltoug.org) CBO Tutorial
April 2004 Iceland
June 2004 UK - Optimising Oracle Seminar


-- -- Original Message -- --
From: "Niall Litchfield " <n-litchfield@(protected) >
To: <oracle-l@(protected) >
Sent: Tuesday, March 02, 2004 9:08 AM
Subject: RE: query slow in 9i, but not slow in 8i


I wondered about pga_aggregate_target as well? My impression was that if you
set the new parameters and the old ones the new ones took precedence (ie sas
etc were ignored). I haven 't tested this.

Niall Litchfield
Oracle DBA
Audit Commission
+44 117 975 7805



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