Command Not Found Error?

  • praswer
  • Born
  • Born
  • No Avatar
  • Joined: Jul 17, 2008
  • Posts: 3
  • Status: Offline

Post July 17th, 2008, 9:51 am

Hi,
I am beginer to Linux. I have installed Redhat Linux AS 4.0 on my System.Later I created a User Oracle10g for Installing Oracle.Then I logged onto Oracle10g user and crated a Bash Profile and when I run that profile there was an error in that Profile. from then If I type any of Linux Command like LS, PWD etc i am getting an error like Command not found.
So Please help me out with this. I will be very greateful to you..
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 17th, 2008, 9:51 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post July 17th, 2008, 9:56 am

I am curious. Are you typing those command in capital letters like you did in the post? It is case sensitive so you need to type it lowercase like ls and pwd, not LS and PWD.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • praswer
  • Born
  • Born
  • No Avatar
  • Joined: Jul 17, 2008
  • Posts: 3
  • Status: Offline

Post July 17th, 2008, 10:02 am

Just for Understanding I have mentioned it in Capital Letters.I have typed those letters only in Lower Case.. Is there any possiblity of getting my problem solved..
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post July 17th, 2008, 10:03 am

Post the contents of your bash profile and the error that you're getting.
The Beer Monocle. Classy.
  • praswer
  • Born
  • Born
  • No Avatar
  • Joined: Jul 17, 2008
  • Posts: 3
  • Status: Offline

Post July 17th, 2008, 10:10 am

Hi,
Thank you for you reply.. here is the bash Profile Details under User Oracle10g

export ORACLE_SID=ORCL
export ORACLE_HOME=/oraeng/app/oracle/product/10.2.0
export LD_LIBRARY_PATH=$ORACLE_HOME/lib,/usr/ucblib,/usr/openwin/lin
export PATH =$ORACLE_HOME/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb/bin:$PATH:.
export CLASS_PATH=$ORACLE_HOME/jlib

When I ran this profile, I got an error saying the error in bash profile.
and Later when I tried to edit profile using vi or use other Commands, I am getting an error like command not found.
But All command worked very fine when I logged in as Root user..

Thank you in advance...
  • SouthoKB
  • Born
  • Born
  • No Avatar
  • Joined: Jul 20, 2008
  • Posts: 1
  • Status: Offline

Post July 25th, 2008, 3:09 pm

When logged in as your new user what is the output of the following

echo $PATH
  • gamekiller
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 28, 2006
  • Posts: 101
  • Loc: above the chair
  • Status: Offline

Post July 28th, 2008, 12:47 am

how about using which command?
i.e
#which pwd or #which ls
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post July 28th, 2008, 10:21 pm

does the su command work when logged in as that user?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post July 29th, 2008, 12:55 pm

is it possible the user and the group they are assigned to are non-privileged? That is they do not have the capability to run basic unix commands?

Can you cd to /usr/bin? Wait are you trying to run these commands from the sql command line interface? Or from the unix command line?
"It's always a long day, 86,400 won't fit into a short."

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.