grouper-users - RE: [grouper-users] composite group runs out of TEMP tablespace
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: Shilen Patel <>, "Morgan, Andrew Jason" <>, "" <>
- Subject: RE: [grouper-users] composite group runs out of TEMP tablespace
- Date: Fri, 4 Oct 2019 16:42:44 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=isc.upenn.edu; dmarc=pass action=none header.from=isc.upenn.edu; dkim=pass header.d=isc.upenn.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=FwVaK2yabhC3u3Mdn7nN1uHze+m0Hhs6anbEo4xTPwM=; b=jQjW5bb1vRUwbomzqPqaMWTJ19m2Cl6JTmpXsb1UfKjv92t1FFJrm/lqvoj0ZNs21kxoxeslL+00rLzCBxGErtAJ6FxCyZ+AjZe4yrdCQRZ2pvrP/cL+Fg94l3VOuHMyXv+9Pk9cWp2lA91GobxSoqHmPbC4VQAfv7/qcmYlYvB5LD5MJPsrvShS7MwVMsUTvN/kVvYBVQQDsRsGQpWnDaxxG1smOZ+0YU232zj4RfcMA6QK2jULFbZKQ37q0dG3oXmVAP8ri3KHWFWRPM62AKmUweOFp4wqn32Z+zlwegq7bx1k2L3OmqRwOjQB1cjb2xyA7KhJK2Ur/0vMdIdXiA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UJmQg25/DZl8wwzHiXBUhjfPwsqv0FtF+C61rbM+dyB8npXPQ+OYvxjQijcMmG4q1R3e6vQ0Tk2Jomr9EXag+NlR9kMqDVA9dUiPNPEySlHiVEt0cAWI3FI7Zs56yRQ5Oenr4JB8ddS+bO25CafWN0xrv/wzaTM9/Y7uA+7hLe9/UfaBBRVdSA4/8Im1Ic5Dw2820LJEwfspE6AWFfyJaQvPmjWIupEGcrEIxPlDbN92u7McZSbtxdY7myGh6ZQywZxQzKc5sivRhU821+08K1jkbcnLbYiNZUtD3dBiKanhV93YLmJ0tL79Na67A4bsBcZw6O8e9sR1rvNhr7HakA==
I ran: EXEC DBMS_STATS.gather_schema_stats('AUTHZADM');
I found two groups with 37k and 11k, and explained plan this (it took 21 seconds). There is still a full table scan in there, hmmm
From: Shilen Patel <>
I would start with gathering stats. What version of Oracle do you have?
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" <>
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
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_ cross join grouper_memberships_all_v membership1_
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 |
- [grouper-users] composite group runs out of TEMP tablespace, Morgan, Andrew Jason, 10/03/2019
- RE: [grouper-users] composite group runs out of TEMP tablespace, Hyzer, Chris, 10/03/2019
- <Possible follow-up(s)>
- Re: [grouper-users] composite group runs out of TEMP tablespace, Shilen Patel, 10/03/2019
- RE: [grouper-users] composite group runs out of TEMP tablespace, Hyzer, Chris, 10/04/2019
Archive powered by MHonArc 2.6.19.