Receiving command not found after modifying .bash_profile in OEL 5.6 64 bits
Hi guys,
After the installation of Oracle Database 11gR2 on OEL 5.6, I added the following entries into the .bash_profile of the oracle user:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
# I added my own values relative to my environment.
But now, when I tried to login as the oracle user on my terminal, I received the following error:
command not found
command not found
So I deleted all the entries I added to the .bash_profile file. But it didn't solve the problem. When I log in as oracle, I still receive the error:
command not found
command not found
This is really weird. How can I do to solve this error?
Thanks in advance
Clamarion.
The following command might show you where the problem is:
bash -l -x
See "man bash" for details.
Similar Messages
-
(OEL 4.7) -bash: sqlplus: command not found after install of 10g R2
Hi all
I'm new to Linux and I would like your help and directions on a few things:
After 2 days of battle with RPM's (i386 vs x86_64) i was finally able to install 10g R2 on OEL 4.7 x86_64 system without any errors.
please check if all these settings are correct and help me how to start sqlplus? or create a database with dbca
I followed all the directions in Doc ID: 339510.1.
During installation i choose this path as the ORACLE_HOME
/u01/app/oracle/product/10.2.0/
I did not however installed the default database.
I then ran the two scripts at the end of the installation as root.
Here are my settings:
oracle bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
:q
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=/product/10.2.0/db_1;
export ORACLE_HOME
export PATH=$ORACLE_HOME/bin:$PATH
here is my oracle env result
[oracle@nycoralp01 /]$ env | grep -i ORACLE
OLDPWD=/home/oracle/oraInventory
USER=oracle
ORACLE_BASE=/u01/app/oracle
MAIL=/var/spool/mail/oracle
PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
HOME=/home/oracle
LOGNAME=oracle
ORACLE_HOME=/product/10.2.0/db_1
here is my echo $ORACLE_HOME result:
[oracle@nycoralp01 /]$ echo $ORACLE_HOME
/product/10.2.0/db_1
Can someone please tell me what did i miss or did not set?
When i try to run sqlplus i get this error
[oracle@nycoralp01 /]$ sqlplus
-bash: sqlplus: command not found
Any help appreciatedI change it in my bash_profile
$ vi ~oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
:q
ORACLE_BASE=/u01/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
export ORACLE_HOME
export PATH=$ORACLE_HOME/bin:$PATH
and i'm still getting the same error
-bash: sqlplus: command not found
Is there anything else i'm missing? do i have to restart anything? -
Bash: command not found after piping
Hi,
I'm trying something quite commonly found in an Unix environment, namely piping the output of one command into the input of a subsequent one, eg.
bash$ ps ax | grep -i bash
But unfortunately I'm receiving--and now comes the most curious part--most of the times (not always!!) an error message
bash: grep: command not found
When calling grep directly
bash$ grep
the resulting output is
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
"which"-ing the commands
bash$ which bash ps grep
results in
/bin/bash
/bin/ps
/usr/bin/grep
Cheers,
MMHeinGood, you tried a different shell. sh and bash are essentially the same executable on Mac OS X.
Did you try a new user account? What were those results?
Have you tried installing your own bash? Either build from sources, or use something like MacPorts.org to install one already configured for Mac OS X.
You also have ksh and zsh if they happen to rock your boat (see /etc/shells for a list of installed shells).
I think both Linc an dI agree that we have never seen this situation before either, which is why we suspect something has become corrupt. The "Nuke and Pave" approach tends to eliminate that possibility. But since you have lots of Unix experience (even though you missed a few Unix flavors ), and want to find the root cause, then you need to start doing tests that eliminate components.
The shells on my Mac OS X 10.7.2 Lion system have the following chksum's
cksum /bin/*sh
188949626 1371648 /bin/bash
1672788767 772992 /bin/csh
4164734636 2180736 /bin/ksh
1711289041 1371712 /bin/sh
1672788767 772992 /bin/tcsh
2366092939 1103984 /bin/zsh
I would expect yours to be identical. But that does not take into account any libraries used. And if you have the same values, then you need to look at something else (again, a new account can go a long way to eliminating things in your environment, or pointing to a system component). -
[SOLVED] "ip: command not found" after power failure
Hello,
After a power failure my Arch box has no network connection available. An 'ip addr' command showed me the outrageous error message :
bash: ip: command not found
How could this ever happen ? How do I recover from such an error ?
Last edited by singleton (2014-12-19 17:34:58)I wasn't doing any system maintenance when the power failed, just some regular browsing.
Here's the output of each command :
pacman -Qk
https://bpaste.net/show/e06fb962c42c
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
ls -l /usr/bin/ip
ls: cannot access /usr/bin/ip: No such file or directory
pacman -Qi iproute2
error: package 'iproute2' was not found
I 'm suspecting I will need to use a fresh installation CD to get over this. Any guidance will be greatly appreciated though! -
Lircd: command not found after install of lirc
Hi!
I've had some problems with lirc and had to uninstall it from my system. I also deleted
the files named lirc* after I uninstalled. I then cleaned the pacman cache and reinstalled
lirc.
I did this in a hope of getting a complete reinstall of lirc. The installation went fine, but my
system doesn't seem to see that lirc has been reinstalled. When I do #lircd (which used to
start lircd) I get #bash: lircd: command not found
I've tried to reinstall several more times by #pacman -S lirc and it runs through the installation.
I still get #bash: lircd: command not found though.
What am I doing wrong? Why won't lirc go back to working like it should do after reinstallation??azleifel wrote:
The lircd daemon expects to be run at startup and needs root permissions because it will create device nodes in /dev. Try "man lircd" for more information.
To run lircd at startup, add it to the DAEMONS line in /etc/rc.conf. If needed, add any necessary kernel module to the MODULES line of /etc/rc.conf while you're there. As an example, I have MODULES=(lirc-mceusb2) for my trusty Microsoft MCE remote control and DAEMONS=(@lircd).
That did it!! Thanks.
I spent hours and hours yesterday trying to figure out how to autostart lircd. Now everything works.
When I try #irw every button I push is mapped with the right name and function. But in Freevo things are not that smooth. It seems
freevo only understands a few of the buttons.
I've seen that in myth there's a config file (or something) that seems to map out the remote functions in relation to myth itself. Do I
need a similar config file for freevo?
EDIT: nwm... I found out that yes, I do.
Last edited by Perre (2008-04-13 10:59:09) -
Kde4-config: command not found (after upgrade of kde4 to version 4.6)
When I upgraded my KDE desktop to latest version, it seems that it has removed the kde4-config command.
Unfortunately I don't know which package it belongs to?
I get the error when I execute startkde script from ~/.xinitrc
I have tested to re-install KDE but it doesn't resolve my problem.
Anyone know which package it is?Ok, very weird, I re-installed latest version of kdelibs again and now I have the kde4-config command.
Problem solved.
Thanks! -
Terminal: Command not found
I'm trying to install ruby via homebrew onto my computer (Macbook air Yosemite), but when I put a command into the terminal, I always get "command not found".
I was trying to open ~/.bash_profile to TextEdit and add on export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/user/local/php5/bin:/user/local/mysql/bin but when I put in~/.bash_profile it comes up with /.bash_profile: Permission denied
I don't remember all the details but yesterday I also tried text editing homebrew and it didn't do anything so I undid it.
Any suggestions would be greatly appreciated!Well, I'm afraid I'm not going to be much more use than to suggest:
Make sure to make a copy in case something goes wrong.
1. Check out this site. Seemed to be helpful for modifying the path.
http://albertogrespan.com/blog/installing-ruby-the-right-way-on-os-x-using-rbenv /
2. I don't think you need all the lines with "if which rbenv..." Try removing all but one. (might want to keep two with the fode_modules)
3. Try editing the end of the first line to:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/user/local/php5/bin:$PATH
4. Remember that after each attempt you need to type into terminal "source .bash_profile" otherwise the changes won't take effect.
5. Uninstall and reinstall ruby.
TextEditor is really awful now in the new operating system. It saves changes automatically, so if you accidentally make a change and don't notice, you could screw things up. Sorry I can't be more help. -
The majority of Terminal command, "not found"
When I was trying to mess around with my Kinect camera on my iMac today, via Terminal, I noticed a peculiar thing occurring when I tried to use even the most basic of Terminal commands.
For example, I typed in "ls" to try to list the directories and files of my current directory, but was presented with the following instead:
"-bash: ls: command not found"
Without the quotes obviously.
Why is this happening? Should I be concerned?Is there any reason why I don't have a ".profile saved.profile" or a ".bash_profile saved.bash_profile"?
It just displays:
"No such file or directory".
Ouch! By default there are no shell initialization files. I was assuming that the MySQL installation created either a .profile or a .bash_profile, or the instructions had you manually creating one of them.
If you do not have a .profile nor a .bash_profile, then I'm not sure where the MySQL installation put them.
But just to be on the safe side and make sure we are looking in the correct directory try:
echo $HOME # just want to make $HOME variable is properly setup.
/bin/ls -l $HOME/.profile $HOME/.bash_profile $HOME/.bash_login $HOME/.bashrc
I apologize if I missed some of your explanations, I don't mean to be fussy!
Your Terminal sessions are not working. I would be more than "fussy" if that happened to me! Then again, I live inside of terminal sessions
xurizaemon had an earlier post where he listed some additional places that PATH could be modified.
/bin/cat /etc/profile
/bin/ls -R /etc/paths.d
You might go back and re-read what xurizaemon wrote in that post.
Another thing you could try is, using System Preferences -> Accounts, create a new account, and see if that account has the same Terminal problem (this is an experiment, not a solution). If it does, then it would seem the changes were global, so the /etc/profile, and /etc/paths.d locations are candidates. If the problem does NOT occur for a new account, then this would point to $HOME/.profile, $HOME/.bash_profile, $HOME/.bash_login.
Message was edited by: BobHarris -
[SOLVED] 'sh: nano: command not found' on installation in arch-chroot
Hello,
I'm trying to install Arch Linux on a new laptop with a UEFI motherboard, however while following the beginners' guide on the step which requires you to arch-chroot into the /mnt base system to modify the locale.gen file using nano, I receive the following error:
'sh: nano: command not found'
I have mounted the partitions, installed the base system and have tried searching online for a solution but nothing seems to work. Also, nano works while outside of arch-root so I believe it is installed on my system.
I'm almost completely out of ideas on how to fix this, so any help or a point in the right direction would be greatly appreciated.
- Thanks.
Last edited by tyor (2013-01-20 12:01:54)I had the same problem during my first attempts to install Arch. When you use the command as stated:
# pacstrap -i /mnt base base-devel
it seems not all packages were downloaded/installed. Now I know it was my own fault by not selecting the packages properly.
In the beginnersguide right above the pacstrap command is stated:
The -i switch can be omitted if you wish to install every package from the base and base-devel groups without prompting.
So I did, and installed without a problem -
Compile smartmontools pkg from terminal: command not found
hi there!
when i comiple tar.gz packages i usally install it by this way:
cd smartmontools-6.0
./configure
make
sudo make install
everythink ok but when i prompt:
smartctl /dev/disk1s2
i see the error: command not found
whats wrong? i googled it up and it seems that the command isnt in the system path but cant find to fix it!
is a smartctl specific problem or after compiling/install am i missing something?
thanks
Enrico
(osx: 10.8.2)Open Source installers DO NOT mess with individual user shell initialization scripts. Open Source project may be installed on single user systems, or multi-user systems so to update every possible user's shell initialization files becomes a nightmare. For example which accounts should be updated, and which are daemon accounts that should be left along. Which shell does the user of each account prefer to use? And for some shells, there are multiple different shell initialzation files, so which one does the shell initialzation file select. And if the user already has a PATH environment variable in a shell initializaton file that gets executed AFTER the file the installer choose (.bash_profile vs .bashrc), then all the installers work would be for nothing, and worse confuse the user. And the user already has the directory in PATH, but they are not logged in, does the installer parse all the other user's shell initialzation files to figure out if that user does not need an update PATH, or does it blindly add yet another export PATH to one of the shell initialization files?
Open Source installers worry about the getting the app built and installed. It leaves the user's personal files alone, for very good reasons :-) -
-bash: ssh: command not found = no ssh?
Hi all,
Sorry if this isn't the right category - this seemed to be the best fit.
I'm having trouble with SSH.
I've used ssh in the past (back when I was running Leopard) but I've never had all that much use for it. Today, however, I opened up terminal to SSH to an iMac on my local network, and got the following back:
-bash: ssh: command not found
Having a look around on the internet, somebody else said that they got this message but was still able to see the SSH manual by typing ssh man. However, when I tried this I just got "command not found" again.
Any ideas?
Thanks in advance,
BrutalSpoon.Do you remember if you modified .profile or .bash_profile when you installed mysql?
I guess you could search for the file that has the modification
/usr/bin/grep /usr/local/mysql/bin $HOME/.[a-z]*
Once you find the file, edit that file and put a dollar sign infront of PATH
/usr/bin/nano /name/of/file/with/mysql/bin/in/it
The entry you want to fix most likely looks like
export PATH=PATH:/usr/local/mysql/bin
you want to change this to
export PATH=$PATH:/usr/local/mysql/bin
The problem is the missing dollar sign $ which would cause the current PATH to be substituted before the addition of /usr/local/mysql/bin.
Once the change is made, quit Terminal and relaunch it. The corrected PATH should now work.
NOTE: If you do not want to use nano you could use TextWrangler (via File -> Open Hidden...), or Smultron (via File -> Open Hidden...). You should be able to find these GUI based text editors via <http://versiontracker.com>.
Good luck. -
Sudo: user: command not found
Hi there,
I'm struggling with this sudo problem.
All i've been doing with terminal was logging into another account on my iMac and running an application, so i write sudo disk (disk is username for the other account)
then i enter password and path to the application
i've been doing this for past 3-4 month every day, bet since yesterday after entering pasword i get this error - sudo: user: command not found
Any help here would be appreciated!
Thank youwhich sudo returns: /usr/bin/sudo
i used First Aid to verify disk permissions 3 times.. repaired them, but it keeps giving me the same errors every time i hit Verify Disk Permissions..
List of errors:
Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jconsole.ja r", should be lrwxr-xr-x , they are lrw-r--r-- .
User differs on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib", should be 0, user is 95.
User differs on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries", should be 0, user is 95.
Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Home/lib/security/cacerts", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPluginCocoa.b undle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar ", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Home/lib/security/cacerts", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPlugin Cocoa.bundle/Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrw-r--r-- .
Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPlugin Cocoa.bundle/Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
Permissions verification complete
Are these pretty bad errors? Are these causing sudo not to work? -
[SOLVED]mkinitcpio command not found!??
Hello all,
I receive the following when trying to rebuild the stock kernel:
[taylor-unix@Legion Desktop]$ sudo mkinitcpio -p kernel26
sudo: mkinitcpio: command not found
[taylor-unix@Legion Desktop]$
The same error occurs even after the re-installation of 'mkinitcpio'.
I've had the same problem with 'hwdetect', regardless of whether I've reinstalled it.
I seem to have commands that do not work on this system, like 'shutdown' for example.. 'shutdown: command not found'. Perhaps I've missed installing a crucial package?
I need help..
My sincerest thanks in advance.
Last edited by edward.taylor89 (2010-11-10 17:39:46)Here as follows:
mkinitcpio /etc/
mkinitcpio /etc/mkinitcpio.conf
mkinitcpio /etc/mkinitcpio.d/
mkinitcpio /etc/mkinitcpio.d/example.preset
mkinitcpio /lib/
mkinitcpio /lib/initcpio/
mkinitcpio /lib/initcpio/functions
mkinitcpio /lib/initcpio/hooks/
mkinitcpio /lib/initcpio/hooks/btrfs
mkinitcpio /lib/initcpio/hooks/consolefont
mkinitcpio /lib/initcpio/hooks/dmesg
mkinitcpio /lib/initcpio/hooks/keymap
mkinitcpio /lib/initcpio/hooks/memdisk
mkinitcpio /lib/initcpio/hooks/net
mkinitcpio /lib/initcpio/hooks/resume
mkinitcpio /lib/initcpio/hooks/sleep
mkinitcpio /lib/initcpio/hooks/udev
mkinitcpio /lib/initcpio/init
mkinitcpio /lib/initcpio/init_functions
mkinitcpio /lib/initcpio/install/
mkinitcpio /lib/initcpio/install/autodetect
mkinitcpio /lib/initcpio/install/base
mkinitcpio /lib/initcpio/install/btrfs
mkinitcpio /lib/initcpio/install/consolefont
mkinitcpio /lib/initcpio/install/dmesg
mkinitcpio /lib/initcpio/install/dsdt
mkinitcpio /lib/initcpio/install/filesystems
mkinitcpio /lib/initcpio/install/fw
mkinitcpio /lib/initcpio/install/ide
mkinitcpio /lib/initcpio/install/keymap
mkinitcpio /lib/initcpio/install/memdisk
mkinitcpio /lib/initcpio/install/net
mkinitcpio /lib/initcpio/install/pata
mkinitcpio /lib/initcpio/install/pcmcia
mkinitcpio /lib/initcpio/install/resume
mkinitcpio /lib/initcpio/install/sata
mkinitcpio /lib/initcpio/install/scsi
mkinitcpio /lib/initcpio/install/sleep
mkinitcpio /lib/initcpio/install/udev
mkinitcpio /lib/initcpio/install/usb
mkinitcpio /lib/initcpio/install/usbinput
mkinitcpio /lib/initcpio/udev/
mkinitcpio /lib/initcpio/udev/01-memdisk.rules
mkinitcpio /lib/initcpio/udev/load-modules.sh
mkinitcpio /sbin/
mkinitcpio /sbin/mkinitcpio
mkinitcpio /usr/
mkinitcpio /usr/share/
mkinitcpio /usr/share/man/
mkinitcpio /usr/share/man/man5/
mkinitcpio /usr/share/man/man5/mkinitcpio.5.gz -
Command not found error while executing a shell script
Hello,
I am a newbie to linux.I am attaching the code which gives me following errors..
error list:
1. no such file or directory enviornemnt
2. command not found
3. ambiguous redirectline
Script
cd $HOME/wkdir
rm /tmp/*.log
# source environment
. ./env
# Run the install script to setup the database
# Configure SH account
sqlplus "/ as sysdba" <<! > /tmp/perflab_install.log 2>&1
grant connect, resource, dba to SH;
alter user sh account unlock;
# create the fetch_n_rows procedure
sqlplus "$PERFLAB_USER" <<! >> /tmp/perflab_install.log 2>&1
drop index sales_time_bix;
drop index sales_time_idx;
create index sales_time_idx on sales(time_id) compute statistics;
-- fetch_n_rows: fetches 'n' rows from the specified statement --
CREATE OR REPLACE PROCEDURE fetch_n_rows(
stmt VARCHAR,
name VARCHAR,
nexec NUMBER := 1,
nrows NUMBER := 0,
debug BOOLEAN := FALSE)
IS
-- Local variables
curs INTEGER := null;
rc INTEGER;
nexec_it INTEGER := 0;
nrows_it INTEGER;
BEGIN
dbms_application_info.set_module('DEMO', name);
WHILE (nexec_it < nexec)
LOOP
curs := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(curs, stmt, DBMS_SQL.NATIVE);
rc := DBMS_SQL.EXECUTE(curs);
nrows_it := 0;
LOOP
IF (dbms_sql.fetch_rows(curs) <= 0 OR (nrows <> 0 AND nrows_it = nrows
THEN
EXIT;
ELSE IF (debug = TRUE)
THEN
DBMS_OUTPUT.PUT_LINE(nrows_it);
END IF;
END IF;
nrows_it := nrows_it + 1;
END LOOP;
DBMS_SQL.CLOSE_CURSOR(curs);
nexec_it := nexec_it + 1;
END LOOP;
dbms_application_info.set_module(null, null);
END fetch_n_rows;
show errors
# Start the workload
. ./start_workload.sh > /tmp/setup_perflab.log 2>&1
# Wait two minutes for workload to get going
sleep 120
# Modify snapshot interval
sqlplus -s /NOLOG <<EOF >> /tmp/setup_perflab.log 2>&1
connect / as sysdba
set head on
set feedback on;
set pagesize 40
rem -- event to allow setting very short Flushing interval
alter session set events '13508 trace name context forever, level 1';
rem -- change INTERVAL setting to 2 minutes
rem -- change RETENTION setting to 6 hours (total of 180 snapshots)
execute dbms_workload_repository.modify_snapshot_settings(interval => 2,-
retention => 360);
EOF
Note : start_workload.sh is also in the same directory..
Any help would be greatly appreciated.Please put your script between "code" format delimiters.
http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
You can add the line "set -x" at the beginning of your script to see at which line it fails? I suspect the . ./env line. -
Shell Commands not found error when running application
Hello,
Im using MonoDevelop IDE in my Mac, before it used to work fine but after few days, now when I'm opening the application nothing happens., i checked the Console for the log and it says this
May 9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 17: dirname: command not found
May 9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 31: //mono-version-check: No such file or directory
May 9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x52052].com.ximian.monodevelop[1510]): Exited with code: 1
I thought may be some error with the "dirname" command, so i commented it in the code and gave the path of directory myself and then the console shows up like this.
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: grep: command not found
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: cut: command not found
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 20: cut: command not found
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 21: cut: command not found
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 22: cut: command not found
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 31: osascript: command not found
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: Cannot launch MonoDevelop
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: MonoDevelop requires the Mono Framework version 2.10.4 or later.
May 9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x56056].com.ximian.monodevelop[1532]): Exited with code: 1
I opened the contents of the application and run the shell script for opening aplication there it worked very fine and application started working.. But if i open application directly through launchpad or finder it doesnt show up and console
I tried running those commands in the terminal directly there they work.. But dunno whats wrong in here. and even if try to open the application through the terminal it all opens fine.. what could be the possible problem, is it with my mac..?i finally figured out the problem.. it is with the environmental variables. the path for all those commands like "grep" is not being set for the GUI applications. that is why i got that error.
for those GUI applications which require path, we have to set path in the file /etc/launchd.conf the environmental variables set in here are used by the gui applications and those which are launched through spotlight.
that file may bot be present in most of the macs. No problem even if not present,we can create one and use.
so type in terminal
$ sudo vi /etc/launchd.conf
and in the editor add these lines
setenv PATH = /new/path
and save. Note: replace /new/path with the path which you need to have for the commands used in the script.
remeber that you need to restart your mac for applications to use these environmental variables.
Maybe you are looking for
-
How to restore from Time Machine WITHOUT install discs using a second Mac
It's a question that is asked repeatedly all over the web by Mac users like me that bought in to Time Machine (TM) on the assumption that if their computer died one day it would be a piece of cake to restore from it, only for that day to come and the
-
Windows 8 Recovery Issue On HP Laptops
I have an Envy 17t j000 that runs the Windows 8 operating system which I have upgraded to 8.1. Because why not. About a month ago I have decided to do a system recovery at the end of my college semester. I preferred to do a Minimized System Recovery,
-
Databinding problem - tutorial
Hello, I have just began to work with the SAP .NET connector. I am trying to do the tutorial : "Write an ASP.NET Client Application with SAP.NET Connector". The user writes a name in a textbox. Then the programm calls the Bapi RFC_CUSTOMER_GET and i
-
Hi Experts, We are on EHP7 / NWBC. On MSS for Substitution, we have requirement that, Manager should see his/her work item by default and if he/she wants to see substitute's work item, it should go to another tab. The current functionality, displays
-
Where is the print centre ?
any one else missing the print centre, print seems to work from apple app but not from Adobe Lightroom (major pain) anyone know how to get it back, pacifist won't open the DVD installer. Carl