Search Results

Search: Posts Made By: uuser
2,539
Posted By uuser
ps -ef | grep ora_pmon_abc | grep -v grep ps...
ps -ef | grep ora_pmon_abc | grep -v grep
ps -ef | grep ora_pmon_abc | grep -v grep > abc
cat abc

An empty abc file was created ? don't know why...It was not the case before ?


ps -ef |...
2,539
Posted By uuser
Some env setting is causing the script not to work ?
Not sure what has changed in the Unix environment.
The following script which was working is now not working.


#!/usr/bin/ksh
#...
2,180
Posted By uuser
addtion to the current script !!
How can I add to the current oraenv.sh so that is an oracle_sid is passed then it won't prompt for the vaid sid and just take it. If it is not passed then do what it is doing right now ??



if [...
41,966
Posted By uuser
What doe you mean "sourced" ?? If I run it...
What doe you mean "sourced" ??

If I run it this way I get the following error.
ga016dhd -> . ./setenv.sh
sh: 1: Parameter not set.
[/home/oracle/script - oracle]
ga016dhd ->
41,966
Posted By uuser
Set Oracle Environmental Variable !!
Can someone send me a shell script to set all Oracle environment variable which is working.

I have the following script which works but not 100%. Please advice what you think is wrong.


if [...
5,733
Posted By uuser
THANKS. I FIGURED OUT instead of "-eq"...
THANKS.
I FIGURED OUT

instead of "-eq" when I tried "=" it worked.

bdf | sed "s/%/ /g" | sed "/Filesystem/d" | sed "/cdrom/d" > $ORA_LOG/diskspace.tmp
cat $ORA_LOG/diskspace.tmp | while read...
5,733
Posted By uuser
cat $ORA_LOG/diskspace.tmp | while read LINE >...
cat $ORA_LOG/diskspace.tmp | while read LINE
> do
> SIZE=`echo $LINE | awk '{print $5}'`
> MOUNT=`echo $LINE | awk '{print $6}'`
> echo $MOUNT
> done
/
/stand
/var
/var/adm/sw
/usr...
5,733
Posted By uuser
cat $ORA_LOG/diskspace0.tmp /u001 80 ...
cat $ORA_LOG/diskspace0.tmp
/u001 80
/u002 80
/u003 80

bdf | sed "s/%/ /g" | sed "/Filesystem/d" | sed "/cdrom/d" > $ORA_LOG/diskspace.tmp
cat $ORA_LOG/diskspace.tmp | while...
5,733
Posted By uuser
Looks like something wrong in the IF stmt since...
Looks like something wrong in the IF stmt
since this works
as soon as I get the if it gives the syntax error
cat $ORA_LOG/diskspace.tmp | while read LINE
do
SIZE=`echo $LINE | awk '{print $5}'`...
5,733
Posted By uuser
cat $ORA_LOG/diskspace.tmp | while read LINE do...
cat $ORA_LOG/diskspace.tmp | while read LINE
do
SIZE=`echo $LINE | awk '{print $5}'`
MOUNT=`echo $LINE | awk '{print $6}'`
cat $ORA_LOG/diskspace0.tmp | while read LINE1
do
MOUNT1=`echo $LINE1...
5,733
Posted By uuser
Changed ===== bdf | sed "s/%/ /g" | sed...
Changed
=====
bdf | sed "s/%/ /g" | sed "/Filesystem/d" | sed "/cdrom/d" > $ORA_LOG/diskspace.tmp
cat $ORA_LOG/diskspace.tmp | while read LINE
do
SIZE=`echo $LINE | awk '{print $5}'`...
5,733
Posted By uuser
cat $ORA_LOG/diskspace.tmp | while read LINE > ...
cat $ORA_LOG/diskspace.tmp | while read LINE
> do
> SIZE=`echo $LINE | awk '{print $5}'`
> MOUNT=`echo $LINE | awk '{print $6}'`
> echo $SIZE
> echo $MOUNT
> done
9
/
24...
5,733
Posted By uuser
Thanks....it fixed the syntax error Now I...
Thanks....it fixed the syntax error
Now I getting the following error

./disk_space_util.sh[23]: [/user21d: not found.

./disk_space_util.sh[23]: [/u003: not found.
...
5,733
Posted By uuser
syntax error in script !!
./disk_space_util.sh
./disk_space_util.sh[15]: Syntax error at line 24 : `then' is not expected.

=================================
cat disk_space_util.sh
#!/bin/sh
#
# Parameter Settings...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy