9 Managing Oracle Unified Directory as a Windows Service
You can enable or disable the Oracle Unified Directory server as a Microsoft Windows service.
Topics:
9.1 Managing the Oracle Unified Directory Server as a Windows Service
Use the windows-service
command to enable or disable the Oracle Unified Directory server as a Windows service.
To enable the server as a Windows service, use the following command:
C:\> instance-dir\OUD\bat\windows-service.bat -e
To disable the server as a Windows service, use the following command:
C:\> instance-dir\OUD\bat\windows-service.bat -d
See windows-service in Administering Oracle Unified Directory.
Note:
You can also specify that the Oracle Unified Directory server should run as a Windows service, if you use the GUI installation. On the installation Review panel, select Run the server as a Windows Service.
See also Configuring the Timeout Value when the Oracle Unified Directory Server Starts.
9.1.1 Configuring the Timeout Value when the Oracle Unified Directory Server Starts
If the system is heavily loaded when it boots, the process that starts the server might time out while waiting for the server to start. By default, the server attempts to start 100 times, with an interval of 5 seconds between attempts.
You can configure the number of attempts that the server makes to start by setting the value of the OUD_WINDOWS_SERVICE_START_NTRIES
system environment variable.
9.2 Removing the Oracle Unified Directory Windows Service
The uninstall process should cleanly uninstall and remove Oracle Unified Directory from your system. However, for Windows platforms, there might be times when the uninstall fails to remove files due to an active Windows service.
You can remove the remaining Windows service in two ways:
9.2.1 Removing a Windows Service Using windows-service.bat
You can use the windows-service.bat
command to clean up any existing Windows services. This command is located in instance-dir\OUD\bat
.
To clean up any existing Windows services:
9.2.2 Removing the Oracle Unified Directory Service From the Windows Registry
You can manually remove any remaining Windows service entries from the Windows registry.
Caution:
Make sure that you know what you are doing when removing entries in your Windows registry. You can permanently damage your operating system.