Here I am listing Unix/Linux commnads which might be useful while troubleshooting
Oracle Apps.
Enable Trace on any Executable to find out whats happening at O.S. Level
truss -eafl -o output.trc -o truss.txt <executable>
for example for Apache
truss -eafl -o output.trc -o truss.txt apachectl
This command will trace any system calls and will help you to find out errors.
How to find a "word" or pattern in all files in a directory & subdirectories
find . -name "*" -exec grep -l <pattern> {} \; -print
for example I want to search for word oracle
find . -name "*" -exec grep -l oracle {} \; -print
How to delete files older than N number of days , Useful to delete old log files
find . -name '*.*' -mtime +<T in days> -exec rm {} \;
for example if I want to delete all files older than 7 days
find . -name '*.*' -mtime +7 -exec rm {} \;
*Check carefully & run it first from logs or dump directory
Thanks a lot to Sam for sharing below commands with Apps DBA's
How to find a class inside a set of Jar files
for i in 'find .-name *.jar'
do
if test 'jar -tvf $i|grep QualityObject.class'
then
ls $i
fi
done
|
|
Next Page
|