-
Folks
i need a .profile file very urgently as my .profile is having problems..pls take a look at it and advice..
bcoz im not able to execute the scripts from $ORACLE_HOME/bin directory
our .profile file
stty erase
ORACLE_HOME=/ora/app/oracle/product/8.1.5
export ORACLE_HOME
ORACLE_SID=sdev
export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib,/usr/ucblib,/usr/dt/lib
PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb/bin:/usr/ucb:/etc:$OSM
_BASE/dyna:$OSM_BASE/stat:/export/home/oracle/scripts/dba:.
CLASS_PATH=$ORACLE_HOME/jlib
OSM_BASE=/export/oracle/local/osm;export OSM_BASE
ORACLE_PATH=$OSM_BASE/dyna:$OSM_BASE/stat:$ORACLE_PATH;export ORACLE_PATH
CLASS_PATH=$ORACLE_HOME/jlib
export LD_LIBRARY_PATH PATH CLASS_PATH
stty istrip
#
thanks
sat
sat
-
set path to the bin
hmmm ... you definately got a lot of stuff in there ... maybe your paths are not set properly? Where is your .profile file located?
mine looks like this in C Shell:
umask 022
setenv ORACLE_BASE /u01/app/oracle
setenv ORACLE_HOME $ORACLE_BASE/product/8.0.6
setenv ORACLE_SID AP01
setenv ORACLE_TERM xsun5
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
setenv DBA /export/home/oracle/dba
setenv TOOLS /export/home/oracle/tools
setenv BACKUP_HOME /u04/oradata/AP01/exports
setenv PATH /usr/ccs/bin:${PATH}:$ORACLE_HOME/bin:/opt/oracle/bin:${TOOLS}:${DBA}:${BACKUP_HOME}
cd $ORACLE_HOME
-
my .profile is located in /export/home/oracle directory.
thanks jmagnus
sat
-
One problem is that the directories in your LD_LIBRARY_PATH should be separated with colons (:) instead of commas. Eg,
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/ucblib:/usr/dt/lib
instead of
LD_LIBRARY_PATH=$ORACLE_HOME/lib,/usr/ucblib,/usr/dt/lib
If you're getting a library file not found when you try to execute the programs, that's most likely the source of the problem.
If that doesn't fix it, what error are you getting when you try to execute a program?
-
move:
OSM_BASE= ... ; export OSM_BASE
to any line *above* this line:
PATH = ... ; export PATH
Your path setting statement is referring to $OSM_BASE
before it has been defined.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|