最近在看一本oracle书,讲到用dbca(数据库配置助手)来建立数据库,然后作者用oradim命令行方式又建了一个新的实例,对于书中提到的命令行,不太清楚什么意思,书中的命令行大概是这样的:
C:\Documents and Settings\Administrator>oradim -new -sid wc -startmode manual -s
pfile
实例已创建。
C:\Documents and Settings\Administrator>oradim -edit -sid wc -startmode auto -sr
vcstart system
C:\Documents and Settings\Administrator>
于是查了一下oracle文档,引用自这个链接http://docs.oracle.com/cd/E11882_01/win.112/e10845/create.htm#NTQRF05011。
下面是最主要的命令行选项说明:
Creating an Instance
To use ORADIM to create an instance, enter:
oradim [-NEW -SID SID] | -SRVC service_name | -ASMSID SID | -ASMSRVC service_name [-SYSPWD password] [-STARTMODE auto | manual] [-SRVCSTART system | demand] [-PFILE filename | -SPFILE] [-SHUTMODE normal | immediate | abort] [-TIMEOUT secs] [-RUNAS osusr/ospass]
where
-
-NEW
indicates that you are creating a new instance. This is a mandatory parameter. -
-SID
SID
is the name of the instance to create. -
-SRVC
service_name
is the name of the service to create (OracleService
SID
). -