{"id":979,"date":"2010-11-09T23:58:18","date_gmt":"2010-11-09T23:58:18","guid":{"rendered":"http:\/\/pchero21.com\/?p=979"},"modified":"2010-11-09T23:58:18","modified_gmt":"2010-11-09T23:58:18","slug":"oracle-init-script","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=979","title":{"rendered":"ORACLE &#8211; init script"},"content":{"rendered":"<p><font><font color=\"#000000\"><\/p>\n<pre class=\"screen\"><br \/><br \/>#!\/bin\/bash<br \/>#<br \/># Run-level Startup script for the Oracle Instance and Listener<br \/>#<br \/># chkconfig: 345 91 19<br \/># description: Startup\/Shutdown Oracle listener and instance<br \/><br \/>ORA_HOME=\"\/u01\/app\/oracle\/product\/9.2.0.1.0\"<br \/>ORA_OWNR=\"oracle\"<br \/><br \/># if the executables do not exist -- display error<br \/><br \/>if [ ! -f $ORA_HOME\/bin\/dbstart -o ! -d $ORA_HOME ]<br \/>then<br \/>        echo \"Oracle startup: cannot start\"<br \/>        exit 1<br \/>fi<br \/><br \/># depending on parameter -- startup, shutdown, restart <br \/># of the instance and listener or usage display <br \/><br \/>case \"$1\" in<br \/>    start)<br \/>        # Oracle listener and instance startup<br \/>        echo -n \"Starting Oracle: \"<br \/>        su - $ORA_OWNR -c \"$ORA_HOME\/bin\/lsnrctl start\"<br \/>        su - $ORA_OWNR -c $ORA_HOME\/bin\/dbstart<br \/>        touch \/var\/lock\/subsys\/oracle<br \/>        echo \"OK\"<br \/>        ;;<br \/>    stop)<br \/> \t# Oracle listener and instance shutdown<br \/>        echo -n \"Shutdown Oracle: \"<br \/>        su - $ORA_OWNR -c \"$ORA_HOME\/bin\/lsnrctl stop\"<br \/>        su - $ORA_OWNR -c $ORA_HOME\/bin\/dbshut<br \/>        rm -f \/var\/lock\/subsys\/oracle<br \/>        echo \"OK\"<br \/>        ;;<br \/>    reload|restart)<br \/>        $0 stop<br \/>        $0 start<br \/>        ;;<br \/>    *)<br \/>        echo \"Usage: $0 start|stop|restart|reload\"<br \/>        exit 1<br \/>esac<br \/>exit 0<br \/><\/pre>\n<p><\/font><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/bash## Run-level Startup script for the Oracle Instance and Listener## chkconfig: 345 91 19# description: Startup\/Shutdown Oracle listener and instanceORA_HOME=&#8221;\/u01\/app\/oracle\/product\/9.2.0.1.0&#8243;ORA_OWNR=&#8221;oracle&#8221;# if the executables do not exist &#8212; display errorif [ ! -f $ORA_HOME\/bin\/dbstart -o ! -d $ORA_HOME ]then echo &#8220;Oracle &hellip; <a href=\"http:\/\/pchero21.com\/?p=979\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[211,298,336],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/979"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=979"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/979\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=979"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}