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: "Hyzer, Chris" <>
  • To: Richard Frovarp <>, " Mailing List" <>
  • Subject: RE: [grouper-users] Change loader db name?
  • Date: Thu, 31 Oct 2019 20:42:49 +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=rBxdG/wVKEYSe37leAUJ+UcxTqit0XVYJzX3S5juvE0=; b=IkL5cjupYNEOgr0cwpjMWxjdccPN/qGiKqUrwSFXoURaHRTjdUn3Bo0Bs5+N/MklIpOwF9e390ooq4AvImLBG3bJvvFoRWAam4nHgR2eOUkULMlET4H0dcdl4OPnxbOJ4kufJc1Ag05R8P3ncHwBrAjEnL0fkqFYIQ2+OsSrOtYuQXtU7+NbydomYkKoZIbTsQMY587HeInRi6DDVcQ0FV2pp4L6x1glerPZuFuXxK1j8KDnhQHiPATZdYrSmFHBAe2fTv2wKB4rqXeMyKg3QmvNMm/QKsiw3bx1efWX88/pBtDjOAPmMP+2OYFEVY/XTW8aXeMgfGA4fwBNaymLlg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CpKrXCPmqzD6ZnuwMTFRv+mcJLQj4a9bqPjDklVbfooJ/8HLEy6N275Qhk9mpGVeiT5NiCFpPZlwQWWBIKzeoJc1blQao8FUuVIXo5romB++UK1W0fsSn/J5txu6aWGN6jx+Zi1MUC541tCObC5pU2XqVGCNFiXaSuva0NEQArB6yfChSgMWXUyOuebxFYko3qj925672+CDEfl9hs+3uxYR/pUPriDSXP9d+0ezn/rL6xJ+UjK96V8PwuZuym4ZNpry6GLGF0gYcECoPqt2Zpe4zd7nrGcDyh68f0lGJuZSYw8T1FLgcUi/d7uivVxfu/AwvIULIvgX0LdLqzYHDw==

I ran those queries and they updated the PIT tables since I just did exactly what you did 😊.  If you don’t do that then your tables will be corrupt 😊

 

From: <> On Behalf Of Richard Frovarp
Sent: Thursday, October 31, 2019 1:29 PM
To: Mailing List <>
Subject: Re: [grouper-users] Change loader db name?

 

I was able to follow Chris' suggestion. Don't know about point in time data, but it was outside of my concern. Thanks for all of the advice.

 

On 10/31/19 12:20 PM, Shilen Patel wrote:

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 ,
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