change user say sudo su - oracle
2) the change folder to cd /sw/database
3) tail -f alert.log
For the first thing, at least, you should be able to do a one-liner like so:
Code:
sudo -u oracle tail -f /sw/database/alert.log
Just put that in a script and run the script.