2026-03-12 20:23:15
This commit is contained in:
10
tpt/tools/unix/findhomes.sh
Normal file
10
tpt/tools/unix/findhomes.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# A little helper script for finding ORACLE_HOMEs for all running instances in a Linux server
|
||||
# by Tanel Poder (http://blog.tanelpoder.com)
|
||||
|
||||
printf "%6s %-20s %-80s\n" "PID" "NAME" "ORACLE_HOME"
|
||||
pgrep -lf _pmon_ |
|
||||
while read pid pname y ; do
|
||||
printf "%6s %-20s %-80s\n" $pid $pname `ls -l /proc/$pid/exe | awk -F'>' '{ print $2 }' | sed 's/bin\/oracle$//' | sort | uniq`
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user