If you need to uninstall and reinstall Service Registry, perform the following tasks before you reinstall:
If the Registry database contains data that you want to preserve, back up the database as described in Administering the Java DB Database.
Stop the Application Server domain for the Registry, then delete the domain. If you do not delete the domain, post-install configuration of the reinstalled Registry will fail.
If you need to reinstall the Service Registry database (for example, if the database becomes corrupted), follow the instructions in To Reinstall the Service Registry Database. You do not need to uninstall the database before you reinstall it.
Change to the ServiceRegistry-base/install directory.
Run the following command (all on one line):
Ant-base/ant -f build-install.xml Dinstall.properties=props-file appserver.domain.delete
where props-file is the path name of the copy of install.properties file that you edited in To Configure Service Registry as Root Using Custom Properties After a Configure Later Installation or To Configure Service Registry as a Non-Root User Using Custom Properties After a Configure Later Installation.
This target stops the domain and then deletes it.
This task deletes the existing database contents, including the registered users, and recreates the default database.
Change to the ServiceRegistry-base/install directory.
Run the following command (all on one line):
Ant-base/ant -f build-install.xml Dinstall.properties=props-file install.db
Run the following command (all on one line):
Ant-base/ant -f build-install.xml Dinstall.properties=props-file appserver.domain.stop export.registryOperatorCert install.cacerts appserver.domain.start