title: How to execute a shell script after oracle started successfully
body: <p>I would like to execute a shell script with non-root user while Linux system booting and oracle has been started successfully.</p>
  
  <p>I tried to execute this shell in rc.local. But I found oracle start-up procedure took too much time. So when shell tried to connect to Oracle, it return failed.</p>
  
  <p>On the user`s Linux server, it took several minutes to get Oracle running. I am not clear what technology they use. I found when Oracle didn`t startup finished, I can login Linux server through ssh. </p>
  
  <p>In my opinion, Linux boot sequence should like following. </p>
  
  <pre><code>/etc/rc.d/rc.sysinit 
  /etc/rc.d/rc $RUNLEVEL 
  /etc/rc.d/rc.local 
  /bin/login
  </code></pre>
  
  <p>But If I add line to check if Oracle is running in rc.local, user cannot login Linux server for several minutes. I think it is improper.</p>
  
  <p>Is there a better solution to solve this problem? </p>
  
  <p>Any suggestion is welcome.</p>