variables


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers variables
# 8  
Old 01-09-2003
SHELL=/bin/sh

with and without $ there is NOT change.

thanks,
rs
# 9  
Old 01-09-2003
Suggest you post your .profile so we can look at it and see if it's bombing out for some reason.

You might want to post the oracle entry from the password file (if you are not using a shadow file, remove the password from the second field) and a listing of the oracle home directory permissions/ownership.
# 10  
Old 01-09-2003
you need to change oracle user shell to korn shell
to be able to use
export DISPLAY=128.61.168.151 in your .profile

Try this manually

issue ksh
then
export DISPLAY=128.61.168.151

if this work without any error message that means
you need to change oracle user shell.

you can change the shell by issuing
usermod -s /bin/ksh oracle
on sun solaris machine
or
edit /etc/passwd file and change oracle shell to ksh
# 11  
Old 01-09-2003
ladies and gentleman this is how my oracle user's
.profile looks like.

where xxx.xx.xxx.xxx is the ip address.

must be ip address and host name or just ip?

i will appreciate your time what to remove/add.

thanks
rs

$ cat .profile

ORACLE_SID=voyager
ORACLE_BASE=/export/home/oracle
ORACLE_ADMIN=${ORACLE_BASE}/admin/${ORACLE_SID}
ORACLE_HOME=${ORACLE_BASE}/product/9.2.0
ORACLE_TERM=xsun5
NLS_LANG=american_america.WE8ISO8859P1
ORA_NLS33=${ORACLE_HOME}/ocommon/nls/admin/data
TNS_ADMIN=/var/opt/oracle
PATH=/usr/ccs/bin${PATH}.:${ORACLE_HOME}/bin
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/usr/X/lib:/usr/openwin/lib:/usr/dt/lib

export ORACLE_SID ORACLE_BASE ORACLE_ADMIN ORACLE_HOME ORACLE_TERM NLS_LANG
ORA_NLS33 TNS_ADMIN PATH LD_LIBRARY_PATH

DISPLAY=xxx.xx.xxx.xxx:0.0
export DISPLAY
xhost +xxx.xx.xxx.xxx
{ORACLE_HOME}\bin\dbassist &e
# 12  
Old 01-09-2003
As far as the DISPLAY - can be a hostname or IP (not both).

When you enter the env - what happens?
I got the following while using your .profile

$ env
ksh: env: not found


I then ran /bin/env and saw the variables. (The only change was setting ORACLE_HOME to /export/home/unixops). You might want to check that your PATH is being set correctly. Otherwise, I don't see anything 'strange'.

$ /bin/env
_=/bin/env
HZ=
PATH=/usr/ccs/bin/usr/bin:.:/export/home/unixops/product/9.2.0/bin
NLS_LANG=american_america.WE8ISO8859P1
ORACLE_BASE=/export/home/unixops
LOGNAME=unixops
ORACLE_SID=voyager
TNS_ADMIN=/var/opt/oracle
ORACLE_ADMIN=/export/home/unixops/admin/voyager
DISPLAY=10.140.6.7:0.0
SHELL=/bin/ksh
ORACLE_TERM=xsun5
ORA_NLS33=/export/home/unixops/product/9.2.0/ocommon/nls/admin/data
HOME=/export/home/unixops
LD_LIBRARY_PATH=/export/home/unixops/product/9.2.0/lib:/usr/X/lib:/usr/openwin/lib:/usr/dt/lib
TERM=vt100
ORACLE_HOME=/export/home/unixops/product/9.2.0
PWD=/export/home/unixops
# 13  
Old 01-10-2003
ORACLE_BASE=/export/home/unixops
LOGNAME=unixops


i am sorry but i am not a unixops user.
as a new bee i ask for a suggestion and not to leave my system for others. I get the impression that caps are looking for you.

thanks for the help!!!
# 14  
Old 01-10-2003
Rsh,

No, the cops are not looking for me. The unixops account is on my test server (my workstation). I did not connect to your server but copied what you posted (the .profile) and put it in the home directory of my unixops account. Then I tested it.

If you are still having problems, you can post back or ask someone at your site.

Regards.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to pass variables into anothother variables?

Below are three variables, which I want to pass into variable RESULT1 username1=userid poihostname1=dellsys.com port1=8080 How can I pass these variables into below code... RESULT1=$((ssh -n username1@poihostname1 time /usr/sfw/bin/wget --user=sam --password=123 -O /dev/null -q... (4 Replies)
Discussion started by: manohar2013
4 Replies

2. Shell Programming and Scripting

Passing awk variables to bash variables

Trying to do so echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies

3. Shell Programming and Scripting

BASH arrays and variables of variables in C++

Sometimes it is handy to protect long scripts in C++. The following syntax works fine for simple commands: #define SHELLSCRIPT1 "\ #/bin/bash \n\ echo \"hello\" \n\ " int main () { cout <<system(SHELLSCRIPT1); return 0; } Unfortunately for there are problems for: 1d arrays:... (10 Replies)
Discussion started by: frad
10 Replies

4. Shell Programming and Scripting

Running a script with multiple variables like 25 variables.

Hi All, i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more good and precise way?? #!/bin/ksh ##script is sample.ksh age=$1 gender=$2 class=$3 . . .... (3 Replies)
Discussion started by: Lakshman_Gupta
3 Replies

5. Shell Programming and Scripting

Variables

I need to define a variable of variable. I'll try to explain it. I've a list: LIST="aaa bbb ccc"I need to do something like: for word in LIST ;do res_$word=`ls $word` done This doesn't work. Any idea? Thanks (3 Replies)
Discussion started by: kekaes
3 Replies

6. Shell Programming and Scripting

Using cd on Variables

I can't for the love of me figure out how to work with double quotes and single quotes in variables in bash scripts. For instance, I added the following line to my .bash_aliases file: WINDOWS="'/host/Documents and Settings/Solar Zenith/My Documents'"; I want this so that I can go straight to 'My... (2 Replies)
Discussion started by: solar zenith
2 Replies

7. Programming

How to convert byteArray variables to HexaString variables for Linux?

Hello everybody, I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
Discussion started by: ritesh_163
2 Replies

8. Shell Programming and Scripting

naming variables with variables

Hello, FIRST QUESTION: I am writing a script in which a query is taken at the beginning of the script to be later used at the end. In the query, variables are generated from a loop, and I would like to assign the variable NAME (not value) with an appended 1, 2, 3, 4.....n. The number of... (2 Replies)
Discussion started by: Allasso
2 Replies

9. Shell Programming and Scripting

non-variables with $

I am writing a csh script and I need to echo a word that starts with $ and is not a variable. How do I do that? (3 Replies)
Discussion started by: oprestol
3 Replies

10. UNIX for Dummies Questions & Answers

Using Variables to Set Other Variables

I have a script that I'm trying to shorten (below) by removing repetitive code. if ] then commodity_ndm_done=Y fi if ] then customer_ndm_done=Y fi if ] then department_ndm_done=Y fi if ] then division_ndm_done=Y fi (3 Replies)
Discussion started by: superdelic
3 Replies
Login or Register to Ask a Question