Oracle Auto-start command in Linux (2)

Source: Internet
Author: User
 Create an Oracle10g file in/etc/init. d/and edit the following content in the file 
#! /Bin/shcase "$1" instart) # Start tsnlisnter echo "Start tsnlisnter" Su-Oracle-c "LSNRCTL start" # Start database echo "Start Oracle database instance" Su-Oracle-c "Echo \" Conn/As sysdba startup exit \ "| sqlplus/nolog" # Start Enterprise Manager echo "Start emterprise manager" Su-Oracle-c "emctl start dbconsole" # Start ISQLPLUS echo "Start isqlplus" Su-Oracle -c "isqlplusctl start ";; stop) # shutdown database echo "shutdown Oracle database instance" Su-Oracle-c "Echo \" Conn/As sysdba shutdown immediate exit \ "| sqlplus/nolog" # Stop tsnlisnter echo "Stop tsnlisnter "Su-Oracle-c" LSNRCTL stop "# Stop Enterprise Manager echo" Stop emterprise manager "Su-Oracle-c" emctl stop dbconsole "# Stop ISQLPLUS echo" Stop isqlplus "Su- oracle-c "isqlplusctl stop ";; *) echo "Usage: $0 {START | stop}" Exit 1; esacexit 0

Add the following content to the/etc/rc. d/rc. Local file:

 
/Etc/init. d/Oracle10g start

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.