Quick oracle shutdown and enabling for Batch Processing
Since oracle accounts for a large amount of memory, we usually convert auto-start to manual start. Find the managed services and the services in the application on the computer, and change all the automatic items related to oracle to manual. You can use oracle to enable the manual click. If it is too troublesome, you can also use this code to open and close it. First, create two txt notebooks and copy the Code separately. // the code in the first txt file, this is the startup code @ echo off echo. Are you sure you want to start the Oracle 11G service? Pause net start OracleOraDb11g_home1TNSListener net start OracleServiceORCL net start OracleDBConsoleorcl echo to start Oracle 11g service. Make sure there is any error. Pause // code in the second txt file. This is the closed code @ echo off echo. Are you sure you want to stop the Oracle 11G service? Pause net stop OracleDBConsoleorcl net stop OracleServiceORCL net stop OracleOraDb11g_home1TNSListener echo stop Oracle 11g service complete, please confirm whether there is any error. After Pause, convert the txt format to the bat format. Double-click to open it. If system error 5 is displayed, open it as an administrator.
File 1
File 2
Rename