Operating System - HP-UX
1752766 Members
5112 Online
108789 Solutions
New Discussion юеВ

Re: HPUX11.11+MC/SG+oracle9.2.0.8+JDE

 
SOLVED
Go to solution

HPUX11.11+MC/SG+oracle9.2.0.8+JDE

2 pkgs: ora_pkg jde_pkg
2 nodes: node1 node2
I must start ora_pkg before jde_pkg
and shutdown jde_pkg before ora_pkg.

how can I config the ora.cntl and jde.cntl?

function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
/etc/cmcluster/oracle/ora_start.sh

test_return 51
}

# This function is a place holder for customer define functions.
# You should define all actions you want to happen here, before the service is
# halted.

function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.

/etc/cmcluster/oracle/ora_stop.sh
test_return 52
}
4 REPLIES 4
skt_skt
Honored Contributor

Re: HPUX11.11+MC/SG+oracle9.2.0.8+JDE

do you mean asscoiating these two pcakges in single package/cntlfile so that the order od start/stop can be controlled?
Steve Faidley
Valued Contributor
Solution

Re: HPUX11.11+MC/SG+oracle9.2.0.8+JDE

add some checking like;

In ora_pkg halt
TEST_JDE=`cmviewcl -l package|grep "jde_pkg"|grep running`
if [[ -n "${TEST_JDE}" ]]
then
## take your pick what you want to do
#exit
#cmhaltpkg jde_pkg
fi

In jde_pkg run
TEST_ORA=`cmviewcl -l package|grep "ora_pkg"|grep running`
if [[ -z "${TEST_ORA}" ]]
then
## take your pick what you want to do
#exit
#cmrunpkg ora_pkg
fi
If it ain't broke, let me have a look at it.
skt_skt
Honored Contributor

Re: HPUX11.11+MC/SG+oracle9.2.0.8+JDE

in the run section grep for "unowned";

Steve was searching for "running" on both section.

Re: HPUX11.11+MC/SG+oracle9.2.0.8+JDE

Thanks for your reply,I shall try it.