Batch Processing of Oracle startup and Shutdown

Source: Internet
Author: User

I wrote a file to enable and disable the Oracle service I used. The details are as follows:

********** ***********************************

@ Echo off
ECHO is starting the Oracle service. Please wait ......
Net start oraclecsservice
Net start oracledbconsolemyoracle
Net start oracledbconsoleorcl
Net start oracleoradb10g_home1isql * Plus
Net start oracleoradb10g_home1tnslistener
Net start oracleservicemyoracle
Net start oracleserviceorcl
Net start sqlbrowser
Echo completed Oracle Service Startup
Echo. & pause

 

**************************************** **************************************** *******

*********** ************************************

@ Echo off
ECHO is shutting down the Oracle service. Please wait .......
Net stop oraclecsservice
Net stop oracledbconsolemyoracle
Net stop oracledbconsoleorcl
Net stop oracleoradb10g_home1isql * Plus
Net stop oracleoradb10g_home1tnslistener
Net stop oracleservicemyoracle
Net stop oracleserviceorcl
Net stop sqlbrowser
Echo Oracle service closed
Echo. & pause

**************************************** **************************************** ********

 

Save the above files to start. BAT and stop. Bat respectively, and then run the corresponding BAT file to get the expected results ~~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.