Operating System - HP-UX
1752666 Members
5572 Online
108788 Solutions
New Discussion юеВ

Re: Start/stop script location and setting

 
rana786
Regular Advisor

Start/stop script location and setting

Hi all,

I need to integrate oracle database to the hp-ux OS using start stop script. When system will be down then database will be down and when the system will start then database will start. Can anybody tell me in which location I have to set these script in the system?

Rgds,
Rana
Walker_dhk
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Start/stop script location and setting

Do a man on rc.


Pete

Pete
Peter Godron
Honored Contributor

Re: Start/stop script location and setting

Rana,
have a look in the /sbin/rc3.d area.
Look at some of the scripts. If you do a search on the ITRC forums, you should lots of advice on how to set it up.
Peter Godron
Honored Contributor

Re: Start/stop script location and setting

Yogeeraj_1
Honored Contributor

Re: Start/stop script location and setting

hi rana,

these url should help you:
http://www.docs.hp.com/en/B2355-60127/rc.1M.html
http://docs.hp.com/en/934/startup.pdf

see also: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1048583


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
rariasn
Honored Contributor

Re: Start/stop script location and setting

Hi Rana,

- Create file /etc/oratab

#

# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME::
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
BDNAME:/opt/oracle92:Y

and view next link,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=7203&admit=-682735245+1154690426168+28353475

rgs,

ran
DCE
Honored Contributor

Re: Start/stop script location and setting


the start stop scripts are in several locations

The main scripts is in /sbin/init.d. In fact, there is atemplate file there you can use to create a customized script for your app.

The script that controls whether the start/stop scripts executes is in /etc/rc.config.d. It contains avariable equal to 0 (do not run) or 1 (run)

When the the script runs/shuts down is controlled by links to the main script. They are usually located in /sbin/rc3.d (start) and /sbin/rc2.d. They start with a S for start or a K for stop. Thet letter is followed by a number. Convention has it that the two numbers equal 1000

Look at other scripts in these areas for further examples.
rana786
Regular Advisor

Re: Start/stop script location and setting

I got it.
Walker_dhk