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 ~~