Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Change loader db name?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Change loader db name?


Chronological Thread 
  • 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" <>
Reply-To: "Hyzer, Chris" <>
Date: Thursday, October 31, 2019 at 10:17 AM
To: Richard Frovarp <>, " Mailing List" <>
Subject: Re: [grouper-users] Change loader db name?

 

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'
  and attribute_def_name_name2 = 'penn:etc:legacy:attribute:legacyAttribute_grouperLoaderDbName'

 

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
Sent: Monday, October 21, 2019 11:30 AM
To: Richard Frovarp <>; Mailing List <>
Subject: RE: Change loader db name?

 

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?  😊

-----Original Message-----
From: <> On Behalf Of Richard Frovarp
Sent: Thursday, October 17, 2019 2:17 PM
To: Mailing List <>
Subject: [grouper-users] Change loader db name?

Wondering what sort of chaos I will incur if I change the name of the
database that my loaders are using. I named the legacy database the
thing that I would now like the new one to use. If I go into the config,
I can change the name of the DB, but what will that do to the loaders I
already have defined? Do I just delete the loaders and start over? Small
change? Or do I just consider that name lost to time?

Thanks,

Richard




Archive powered by MHonArc 2.6.19.

Top of Page