Linux Setup Oracle Auto-start

Source: Internet
Author: User

Create the Oracle service file under the/etc/init.d/directory with root user Cd/etc/init.dvi oracle11g Add the following #!/bin/bash# chkconfig:345 10# Description: Startup Script. For Oracle databasesexport oracle_base=/u01/app/oracleexport oracle_home= $ORACLE _base/product/10.2.0 /db_1;export oracle_owner=oracleexport oracle_sid=orclexport ld_libbary_path= $ORACLE _home/lib:/usr/lib64:/usr/lib :/usr/local/lib:/usr/local/lib64;export path= $PATH: $ORACLE _home/bin: $DYLD _library_path: $LD _library_pathexport Nls_lang=american_china. Al32utf8export display=:0.0su-oracle <<eoflsnrctl startemctl start dbconsolesqlplus/nolog<<eosconnect/ As Sysdbastartupquit Save the file, grant the executable permission chmod a+x oracle11g Add service/sbin/chkconfig--add oracle11g see if the service was added successfully:/sbin/chkconfig-- List oracle11goracle11g 0:off 1:off 2:off 3:on 4:on 5:on 6:off When you restart Linux, you see the boot entry oracle11g OK, and the system starts successfully to check if the Oracle process starts automatically.

Linux Setup Oracle Auto-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.