Category: Operating Systems

Tracing SQL across the wire

This can be really useful in place of database tracing, especially when you want to see the action the *application* takes, and not just what it does in the database. [user@************** common]# tcpdump -A -nn port 1521 | \ >…

Quiet svn+ssh

While issuing various svn commands and using the svn+ssh protocol, we found that the output of /etc/issue could really clutter up the screen. We added the following in the $HOME/.ssh/config LogLevel quiet This eliminated the output of /etc/issue.

Allowing oracle to read /var/log/messages

The system log sometimes contains important information for troubleshooting cluster issues. setfacl -m u:oracle:r /var/log/messages On RHAT, the ACL is preserved so when logrotate is run, oracle will be able to read the new /var/log/messages file and the “old” ones…

tcpdump to see Oracle errors

Not all exceptions are created equally, and most you can ignore (the one below you can, in general). However, if you have to troubleshoot on JBOSS (or anywhere a Linux application connects to an Oracle database), what is below is…

Print thread dump for a single thread

We had an issue where a single thread was using all the CPU. We wanted to check it at the command line while troubleshooting. We used what is below… [atg@CMHLDECOMAP01 ~]$ jstack 3000 | awk ‘{if ($1 == “\”Thread-9\””) {i…

Open ports by interface

I often use what is below to get a listing of currently open ports by interface. If you find you can’t “see” a port from another computer, and… it is open on the IP to which you are trying to…

Comparing RPM’s between servers

Periodically, I will want to compare the RPM installations between two or more servers. Sometimes, I may not care about the specific versions of each RPM, but only that *some* version exists. To do this, I can use awk and…