Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: What is the difference between oradim and startup?
Peter <peter_at_nomorenewsspammin.ca> wrote in message news:<t2lr9v4p2un6d5eu3lkp8ercg3pg2ou3tp_at_4ax.com>...
> What is the difference between
>
> oradim -NEW -SID
>
> and
> (from within sqlplus)
> startup nomount pfile=.....
>
>
> With oradim, you start an Oracle service, but is an Oracle service the
> same as an Oracle instance (with SGA, background processes) ?
>
> Does "startup" start an oracle instance or an oracle service?
Please do not cross post.
Unlike *nix, Oracle service on a Windows platform only creates an initial Oracle process for the SID while allocating initial resources e.g. memory etc. This Oracle process is required to startup an Oracle instance because Oracle instance is made up of many threads (Depending on what is installed in the database) that are owned by the Oracle process and are initiated when a "startup" command is issued via sqlplus/server manager.
Since Oracle process owns all the threads under it, you can terminate a thread without terminating the process but terminating the process kills all the threads automatically. e.g. by using "shutdown immediate" from sqlplus will terminate all instance threads while the parent Oracle process continues to run... however, stopping the Oracle service effectively terminates the process with all the instance threads.
Oracle process for the SID is created by,
a) Starting the SID service OR b) Oradim -STARTUP -SID .... -STARTTYPE srvc OR c) %ORACLE_HOME%\bin\oracle*.exe <SID>. Although you can create anOracle process this way but it should normally not be used as it is interactive and process will be killed once the user logs off.
Oracle instance is a combination of threads owned by the Oracle process created as mentioned above. These threads (instance) can be initialized once the process is created by, a) Sqlplus/server manager startup command OR b) Oradim -STARTUP -SID .... -STARTTYPE inst.
To view all this, Open Windows Task Manager --> Processes. Startup Oracle service and keep an eye on Threads column. You will see Oracle process gets created with some memory allocation and few threads are initiated. Open sqlplus/server manager and startup Oracle instance. You will see the thread count jump to somewhere between 14 and 30 threads. More memory is also allocated as SGA is initialized. View same results while using shutdown command.
HTH
Regards
/Rauf Sarwar
Received on Thu Apr 17 2003 - 01:06:16 CDT
![]() |
![]() |