Re: question about setenv
- From: Bill Marcum <bmarcum@xxxxxxxxx>
- Date: Fri, 27 Oct 2006 10:43:17 -0400
On 27 Oct 2006 06:15:38 -0700, EdStevens
<quetico_man@xxxxxxxxx> wrote:
Working with Oracle 9.2 on Solaris 5.9, I ran into some questions aboutsetenv is a csh command. The sh equivalent is
setenv (Disclaimer: I'm a DBA, not an SA).
Product has a tool that produces a set to .sh an .sql scripts which are
used to create a new database. The produced script that drives the
process (call it mysid.sh). To demonstrate and reproduce my problem, I
have reduced the script to this:
#!/bin/sh
-set x
setenv ORACLE_SID mysid
When running the script, the setenv line returns "setenv: not found"
export ORACLE_SID; ORACLE_SID=mysid
In some shells this can be written as one command
export ORACLE_SID=mysid
I don't know what this setenv does, but it should have a man page.
ok, there is no directory /usr/estevens/pref but why is setenv trying
to write a file at all? And why would it try to write that file to a
directory that is not guaranteed to be there? In the above example, my
$HOME directory is /usr/estevens, but it cant' be assumed that there
will necessarily be a $HOME/pref.
Try "apropos setenv" to see if there is more than one setenv man page.
Enquiring minds want to know. For my purposes I can get around this myI'd like to know how they explain that.
inserting
ORACLE_SID=mysid
export ORACLE_SID
but would like to further my knowledge of Unix.
(Another anomoly, which I need to pose to the vendor (Oracle) is that
it appears from the man page that setenv is for csh, but not sh, yet
they gen a script which specifically runs sh and calls setenv.)
--
I'll never get off this planet.
-- Luke Skywalker
.
- References:
- question about setenv
- From: EdStevens
- question about setenv
- Prev by Date: Re: counting ip addresses
- Next by Date: Re: counting ip addresses
- Previous by thread: Re: question about setenv
- Next by thread: Re: question about setenv
- Index(es):
Relevant Pages
|