Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

create repository problem

Hi,

I am facing a problem. I am using the code as below and I am getting the exception: Unable to modify database

I am using the java code as below:

CreateRepositoryCommand createRepCmd =

new CreateRepositoryCommand(tutServices.pool);

createRepCmd.setDBMSUserName(dbmsUser);

createRepCmd.setDBMSUserPassword(dbmsPasswd);

createRepCmd.setPort(portNumber);

createRepCmd.setPartition(3);

createRepCmd.setSession(tutServices.serverSessionId);

createRepCmd.setRepositoryIdentifier(targetRepId);

try {

createRepCmd.execute();

System.out.println("Execution of CreateRepositoryCommand successful.");

} catch (CommandException e) {

System.out.println("Failed to execute the CreateRepositoryCommand");

e.printStackTrace();

}

Any pointers as what I am doing wrong?

Thanks,

Neeraj

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question