| |
在window服务启动时并不启动实例的两种方法:
(1)通过oradim startup 参数设定,如下:
a.查看oradim帮助
c:documents and settingsadministrator>oradim help
dim-00002: 有效的命令包括: -delete, -edit, -new, -startup 和 -shutdown
|
请输入以下命令之一:
通过指定以下参数创建例程:
-new -sid sid | -srvc service [-intpwd password] [-maxusers number] [-startm
ode a|m] [-pfile file] [-timeout secs]
|
通过指定以下参数编辑例程:
-edit -sid sid [-newsid sid] [-intpwd passwd]
[-startmode a|m] [-pfile file] [-
shutmode a|i|n] [-shuttype srvc|inst]
|
通过指定以下参数删除例程:
-delete -sid sid | -srvc service name
|
通过指定以下参数启动服务和例程:
-startup -sid sid [-usrpwd password] [-starttype srvc|inst
|srvc,inst] [-pfile filename]
|
通过指定以下参数关闭服务和例程:
-shutdown -sid sid [-usrpwd password]
[-shuttype srvc|inst|srvc,inst] [-shut
mode a | i | n]
|
通过指定以下参数查询帮助: -? | -h | -help
您为 -new 命令输入了无效的选项
b.仅启动服务(starttype参数指定)
c:documents and settingsadministrator>oradim
-startup -sid ldydb -starttype srvc
|
c.登录sqlplus
c:documents and settingsadministrator>sqlplus /nolog
sql*plus: release 9.2.0.1.0 - production on 星期五 9月 21 13:12:08 2007
copyright (c) 1982, 2002, oracle corporation. all rights reserved.
|
d.连接数据库
已连接到空闲例程。
然后执行数据库分步启动就ok了.
(2)通过oracle administration assistant for windows nt工具进行设置
a.开始->程序->oracle->configuration and migration
tools->oracle administration assistant for windows nt
b.数据库->orcl->启动关闭选项->服务启动时启动例程,把该项取消就可以了。
|
|