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

SQL Tuning -- large, long-running outer join query

Thomas Jeff

2006-01-19

Replies:
We have this purchased app that is generating the following query.  It
runs
for 8 hours then crashes due to ORA-1555. I'm reluctant to tinker with
the undo settings or increase the undo tablespace size, as it appears
from
longops that this thing would likely run for another 7-8 hours before
completing.  I'm at a loss on how to tune this -- I can't touch the
physical structure, and I don't know enough to see any hints that could
possibly help.  

Any ideas?


SELET (boatload of columns)
FROM
TS_SALES_ORDLNS,   /*   465,175 rows, 20,930 blocks   */
OD_SALES_ORDLNS,   /* 18,733,125 rows, 1,247,303 blocks */
IA_SALES_ORDLNS,   /* 18,631,135 rows, 603,410 blocks  */
TS_SALES_ORDLNS_HD, /*   474,465 rows, 25,819 blocks   */
TS_SALES_ORDLNS_LN /*   472,645 rows, 14,043 blocks   */
WHERE
TS_SALES_ORDLNS.SALES_ORDER_NUM = TS_SALES_ORDLNS_HD.SALES_ORD_NUM(+)
AND TS_SALES_ORDLNS.SALES_ORDER_ITEM =
TS_SALES_ORDLNS_HD.SALES_ORD_ITEM(+)
AND TS_SALES_ORDLNS.SALES_ORDER_NUM =
TS_SALES_ORDLNS_LN.SALES_ORD_NUM(+)
AND TS_SALES_ORDLNS.SALES_ORDER_ITEM =
TS_SALES_ORDLNS_LN.SALES_ORD_ITEM(+)
AND TS_SALES_ORDLNS.KEY_ID = OD_SALES_ORDLNS.KEY_ID(+)
AND TS_SALES_ORDLNS.KEY_ID =IA_SALES_ORDLNS.KEY_ID(+);


------------------------------------------------------------------------
----------------------
| Id | Operation              | Name           | Rows |
Bytes |TempSpc| Cost |
------------------------------------------------------------------------
----------------------
|  0 | SELECT STATEMENT         |               |  465K|
778M|     | 2246K|
|  1 | NESTED LOOPS OUTER       |               |  465K|
778M|     | 2246K|
|  2 |  NESTED LOOPS OUTER       |               |  465K|
379M|     | 1130K|
|* 3 |   HASH JOIN OUTER        |               |  465K|
185M|  144M| 14070 |
|* 4 |   HASH JOIN OUTER       |               |  465K|
139M|  124M| 7336 |
|  5 |    TABLE ACCESS FULL     | TS_SALES_ORDLNS    |  465K|
118M|     | 3178 |
|  6 |    TABLE ACCESS FULL     | TS_SALES_ORDLNS_LN  |  472K|
20M|     | 2133 |
|  7 |   TABLE ACCESS FULL      | TS_SALES_ORDLNS_HD  |  474K|
47M|     | 3920 |
|  8 |   TABLE ACCESS BY INDEX ROWID| IA_SALES_ORDLNS    |   1 |
436 |     |   3 |
|* 9 |   INDEX RANGE SCAN       | I01_IA_SALES_ORDLNS |   1 |
|     |   2 |
| 10 |  TABLE ACCESS BY INDEX ROWID | OD_SALES_ORDLNS    |   1 |
899 |     |   3 |
|* 11 |   INDEX RANGE SCAN       | I01_OD_SALES_ORDLNS |   1 |
|     |   2 |
------------------------------------------------------------------------
----------------------

Predicate Information (identified by operation id):
---------------------------------------------------

 3 -
access("TS_SALES_ORDLNS"."SALES_ORDER_NUM"="TS_SALES_ORDLNS_HD"."SALES_O
RD_NUM"(+) AND

"TS_SALES_ORDLNS"."SALES_ORDER_ITEM"="TS_SALES_ORDLNS_HD"."SALES_ORD_ITE
M"(+))
 4 -
access("TS_SALES_ORDLNS"."SALES_ORDER_NUM"="TS_SALES_ORDLNS_LN"."SALES_O
RD_NUM"(+) AND

"TS_SALES_ORDLNS"."SALES_ORDER_ITEM"="TS_SALES_ORDLNS_LN"."SALES_ORD_ITE
M"(+))
 9 - access("TS_SALES_ORDLNS"."KEY_ID"="IA_SALES_ORDLNS"."KEY_ID"(+))
11 - access("TS_SALES_ORDLNS"."KEY_ID"="OD_SALES_ORDLNS"."KEY_ID"(+))




------------------------------------------------------------------------
------
Jeffery D Thomas
DBA
Enterprise Database and Middleware Services
Thomson, Inc.

Email: jeff.thomas@(protected)

EDMS Portal:
http://indysaixdb01.indy.tce.com:7778/portal/page?_pageid=53,44513,53_44
669&_dad=portal&_schema=PORTAL
------------------------------------------------------------------------
------

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