Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Parallel query on when it's not supposed to be (?)
Janine, yes, for that table, do:
alter table table_name parallel (degree 1);
and also set parallel_max_servers to 0, as the other Mark suggested.
Um, the table w/ degree set to default, was that table involved in the problem query you described in the original post?
-----Original Message-----
From: Janine A Sisk [mailto:janine_at_furfly.net]
Sent: Tuesday, September 14, 2004 4:20 PM
To: Bobak, Mark
Cc: oracle-l_at_freelists.org
Subject: Re: Parallel query on when it's not supposed to be (?)
Here you go:
SQL> select table_name from dba_tables where degree >1; select table_name from dba_tables where degree >1
*ERROR at line 1:
SQL> select index_name from dba_indexes where degree >1;
no rows selected
The error turned out to be because degree is a varchar2(10) in=20 dba_tables, so I did this instead:
SQL> select distinct degree from dba_tables;
DEGREE
1
DEFAULT
Interesting... I think the DEFAULT might be the problem, because the=20
tables that have this set are very closely related to this query. =20
Should I change them to 1? Actually, neither of those values is=20
exactly as it appears:
SQL> select distinct '|' || degree || '|' from dba_tables;
'|'||DEGREE||'|'
thanks,
janine
On Sep 14, 2004, at 4:10 PM, Bobak, Mark wrote:
> Janine,
>
>
>
> >
>
>
>
>
> NAME TYPE VALUE
> ------------------------------------ -------=3D20
> ------------------------------
> fast_start_parallel_rollback string FALSE
> optimizer_percent_parallel integer 0
> parallel_adaptive_multi_user boolean FALSE
> parallel_automatic_tuning boolean FALSE
> parallel_broadcast_enabled boolean FALSE
> parallel_execution_message_size integer 2152
> parallel_instance_group string
> parallel_max_servers integer 5
> parallel_min_percent integer 0
> parallel_min_servers integer 0
> parallel_server boolean FALSE
>
> NAME TYPE VALUE
> ------------------------------------ -------=3D20
> ------------------------------
> parallel_server_instances integer 1
> parallel_threads_per_cpu integer 2
> recovery_parallelism integer 2
>
>
>
>
>
=20
> =3D
> =3D20
> :Q428002
> 5 4 TABLE ACCESS* (BY INDEX ROWID) OF 'ACS_RELS'=20
> (Cost=3D20
> :Q428000
> =3D3D17 Card=3D3D65 Bytes=3D3D780)
>
> 6 5 INDEX (RANGE SCAN) OF =
'ACS_RELS_OBJECT_ID_ONE_ID
> X' (NON-UNIQUE) (Cost=3D3D1 Card=3D3D65)
>> (Cost=3D3D46=3D20
> 7 4 TABLE ACCESS* (FULL) OF 'MEMBERSHIP_RELS' =3D
>> 'DOTLRN_MEMBER_RELS_REL_ID_P=3D20
> 8 3 INDEX* (UNIQUE SCAN) OF=20
> > >> NO_EXPAN
> 2 PARALLEL_TO_SERIAL SELECT /*+ PIV_SSF */=3D20
> SYS_OP_MSR(COUNT(A1.C0
> )) FROM (SELECT /*+ ORDERED=20
>> FR
> 3 PARALLEL_COMBINED_WITH_PARENT
> 4 PARALLEL_COMBINED_WITH_PARENT
> 5 PARALLEL_FROM_SERIAL
> 7 PARALLEL_TO_PARALLEL SELECT /*+ Q428001 NO_EXPAND=3D20
> ROWID(A1) */ A1
> ."REL_ID" C0,A1."MEMBER_STATE" C1=20
>
> 8 PARALLEL_COMBINED_WITH_PARENT
>
>
>
> Rows Row Source Operation
> ------- ---------------------------------------------------
> 1 SORT AGGREGATE
> 0 SORT AGGREGATE
> 0 NESTED LOOPS
> 0 HASH JOIN
> 0 TABLE ACCESS BY INDEX ROWID ACS_RELS
> 109 INDEX RANGE SCAN (object id 26428)
> 0 TABLE ACCESS FULL MEMBERSHIP_RELS
> 0 INDEX UNIQUE SCAN (object id 26694)
>
>
>
> SERV STATUS PID SPID SID SERIAL#
> ---- --------- ---------- --------- ---------- ----------
> P000 AVAILABLE 24 5175
> P001 AVAILABLE 26 5177
> P002 AVAILABLE 27 5179
> P003 AVAILABLE 28 5181
> P004 AVAILABLE 29 5183
>
>
>
>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Sep 14 2004 - 15:24:06 CDT
![]() |
![]() |