Load oracle as a linux Standard System Service script

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technical staff to enter the script for loading oracle into a linux Standard System Service [root @ test11root] # moreetcinit. doracle #! Binsh # chkconfig: 23458005 # description: Oracle8ServerORA_HOMEoracleproduct9.2.0ORA_OWNER

Welcome to the Oracle community forum and interact with 2 million technical staff> enter the script for loading oracle into a linux Standard System Service [root @ test11 root] # more/etc/init. d/oracle #! /Bin/sh # chkconfig: 2345 80 05 # description: Oracle 8 Server ORA_HOME =/oracle/product/9.2.0 ORA_OWNER =

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

Load oracle as a linux Standard System Service script
[Root @ test11 root] # more/etc/init. d/oracle
#! /Bin/sh

# Chkconfig: 2345 80 05
# Description: Oracle 8 Server

ORA_HOME =/oracle/product/9.2.0
ORA_OWNER = oracle

Case "" in
"Start ")
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/lsnrctl start"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/start. sh"
;;
"Stop ")
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/lsnrctl stop"
Su-$ ORA_OWNER-c "$ ORA_HOME/bin/shutdown. sh"
;;
Esac

[Root @ test11 root] # more/oracle/product/9.2.0/bin/start. sh
Sqlplus/nolog <EOF
Connect/as sysdba
Startup
Exit
Exit
Echo "oracle have started"

[Root @ test11 root] # more/oracle/product/9.2.0/bin/shutdown. sh
Sqlplus/nolog <EOF
Connect/as sysdba
Shutdown immediate
Exit
Exit
Echo "oracle have shutdown"


# Chkconfig -- add oracle

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.