How to disable oracle automatic STARTUP in Windows [message #430699] |
Wed, 11 November 2009 16:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/138761.jpg) |
dariyoosh
Messages: 538 Registered: March 2009 Location: France
|
Senior Member |
|
|
Dear all,
Whenever I want to start oracle server on linux I run the following
(all needed environment variables ORACLE_SID, ORACLE_BASE, ORACLE_HOME are already set)
$ su - oracle
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> Connected to an idle instance
SQL> STARTUP
And after a few seconds the server is up. And for server shutdown I just run SHUTDOWN instead of STARTUP in the same way. This manual startup/shutdown works pretty well.
Recently I installed Oracle Enterprise 11g R1 on Vista for the first time, but it seems that whenever windows boots up, the oracle server also is running automatically as a system process no matter whether I really need it or not at that time.
I have two questions:
- Is there a way to disable this function and obtain a manual control over the startup/shutdown of the oracle server?
- Is the shutdown/STARTUP process in SQL*Plus is done in the same way as it is done in linux
that is, what I wrote above?
Thanks in advance,
Kind Regards,
Dariyoosh
[Updated on: Wed, 11 November 2009 16:52] Report message to a moderator
|
|
|
Re: How to disable oracle automatic STARTUP in Windows [message #430703 is a reply to message #430699] |
Wed, 11 November 2009 17:27 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
The difference between Windows and Linux/Unix in this regard is that every database instance on Windows also has an associated "Service".
the command line tool oradim is used to manage those services.
So it seems right now, on your system:
- The service is set to autostart
- In the oradim configuration it is specified to start the instance once the service starts.
So the easiest way to have the database running only when you need it is to set the Service in the Windows service configuration from "Automatic" to "Manual" ( Control Panel → Administrative Tools → Services ) and only start it when you need the database.
You cam also start/stop the instance itself in the usual way without affecting the service while the service is running, but you can't start the instance unless the service is running.
[Updated on: Wed, 11 November 2009 17:28] Report message to a moderator
|
|
|
|
|
|
Re: How to disable oracle automatic STARTUP in Windows [message #430809 is a reply to message #430780] |
Thu, 12 November 2009 06:44 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/138761.jpg) |
dariyoosh
Messages: 538 Registered: March 2009 Location: France
|
Senior Member |
|
|
Michel Cadot wrote on Thu, 12 November 2009 12:421/ This is why it is better to use ORADIM, you have not to care of which service(s) you should handle
2/ [-STARTTYPE srvc|inst|srvc,inst]
3/ No, it is useful if you want to use the same scripts for different OS.
Regards
Michel
Dear Michel,
Thanks a lot for this nice presentation (merci beaucoup pour ton aide cher ami!!)
Regards,
Dariyoosh
|
|
|