{"id":5610,"date":"2016-03-31T12:53:47","date_gmt":"2016-03-31T04:53:47","guid":{"rendered":"http:\/\/rmohan.com\/?p=5610"},"modified":"2016-03-31T12:53:47","modified_gmt":"2016-03-31T04:53:47","slug":"how-to-startstop-oracle-database-from-linux-command-prompt","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5610","title":{"rendered":"How to start\/stop oracle database from linux command prompt"},"content":{"rendered":"<h3 class=\"post-title entry-title\">How to start\/stop oracle database from linux command prompt<\/h3>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-4021864932947500557\" class=\"post-body entry-content\">\n<div dir=\"ltr\">How to start\/stop oracle database from linux command prompt:-<br \/>\n[oracle@configsrv1 ~]$vi \/etc\/oratab<br \/>\n#<\/p>\n<p># This file is used by ORACLE utilities. \u00a0It is created by root.sh<br \/>\n# and updated by the Database Configuration Assistant when creating<br \/>\n# a database.<\/p>\n<p># A colon, &#8216;:&#8217;, is used as the field terminator. \u00a0A new line terminates<br \/>\n# the entry. \u00a0Lines beginning with a pound sign, &#8216;#&#8217;, are comments.<br \/>\n#<br \/>\n# Entries are of the form:<br \/>\n# \u00a0 $ORACLE_SID:$ORACLE_HOME:&lt;N|Y&gt;:<br \/>\n#<br \/>\n# The first and second fields are the system identifier and home<br \/>\n# directory of the database respectively. \u00a0The third filed indicates<br \/>\n# to the dbstart utility that the database should , &#8220;Y&#8221;, or should not,<br \/>\n# &#8220;N&#8221;, be brought up at system boot time.<br \/>\n#<br \/>\n# Multiple entries with the same $ORACLE_SID are not allowed.<br \/>\n#<br \/>\n#<br \/>\nprim:\/u01\/app\/oracle\/product\/11.2.0\/db_1:N<\/p>\n<p>change the entry to this<\/p>\n<p>prim:\/u01\/app\/oracle\/product\/11.2.0\/db_1:Y<\/p>\n<p>and save the file.<\/p>\n<p>For starting db<br \/>\n[oracle@configsrv1 ~] dbstart<br \/>\nORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener<br \/>\nUsage: \/u01\/app\/oracle\/product\/11.2.0\/db_1\/bin\/dbstart ORACLE_HOME<br \/>\nProcessing Database instance &#8220;prim&#8221;: log file \/u01\/app\/oracle\/product\/11.2.0\/db_1\/startup.log<\/p>\n<p>To fix the above error;<\/p>\n<p>[oracle@configsrv1 ~]export ORACLE_HOME_LISTNER=$ORACLE_HOME<br \/>\n[oracle@configsrv1 ~]dbstart $ORACLE_HOME<br \/>\nThen start the db again<br \/>\n[oracle@configsrv1 bin]$ dbstart $ORACLE_HOME<br \/>\nProcessing Database instance &#8220;prim&#8221;: log file \/u01\/app\/oracle\/product\/11.2.0\/db_1\/startup.log<\/p>\n<p>For stopping db<br \/>\n[oracle@configsrv1 ~] dbshut<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to start\/stop oracle database from linux command prompt How to start\/stop oracle database from linux command prompt:- [oracle@configsrv1 ~]$vi \/etc\/oratab #<\/p>\n<p># This file is used by ORACLE utilities. It is created by root.sh # and updated by the Database Configuration Assistant when creating # a database.<\/p>\n<p># A colon, &#8216;:&#8217;, is used as [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5610"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5610"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5610\/revisions"}],"predecessor-version":[{"id":5611,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5610\/revisions\/5611"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}