The oradim
utility can be used to perform various actions on Oracle Windows services.
·
The
startmode parameter is used to define whether the instance will be started upon
service start or not; valid values are auto, manual.
·
The
srvcstart parameter is used to define whether the windows service is started
automatically upon system startup, or manually; valid values are system,
demand.
In case of
defining the service for the first time:
·
Create
a new Windows service for database "ORCL" so that the instance will
not be started along with the service:
oradim -new -sid ORCL
-startmode manual -srvc OracleServiceORCL -srvcstart system
·
Below
command will define the service so that the instance will start along with the
service:
oradim -new -sid ORCL
-startmode auto -srvc OracleServiceORCL -srvcstart system
·
If
the service is already defined, Oradim can be used to change the startmode for
the instance as follows:
oradim -edit -sid ORCL
-startmode manual