5.1a - behaviour of su

From: Browett, Darren <dbrowett_at_coquitlam.ca>
Date: Fri, 14 Mar 2003 08:51:44 -0800

As part of my backup procedures, I make a call to scripts for shutting
down my databases.

This script has worked with 4.0f but is not working with 5.1a/pk3. The
syntax is

ORACLE_ENV=/ora/env/Oracle.env
/bin/su oracle -c ". $ORACLE_ENV ; $DBS/ractrl stop"

When I run the command I get the following output :
ksh: /ractrl: not found

To me this indicates that $DBS is not being resolved (if that is the
correct term).

I did change the command to /bin/su oracle -c ". $ORACLE_ENV ; printenv"

And $DBS is defined.

Has anybody else seen this behaviour ??

Thanks

Darren

------------------------------------------------------------------------
--------------------------------------------------
Darren Browett P.Eng This
message was transmitted
Data Administrator using
100% recycled electrons
Information and Communication Technology
City of Coquitlam
P:(604)927 - 3614
E:dbrowett_at_city.coquitlam.bc.ca
------------------------------------------------------------------------
---------------------------------------------------
Received on Fri Mar 14 2003 - 16:52:29 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT