Kbase P96596: How to deal with a database log file too large for vi
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
How to deal with a database log file too large for vi
GOAL:
"vi" cannot open the big db.lg
GOAL:
What to do when Operating System (OS) limit for "vi" is hit
FACT(s) (Environment):
Linux Intel
UNIX
FIX:
The following steps can be used to make smaller files and to find which one(s) are to be sent for a specific problem to be investigated by Technical Support.
1. Find the number of lines within db.lg:
wc -l db.lg
2. Split the large file to get files of 30000 lines for example; the files in the sample below will be named newlgaa, newlgab, newlgac, ....
split -30000 db.lg newlg
3. Find the occurrences of a specific Progress error based on its number between parenthesis in the different files. In the command below we are looking for occurrences of
SYSTEM ERROR: Memory violation. (49)
within the files newlgaa, newlgab,...
grep "(49)" newlg*