Operating System - HP-UX
1835072 Members
3392 Online
110073 Solutions
New Discussion

Re: need help for a primer ......

 
Gerry Xie_1
Advisor

need help for a primer ......

I am a primer to HP-UX.
I have 2 strange thing happened here need help.
(We are on HP_UX 11i)
(1) use "Putty" or "Tera Term" software telnet to out HP box. I can't use vi. When type in 'vi filename', it gives a whole mass screen and all vi editing command not work. But if I use HummingBird's Exceed to connect to HP box, vi works OK.
Any idea ??????
(2) On one of our HP box, I did put $ORACLE_HOME=/path/... and $ORACL_SID=/path in to the .profile (we use ksh), but it seems not work -- after login, echo $ORACLE_HOME, $ORACLE_SID shown nothing. I did ./.profile again, echo still show nothing. But on other 2 HP box this is not happened.
Any idea?
Thank you in advance.
Sincerely
Ger
Primer
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: need help for a primer ......

What are you setting your terminal type to?

echo $TERM

live free or die
harry
Live Free or Die
Michael Steele_2
Honored Contributor

Re: need help for a primer ......

This will be your environment variable TERM. To see current TERM value:

echo $TERM

To reset:

export TERM=hp

TERM=hp usually works for 85%.
Support Fatherhood - Stop Family Law
Jeff Schussele
Honored Contributor

Re: need help for a primer ......

Hi Ger,

I agree with Harry that your first problem is your TERM setting.
Check the term type you use for putty or the other & run
export TERM=vt100 #or whatever the type is

The second problem is that you have to export the setting - do it in one line like:
export ORACLE_HOME=/path/to/oracle/home #or whatever it is.

HTH,
Jeff

Welcome to the best 'NIX there is & to the best forum on the planet.
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
doug mielke
Respected Contributor

Re: need help for a primer ......

echo $TERM after login from Hummingbird, and again on the one that fails. you can set after login with TERM=xxxx; export TERM.

Check system profile which is read first
/etc/profile
as well as users home.
( ensure you are in correct home dir after login, since a profile can change dirs by looking in /etc/passwd, or simply
cd
pwd
to see what is users home. You may be looking at a different .profile then expected.
Gerry Xie_1
Advisor

Re: need help for a primer ......

Thank you all for the reply.
the 1st problem is term. it default to 'hp' which not work with 'tara term' and 'putty' while Exceed default term to 'ddterm'. it works. I tried vt100. It's works also.
The 2nd. I still work on it. Can any body tell me what the difference between "source" a envron. and "run the source file" ? for example: .profile is a file we can "source" it (do this: . ./.profile) but if you change it to be a executible file and run it (do this: ./.profile), what's the difference?
Thanks.
Ger
Primer
Patrick Wallek
Honored Contributor

Re: need help for a primer ......

When you put something in your /etc/profile or ~/.profile it needs to be done like:

ORACLE_HOME=/path/to/oralce
export $ORACLE_HOME

or it can be done like:

export ORACLE_HOME=/path/to/oracle

just setting:

$ORACLE_HOME=/path/to/oracle

will NOT work.