Starting and Stopping Oracle on Windows
The dbstart and dbstop shell scripts do not exist on Windows
platforms. Consequently Oracle database startup and shutdown
is implemented completely differently. The oradim utility is
used on the Windows platform to perform these tasks.
C:\oracle9i\bin\oradim -startup -sid ORCL92 –usrpwd manager
-starttype SRVC,INST -pfile
C:\oracle9i\admin\ORCL92\pfile\init.ora
• startup – Indicates that the specified instance should be
started.
• sid – The SID of the database to start.
• usrpwd – The password for the database user.
• starttype – Specifies whether to start the instance, the
service, or both (SRVC, INST).
The following command can be used to shutdown the instance
with oradim:
C:\oracle9i\bin\oradim -shutdown -sid ORCL92 -shutttype
SRVC,INST
–shutmode A
Notice that no password is needed to perform this task.
The shuttype parameter specifies what is to be stopped – the
service (SRVC), the instance (INST), or both (SRVC, INST). The
shutmode specifies the method that should perform the shutdown
– (A)bort, (I)mmediate, or (N)ormal.
Each operation, regardless of success, is logged in the oradim
log file (ORACLE_HOME\database\OraDim.Log). This file should
be checked for errors after each oradim command is executed.
The oradim utility provides more than just the ability to
start and stop Windows databases. oradim can create and edit
databases. It also allows Remote DBAs to configure script-based
installation mechanisms, bypassing the Oracle Database
Configuration Assistant’s graphical user interface (GUI).
For a reference of all oradim commands, use the oradim –help
command.
To learn more about these techniques, see the book "Advanced
Oracle Utilities: The Definitive Reference".
You can buy it directly from the
publisher
and get instant access to the code depot of utilities
scripts.
|