Oracle batch processing starts to close the service

Source: Internet
Author: User

It is necessary for Oracle to install a program on its own machine. After all, sometimes you need to learn it at home, but the computer is not used by yourself. You still need to write a batch to solve the problem. If you need it, click Start, it is convenient to stop the service without any need. Here we will write a script for you. You are welcome to paste and copy it.

 

First, close your Automatic startup service, record it, and replace the corresponding service name in the script. Paste it and save it as "Oracle service switching. Bat ".

 

Echo off <br/> CLS <br/> color 2E <br/> echo. │ ── ─ │ <br/> echo. │ <br/> echo. │ make a notebook. │ <br/> echo. │ blog.csdn.net/xzknet │ <br/> echo. │ <br/> echo. │ one-click switch to Oracle startup service │ <br/> echo. │ oracleservicekendb is my Oracle service name: kendb │ <br/> echo. │ change your service. │ <br/> echo. │ (Please feel free to use this script) │ <br/> echo. │ <br/> echo. │ 1. start 2. stop │ <br/> echo. │ <br/> echo. │ ── ─ ── │ </P> <p>: F <br/> set Zcyh = <br/> set/P zcyh = confirm to start Oracle) <br/> If/I "% zcyh %" = "1" Goto start_oracle <br/> If/I "% zcyh %" = "2" Goto stop_oracle </ p> <p>: start_oracle <br/> ECHO: Are you sure you want to start oracle? <Br/> pause <br/> Net start oracleorahome81agent <br/> Net start oracleorahome81javasatherer <br/> Net start oracleorahome81tnslistener <br/> Net start oracleservicekendb <br/> echo Oracle startup successful. <Br/> goto patch_end </P> <p>: stop_oracle <br/> ECHO: Are you sure you want to stop oracle? <Br/> pause <br/> net stop oracleorahome81agent <br/> net stop oracleorahome81javasatherer <br/> net stop oracleorahome81tnslistener <br/> net stop oracleservicekendb <br/> echo Oracle has stop <br/> goto patch_end </P> <p>: patch_end <br/> ECHO is coming soon! Author Xu Zikai quit after confirmation from <br/> pause <br/> exit <br/>

 

Note: many of my friends have seen this article saying that my service is very old. No way. It was written at oracle8. If you are using oracle10, 11, XE, we recommend that you check the Oracle service installed in Windows by yourself. MSC and then find the Oracle-related auto-start service. Then follow the method described above to modify .;)

Now, let's start your Oracle development journey. By the way, oraclexe is very suitable for standalone development. If you use XE, you are advised to read an article in my blog, which can be used in a few simple steps. Address also by the way: http://blog.csdn.net/xzknet/archive/2011/03/10/6238356.aspx

 

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.