AHH!!  That's what I was missing.  Thanks Janna!!

Vincent Vu Nguyen


From: Janna Wemekamp [mailto:janna.wemek...@gmail.com]
Sent: Wednesday, January 23, 2013 10:32 PM
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] How to reset the PID gen

Hi Vincent,

Did you restart Fedora after updating the PIDGEN table?

I've successfully changed PIDGEN.highestID in my SQL DB (PostgreSQL) any number 
of times but had to restart Fedora to have it take effect.

HTH!

Janna

On 24/01/2013 2:26 PM, Nguyen, Vincent (CDC/OD/OADS) (CTR) wrote:
Thanks Serhiy,

I'm pretty sure that will work, but I was hoping to find out how to change the 
pidgen value.  How does fedora compute that value if not from the pidgen table?

If all else fails, I'll do it the way you mentioned.

From: Serhiy Polyakov [mailto:sp0...@gmail.com]
Sent: Wednesday, January 23, 2013 5:33 PM
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] How to reset the PID gen

Vincent,

Not sure about resetting the counter. Correcting in the database may be a 
problem as you found. But alternative procedure below may be used in some 
situations.

(1) Deposit the new object and it will be assigned unwanted PID.

(2) Export this object:

./fedora-export.sh localhost:8080 fedoraAdmin passwd PID:111 
info:fedora/fedora-system:FOXML-1.1 archive /home/user/my_export http

(3) Correct PID in the content of the export file (and optionally its filename) 
to the desired PID. Ensure there is no object with desired PID in Fedora.

(4) The trick is that ingest will assign PID from the exported file rather than 
from the counter:

./fedora-ingest.sh file /home/user/my_export/PID_222.xml 
'info:fedora/fedora-system:FOXML-1.1' localhost:8080 fedoraAdmin passwd http


Please let me know if this worked.


Serhiy Polyakov
University of North Texas


On Wed, Jan 23, 2013 at 1:30 PM, Nguyen, Vincent (CDC/OD/OADS) (CTR) 
<v...@cdc.gov<mailto:v...@cdc.gov>> wrote:
How do I reset or change the value in pidgen?  For example, if I had an object 
with the PID: changeme:123 and then purged it, and later wanted to ingest 
another object with THAT same PID of changeme:123?

I tried to manually update the Mysql table and set the value for highestID in 
pidgen to a lower value (ex: changeme:122) but when I ingested the new object, 
the new PID skipped over the one I wanted and was: changeme:124

Vincent Vu Nguyen


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012, HTML5, 
CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net<mailto:Fedora-commons-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users





------------------------------------------------------------------------------

Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,

MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current

with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft

MVPs and experts. ON SALE this month only -- learn more at:

http://p.sf.net/sfu/learnnow-d2d




_______________________________________________

Fedora-commons-users mailing list

Fedora-commons-users@lists.sourceforge.net<mailto:Fedora-commons-users@lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

--
Janna Wemekamp
NRM knowledge online<http://nrmonline.nrm.gov.au>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to