Unix/Linux commands for Oracle Apps DBA

Google
 
Web teachmeoracle.com
Home Overview Architecture Installation Patching Training Feedback
 
My Blog
WebServer
Concurrent
Autoconfig
Cloning
Training
Apps Interview Q's
Tuning
Scripts
About Me   
 
 
My Favourites

Scripts to find patch Info

Health Check 11i

11i Interview Q's

Apps JVM

Metalink Notes

Component Versions

Important Tables

Profile Options

 
 

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
   
 
Oracle Apps 11i | Oracle Portal | Collaboration Suite | My Blog
Copyright © teachmeoracle.com
This work is copyright protected, Copying content from this site is illegal