Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] composite group runs out of TEMP tablespace

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] composite group runs out of TEMP tablespace


Chronological Thread 
  • From: Shilen Patel <>
  • To: "Hyzer, Chris" <>, "Morgan, Andrew Jason" <>, "" <>
  • Subject: Re: [grouper-users] composite group runs out of TEMP tablespace
  • Date: Thu, 3 Oct 2019 12:11:50 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=duke.edu; dmarc=pass action=none header.from=duke.edu; dkim=pass header.d=duke.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2fATl1ET/37YXPmDmUCGYxkzPTMphQ/4WFZE2JAKwd4=; b=JD6u/4iQc409ldbwl3CIXVNHDoNqF3Laqqz3UonCn00MmlMex/ZmqhRNy4j9Qx+bIhkujGi8H1C0NW9zZgatacDNolPLsBjhg3d7rhMVkiYbUaJPvHQ1Tp0dX9040Eu9435TM1AOyi3pu46+iYbR5O4X8EzyRnCNAvtTktgp2d5P7EVeJ0DC/H3X/dqAWCvppReg/NSaunMxI0gs5JuTuoQm0W94haOXuXgX6ERox1FAU1TYWQ0Po9xxYmsCGvlA40L/PiMe/x/TEXFTXhJBWFNfAyrGIhkmGDjPs3k6War7PGEXgWHyk30g0mPSOV96W8t4c0LGWPeXnOlkEjcWAQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OLept6vn0cWt43BTuSZFeqnJ++eMXhgfTJmhqyTV7+pgrbYcuOqkxJb6T4PzpvWT4cTyHX3S+opun4GW8SawCCUjwsPu+qTrceRKyZaNUnGP5PNgxRMOlhNU7H7KU6O4A0Xkbf7gUKr3mcxMowW+6AwhkYv8OsTnycguPIvF0ypuCIpoujKhzLgCclMvkI0wZOBzFV/8YK8ZRX5tsovLVEvtgfpZLhM5/CUGAF3xIPilElQ174xHN1YuFZ4DsnU8mJ4WBPYgvUUXoTgmHKhlnwxMOxQSaacsxDXbyOXmwe/s7AazH+nXJYXQgz5juaFaVEvtBWIZe2cs2GSaB9RRfw==

I would start with gathering stats.  What version of Oracle do you have?


EXEC DBMS_STATS.gather_schema_stats('schema'); 
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm

 

 

I just ran this query using two groups of similar sizes (37K and 18K) and the cost was 66 and no full table scans.  The results are returned in a second.

 

Thanks!

 

- Shilen

 

From: <> on behalf of "Hyzer, Chris" <>
Reply-To: "Hyzer, Chris" <>
Date: Wednesday, October 2, 2019 at 9:43 PM
To: "Morgan, Andrew Jason" <>, "" <>
Subject: RE: [grouper-users] composite group runs out of TEMP tablespace

 

I only have one full table scan and you have two.  Would gathering stats help?  Shilen do you have ideas? 😊

 

 

 

 

From: <> On Behalf Of Morgan, Andrew Jason
Sent: Wednesday, October 02, 2019 8:23 PM
To:
Subject: [grouper-users] composite group runs out of TEMP tablespace

 

When creating a composite that is an intersection (AND) of 2 groups, we get a SQLexception:

 

  ERROR spi.SqlExceptionHelper:  ORA-01652: unable to extend temp segment by 1024 in tablespace TEMP

 

The groups we are intersecting have approximately 37k and 12k members.

 

Our Oracle DBA showed that the following SQL query ended up consuming all 32GB of the TEMP tablespace doing a sort operation:

 

select distinct member0_.id as col_0_0_
from grouper_members member0_

cross join grouper_memberships_all_v membership1_
cross join grouper_memberships_all_v membership2_
where membership1_.owner_group_id=:1

      and membership2_.owner_group_id=:2

      and member0_.id=membership1_.member_id

      and member0_.id=membership2_.member_id

      and membership1_.field_id=:3

      and membership2_.field_id=:4

      and membership1_.immediate_mship_enabled='T'

      and membership2_.immediate_mship_enabled='T'

      and member0_.subject_source<>:5

 

I have attached a screenshot of the execution plan.

 

We are running Grouper v2.3 api patch 70 on Oracle database.

 

Is this a known issue?  Is there any additional data I can provide that will help us understand why this query is so bad?  🙂

 

Thanks,

 

Andy Morgan

Systems Administrator, Identity & Access Management

Information Services | Oregon State University




Archive powered by MHonArc 2.6.19.

Top of Page