× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If you insist on doing it outside of the Domino server, then bring the 
server down and use the CPY.

Otherwise, there are some utilities to do this within the domino server, 
that can be started with SBMDOMCMD
http://www.akornn.com


Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 




David Gibbs <david@xxxxxxxxxxxx> 
Sent by: domino400-bounces+rob=dekko.com@xxxxxxxxxxxx
10/07/2003 03:44 PM
Please respond to
Lotus Domino on the iSeries / AS400 <domino400@xxxxxxxxxxxx>


To
domino400@xxxxxxxxxxxx
cc

Subject
Database in use when copying






Folks:

I'm trying to write a java class that will create a copy (or replica) of 
a database.

Originally (long time ago) I was trying to copy the database using the 
CL CPY command, which was failing most of the time because the database 
was in use.   When I posted the question, Walter Scanlan responded that 
I should use the API's to do the copies 
(http://archive.midrange.com/domino400/200108/msg00043.html) to avoid 
server lock issues.

Well, I'm trying this approach now ... but it's not working, for very 
similar reasons.

When I run the class (see below), I often get a NotesException with a 
error id of 553 "Database is currently in use by you or another user".

-------------------------
try {
                 // setup our notes environment
                 Session session = NotesFactory.createSession();
                 Database oldDB = session.getDatabase(null, oldDatabase);
                 newDB = oldDB.createCopy(null, newDatabase);
} catch (NotesException e) {
                 System.our.println("caught: " + e);
                 e.printStackTrace();
}
-------------------------

This java class is *NOT* running inside the Domino server ... but it is 
running as QNOTES, with the classpath, path, and library list set 
appropriately.

Any suggestions on how I can go about making a database copy outside of 
the Domino server.

Thanks!

david



_______________________________________________
This is the Lotus Domino on the iSeries / AS400 (Domino400) mailing list
To post a message email: Domino400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/domino400
or email: Domino400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/domino400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.