title: Starting Windows service automatically at Windows startup that is dependent on Oracle
body: <p>I have developed a Windows Service, that must start automatically during Windows startup. This service connects to an Oracle db, so I made my service dependent on Oracle Services by sc command line utility:
  sc config MyService depend= OracleServiceXE/OracleXETNSListener</p>
  
  <p>So far so good, dependency was set succesfully. But when Windows starting, my service could not start, I get the following (Oracle) error message: "ORA-12528: TNS:listener: all appropriate instances are blocking new connections".</p>
  
  <p>As I think, the Oracle services are started when my service starts, but they are not 'fully initialized'. After some seconds I can start my service from service consol without any problem.</p>
  
  <p>So, how can I start automatically my service at Windows Startup which is dependent on an Oracle DB connection?</p>
  
  <p>My service was developed in C# on .Net 4 platform, in VS 2010 environment.</p>
  
  <p>Pls. help me, it is a really important task form me!</p>