Skip to main content

How to create batch file to start and stop Oracle Service on Windows


Everytime you want to start or stop a database service you will have to either do this using sqlplus prompt or through windows services. There is a much simpler way of stopping or starting a database.

Follow the steps below.

Create a file with an extension .bat for example start.bat

Open this file and add the following line in it.

NET START OracleServiceORCL


Create another file as stop.bat, open this file and add the following line.

NET STOP OracleServiceORCL

Here I have 3 words,

1. NET helps start and stop services.
2. START/STOP -- Keyword means start or stop the services
3. OracleServiceORCL -- This is the service name of the database which has been installed on my windows.


To start the database just double click on start.bat and to stop the database double click on stop.bat.

To know the service name of the database on your machine, follow the steps below.

1. Go to Control Panel --> Administrative Tools --> Click on Services icon.

This will open a window show below.

















Here scroll down to names starting with alphabet O check for anything starting with Oracle.

















Highlighted service name is the one which has to be used. If you have installed only one Oracle database on your windows then if your database name is ORCL then you will have to start only one service and that service would be "OracleServiceORCL".


To know how to start/stop the database using SQLPLUS CLICK HERE

To know how to start/stop using services menu CLICK HERE


Comments

Bharath Machireddy said…
sir,
i have tried this and working fine .

but if we double click that .bat file ,it won't working ,after clicking run as administrator it works fine.


thank you
khawaja asif hameed said…
Sir you are right but after running JAZN.jar file script my isqlplus/dba was not running or in simple word authentication required windows not been successfully done.
Zoomi786 said…
Hi Mithun,
when i tried to start enterprize manager i got this massege...what should i do?

Error: java.lang.Exception: Exception in sending Request :: null
suresha said…
Hi sir,
I am working in Oracle india pvt ltd .as business operation analyst.i want to go development side ,thats why i want to do Oracle DB course .have you teach oracle db course?Please suugest me


Thank you
Kiran Rao said…
Sir i want to download so called "BIBLE" of SQL/PLSQL which you had shown in your last class i tried but not getting that link.. Now am working for Estuate software since 26-nov-2012 in an ERP domain in mangalore so please help in downloading that i got this job through JSPIDERS actually had other job in banagalore also that is in QSG Technologies but i selected ESTUATE since my native is UDUPI .. Hope you will reply soon since i want to download it badly ..
zuan said…
Thanks for sharing an informative blog keep rocking bring more details.I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
mobile application development training online
web designing course with placement in chennai
web designing training institute in chennai
web design and development training
mobile app development course
mobile application development course
learn mobile application development
mobile app development training
baku said…


Hey friend, it is very well written article, thank you for the valuable and useful information you provide in this post. Keep up the good work! FYI, please check these depression, stress and anxiety related articles.
Federal Bank Signet Credit Card 2021 Review , The High Five Habit Free pdf Download , Sadhguru Karma Book PDF Download
Durai Raj said…
Thanks for sharing this blog. It was so informative.
Non technical IT jobs
Tech jobs for non techies

Popular posts from this blog

Basics of RDBMS

Data Small set of information becomes data, this set of information helps make decision. Data is always some useful information. Database Place where you store the data. Database represents some aspect of the real world called "miniworld". A database is designed, built and populated with data for a specific purpose. It has intended group of users and some preconceived applications in which these users are interested. In other words, a database has some source from which data is derived, some degree of interaction with events in the real world and an audience that is actively interested in the contents of the database. Database can also be defined as collection of one or more tables. Ex: Mobile, human brain etc DBMS (Database Management System ) Is a program that stores retrieves and modifies data in the database on request. Study of different techniques of design, development and maintenance of the database Types of DBMS These types are based upon their m...

SQL Interview Questions

1. CLICK HERE FOR QUESTIONS ON BASIC SELECT     2. CLICK HERE FOR QUESTIONS ON BASIC SELECT WITH CONDITION   3.  CLICK HERE FOR QUESTIONS FROM QSPIDERS   4. CLICK HERE FOR QUESTIONS ON FUNCTIONS   5. CLICK HERE FOR QUESTIONS ON SUBQUERIES 6. CLICK HERE FOR MORE QUESTIONS ON SQL       CLICK HERE FOR ANSWERS   Some more Online Questions.   On WIZIQ.COM  -- 66 Questions and its answers Found by Neha Abhay Kumar   On SCRIBD.COM   -- 235 Questions and its answers