Errorlog truncation

From SybaseWiki
Revision as of 22:50, 23 May 2007 by Psap (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In some cases you want to clear the errorlog of a server of old data and start with a fresh one, but without a reboot. Especially in Sybase IQ, the IQ message file can become *very* big. There is a simple method to do this (only on Linux/Unix). First copy the errorlog for archiving purposes and then create a new one like this:

cp <errorlog> <errorlog>_old
> <errorlog>

That's all!