grouper-users - RE: [grouper-users] Preparing the Grouper db
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Earl Lewis <>, "" <>
- Subject: RE: [grouper-users] Preparing the Grouper db
- Date: Fri, 15 Mar 2013 17:22:12 +0000
- Accept-language: en-US
- Authentication-results: sfpop-ironport01.merit.edu; dkim=neutral (message not signed) header.i=none
The best way is probably to export from hsql and import to oracle with GSH: https://spaces.internet2.edu/display/Grouper/Import-Export This will do all the data, stems and everything else. If you just want some stems, you could query grouper_stems from hsql, and generate a GSH script that looks like this: grouperSession = GrouperSession.startRootSession(); new StemSave(grouperSession).assignName("a:b:c").assignSaveMode(SaveMode.INSERT_OR_UPDATE).assignDisplayExtension(“Friendly extension”).assignDescription(“Some
description”).assignCreateParentStemsIfNotExist(true).save(); new StemSave(grouperSession).assignName("a:b:d").assignSaveMode(SaveMode.INSERT_OR_UPDATE).assignDisplayExtension(“Friendly extension2”).assignDescription(“Some
description2”).assignCreateParentStemsIfNotExist(true).save(); etc. Ok? Thanks, Chris From: [mailto:]
On Behalf Of Earl Lewis We've spent some time messing around with Grouper and the hsql database that installs by default. We've built out a test folder hierarchy in that hsql db and
are wondering about moving it to another database backend. We've successfully setup the hibernate connection to talk to an Oracle backend and also been able to get the DDL script to run successfully to create the Oracle schema. In fact, we were actually able to use the hsql db .script file to load data into the Oracle database and this seemed to work, at least initially. We had to disable/re-enable
all the primary/foreign key constraints in order for it to load up but that actually seemed to work fine. Once the database was running for a while hibernate started throwing some errors and everything eventually came crashing down. We were seeing an error
in the catalina.out logs that looked like this: "java.sql.BatchUpdateException: ORA-00001: unique constraint (GROUPER.MEMBERSHIP_UNIQ_IDX) violated". The database kept running but the Grouper UI stopped running and would not restart once these errors started. Obviously there were some troubles with the data
that we loaded in and don't necessarily want to try to resolve this particular problem. It seems pretty clear from the error that we were generating conflicting data (groups, members, memberships, etc.) somehow. What I would like to do is salvage the folder structure from our hsql db by trying to load just the "stems" data into the Grouper database. I can truncate all
the tables and try it but what I guess I'm wondering is what kind of seed data does Grouper need to be able to allow this kind of "jump start"? If it's not possible so be it, we'll just start with a fresh database and go from there. One thing I noticed is that in the instructions for "preparing for production" there are clear instructions for getting the Oracle database setup. I followed
these and they all worked great. The thing that I didn't see is if there is any sort of seed data required to start with a fresh database (besides setting up the subject source)? |
- [grouper-users] Preparing the Grouper db, Earl Lewis, 03/14/2013
- RE: [grouper-users] Preparing the Grouper db, Chris Hyzer, 03/15/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/15/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/15/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/21/2013
- FW: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/25/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/29/2013
- FW: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/25/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/15/2013
- <Possible follow-up(s)>
- Re: [grouper-users] Preparing the Grouper db, mchyzer, 03/16/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/18/2013
- RE: [grouper-users] Preparing the Grouper db, Chris Hyzer, 03/18/2013
- Re: [grouper-users] Preparing the Grouper db, Earl Lewis, 03/18/2013
- Re: [grouper-users] Preparing the Grouper db, mchyzer, 03/30/2013
- RE: [grouper-users] Preparing the Grouper db, Chris Hyzer, 03/15/2013
Archive powered by MHonArc 2.6.16.