Is your computer or Laptop takes time during start-up after you installed few heavy softwares ? Don't worry there is way you can decrease your computer start-up time .before we go down lets understand how it works.
Whenever you install software like oracle,DB2,SQLServer,Apache etc. they will install there services which will be started every time you turn on your pc,like when you install oracle it will add few services given below.
so what we gonna do then because these services are essential to use the products ? so what we do is we disable these services to start on system boot ,and whenever we need then we start them manually. But this will become hectic to type the command every time so what we gonna do is we will make a batch file for this task .and when ever we need them we will make a single click.
Whenever you install software like oracle,DB2,SQLServer,Apache etc. they will install there services which will be started every time you turn on your pc,like when you install oracle it will add few services given below.
OracleDBConsoleorcl
OracleOraDb10g_home1TNSListener
OracleServiceORCL
so what we gonna do then because these services are essential to use the products ? so what we do is we disable these services to start on system boot ,and whenever we need then we start them manually. But this will become hectic to type the command every time so what we gonna do is we will make a batch file for this task .and when ever we need them we will make a single click.
Disabling services from getting started on system boot.
- click on start button
- type cmd right click and run as administrator
- Command Prompt will popup as shown.
- type net start all the service list is shown just note down the services name you want to disable and set the startup to manually .
- Now open Notepad
- for every service type following command sc config service-name start= demand (note the space between = and demand)
- save file as set_servicemanual.bat (in file type select as all files)
- Run saved file as administrator
- for our example Notpad file looks like
sc config OracleDBConsoleorcl start= demand
sc config OracleOraDb10g_home1TNSListener start= demand
sc config OracleServiceORCL start= demand
pause
sc config OracleOraDb10g_home1TNSListener start= demand
sc config OracleServiceORCL start= demand
pause
Creating the Batch file for manual starting services
- open notepad
- for every service type command as net start "service name"
- save file as start_servicemanual.bat (in file type select as all files)
- Run saved file as administrator
- for our example Notpad file looks like
net start "OracleDBConsoleorcl"
net start "OracleOraDb10g_home1TNSListener"
net start "OracleServiceORCL"
pause
net start "OracleOraDb10g_home1TNSListener"
net start "OracleServiceORCL"
pause