HOWTO--Starting and Stopping Oracle on Windows(zt)

Starting and Stopping 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:oracle9ibinoradim -startup -sid ORCL92 –usrpwd manager
-starttype SRVC,INST -pfile C:oracle9iadminORCL92pfileinit.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:

 
   

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_HOMEdatabaseOraDim.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 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.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29987/viewspace-51779/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29987/viewspace-51779/

你可能感兴趣的:(HOWTO--Starting and Stopping Oracle on Windows(zt))