Create DB and set ReplicaID

N.B. Platform = Solaris.

We are developing a process where the user can create a database on a server, but without having Create New Databases or Create New Replicas access to the server.

In effect once the user has raised the request and it has been approved we want to create a new db stub on the server via a background agent and then set the ReplicaID to the one they have requested to install. This means they will simply be able to replica their database with the server.

There are a few examples over the normal sources (OpenNTF, etc) that outline how to set a database ReplicaID, however they are all for WIN32 and we are on Solaris. They are also mostly for creating Replicas of a database and we won’t have the source database available as it would require the user to have the security access we don’t want them to have.

Can anyone point me at a good example of:

  1. Create a blank database

  2. Setting the ReplicaID

The code must

  1. Be LotusScript calling the C API commands

  2. Work with Solaris 9

  3. Not use the NSFDbCreateAndCopy() command

Thanks

Stuart

Subject: Create DB and set ReplicaID

why not use the NotesAdministrationProcess class to create an AdminP request?

notesAdministrationProcess.CreateReplica

look it up in designer help, it should work for you

Subject: RE: Create DB and set ReplicaID

I’m sure that would work if I wanted to create a replica of a database, but since I want to create just a replica stub then it won’t!