grouper-users - Re: [grouper-users] Change loader db name?
Subject: Grouper Users - Open Discussion List
List archive
- From: Shilen Patel <>
- To: "Hyzer, Chris" <>, Richard Frovarp <>, " Mailing List" <>
- Subject: Re: [grouper-users] Change loader db name?
- Date: Thu, 31 Oct 2019 17:20:53 +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=T5KknJNHKk9tRnng33i6sFbDZbWar7Qz2vDHzBO80nc=; b=BLdAwxzN7c3DIChJVwPAonjR3ENuKIh1FJr5oHDjBg2vGEdDuBcIbCWUTMm6izuhy3+j110SatTiceknZJrZ2O7gNrgfjHeDJ5Nc4yX/KGJMc9S4cQs/aTRfIPhkXJwHmxroaMbDpluG4txbdO+cNleNxxDr48BQ2upLZV9i47ho7xKQN1mJ1Ij1rxehxcS7jcV7V5IEVuMe7EnbN8jHcXx+gd+MXwHDr4eNCvtmI+8qT9KRTjbtvbEiFaY+yy7znsBseg7h3coCM8FbF+vHpTu6DbRHdurHjmbgvsh+VekcpNEu+9gSO7E2Su4x2+EK8s5399wcoCLPjJqb/7krGg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IEzS0WbAvyfej6914M/m+66nqNql71bUldz8mkpHfn4TVF/+lTYAceBlIz062QSsfILkMf3UcoRzHUer2qO6I2Nqd28XMPOn43SlJwtKr3RNpsPhMS8bC73JTg4WwylTNKrThBMcJTUmUZMNybrOwrmB7PtV6JQ/DyeDVDq+vSKSrC+Bo9wINR/GHA+yTiBm//ijHjqGk0/7w4DacQjZ2jjPqNEKCOwwbIG1p2GuznMb9n7AA0q5BYz8FoeMwE65LxcZj/3WYqRR0oa1NSg5OaMfAIakXyFJxEBiMr8H7/DSq6EeHrpDsrhQH0n5NSSOhl52VByeBrv0NZaZpbeAJw==
I think since this is a direct DB update, the point in time data won’t be updated. So to do that:
update grouper_pit_attr_assn_value gaav set value_string = 'pennCommunity' where gaav.value_string='grouper' and gaav.ATTRIBUTE_ASSIGN_ID in (select aa.id from grouper_pit_attribute_assign aa where aa.source_id in (select gaaagv.attribute_assign_id2 from grouper_aval_asn_asn_group_v gaaagv where gaaagv.value_string = 'pennCommunity' and attribute_def_name_name2 = 'penn:etc:legacy:attribute:legacyAttribute_grouperLoaderDbName'));
It should update the same number of rows.
Thanks!
- Shilen
From:
<> on behalf of "Hyzer, Chris" <>
I did something like this:
Find loader jobs: select gaaagv.attribute_assign_id2 from grouper_aval_asn_asn_group_v gaaagv where gaaagv.value_string = 'grouper'
Update them: update grouper_attribute_assign_value gaav set value_string = 'pennCommunity' where gaav.ATTRIBUTE_ASSIGN_ID in (select gaaagv.attribute_assign_id2 from grouper_aval_asn_asn_group_v gaaagv where gaaagv.value_string = 'grouper' and attribute_def_name_name2 = 'penn:etc:legacy:attribute:legacyAttribute_grouperLoaderDbName');
From: Hyzer, Chris
You can add the new database, go to all loaders and change the name to the new one, delete the old, bounce. should be fine. right?
😊 |
- [grouper-users] Change loader db name?, Richard Frovarp, 10/17/2019
- RE: [grouper-users] Change loader db name?, Hyzer, Chris, 10/21/2019
- Re: [grouper-users] Change loader db name?, Hyzer, Chris, 10/31/2019
- <Possible follow-up(s)>
- Re: [grouper-users] Change loader db name?, Shilen Patel, 10/31/2019
- Re: [grouper-users] Change loader db name?, Richard Frovarp, 10/31/2019
- RE: [grouper-users] Change loader db name?, Hyzer, Chris, 10/31/2019
- Re: [grouper-users] Change loader db name?, Richard Frovarp, 10/31/2019
- RE: [grouper-users] Change loader db name?, Hyzer, Chris, 10/21/2019
Archive powered by MHonArc 2.6.19.