Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to view/modify user .profile on HP-UX

885068Jun 23 2015 — edited Jun 25 2015

Hello Experts-

If this is posted in the wrong 'space' please let me know where I should move it to.

I am trying to edit .profile for oracle user so that I can export ORACLE_SID,PATH & such so that I can run . oraenv after I get into the server as 'oracle' OS user.

I find this very odd & I would like some expert opinions as what is going on.

$ id

uid=109(oracle) gid=107(oinstall) groups=108(dba),109(asmoper),110(asmdba),111(asmadmin)

$ whoami

oracle

$ pwd

/home/oracle

$ ls -altr

total 96

drwxr-xr-x   5 oracle     oinstall        96 Sep 14  2012 .sw

drwxr-xr-x   3 oracle     oinstall        96 Sep 14  2012 oradiag_oracle

drwxrwxr-x   2 oracle     oinstall        96 Sep 19  2012 .InstallAnywhere

-rwxrwxrwx   1 oracle     oinstall      1774 Sep 19  2012 .com.zerog.registry.xml

drwxr-xr-x   9 root       root          8192 Mar 25  2013 ..

-rw-r--r--   1 oracle     oinstall       436 Jul 23  2014 .profile

drwx------   2 oracle     oinstall        96 Jun 17 15:39 .ssh

-rw-------   1 oracle     oinstall       200 Jun 23 15:46 .Xauthority

drwxr-xr-x   6 oracle     oinstall      8192 Jun 23 15:46 .

-rw-------   1 oracle     oinstall      3376 Jun 23 15:54 .sh_history

$ cat /home/oracle/.profile

cat: Cannot open /home/oracle/.profile: No such file or directory

$ set

COLUMNS=200

DISPLAY=localhost:10.0

ERASE=^H

ERRNO=10

FCEDIT=/usr/bin/ed

HOME=/home/oracle

IFS='

'

LINENO=1

LINES=71

LOGNAME=oracle

MAIL=/var/mail/oracle

MAILCHECK=600

MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/VRTS/vxfs5.0/man:/opt/ipf/man:/opt/ldapux/share/man/%L:/opt/ldapux/share/man:/opt/ldapux/ypldapd/man:/opt/cifsclient/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man/%L:/opt/wbem/share/man:/opt/graphics/common/man:/opt/hpvm/share/man/%L:/opt/amgr/man/%L:/opt/amgr/man:/opt/sec_mgmt/share/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/caliper/man/%L:/opt/caliper/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/dsau/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/guid/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/hpvm/share/man:/usr/contrib/kwdb/share/man:/opt/VRTS/man:/opt/perl_32/man:/opt/perl_64/man:/opt/prm/man/%L:/opt/prm/man:/opt/propplus/share/man:/opt/psb/healthtest/share/man:/opt/sfm/share/man:/opt/swm/share/man/%L:/opt/swm/share/man:/opt/swa/share/man/%L:/opt/swa/share/man:/opt/ssh/share/man:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/wlm/share/man/%L:/opt/wlm/share/man:/opt/openssl/fips/0.9.7/man:/opt/openssl/fips/0.9.8/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/icod/man/%L:/opt/icod/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/iexpress/net-snmp/man:/opt/iexpress/net-snmp/blib:/opt/iexpress/sudo/man:/opt/iexpress/wget/man:/opt/iexpress/wput/man

OPTARG

OPTIND=1

PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/guid/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/hpvm/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/perf/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/propplus/bin:/opt/sfm/bin:/etc/cmcluster/scripts/tkit/vtn:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/wlm/bin:/opt/gwlm/bin:/opt/ignite/bin

PPID=24373

PS1='$ '

PS2='> '

PS3='#? '

PS4='+ '

PWD=/home/oracle

RANDOM=21441

SECONDS=666

SFTP_PERMIT_CHMOD=1

SFTP_PERMIT_CHOWN=1

SFTP_UMASK=''

SHELL=/sbin/sh

SSH_CLIENT='<IP_Address> 63770 22'

SSH_CONNECTION=',<IP_Address> 63770 <IP_Address> 22'

SSH_TTY=/dev/pts/0

TERM=xterm

TMOUT=0

TZ=MST7MDT

USER=oracle

_=/home/oracle/.profile

$

If I do a 'vi' it is opening as a NEW file. Could someone let me know what might be going on here.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2015
Added on Jun 23 2015
13 comments
2,407 views