Link to home
Start Free TrialLog in
Avatar of sgangenamoni
sgangenamoni

asked on

AIX - VI editor issues

When I vi a large file on AIX, I get the following error

ex: 0602-101 Out of memory saving lines for undo.

Is there any work around for this
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Cleanup the /var filesystem
Avatar of sgangenamoni
sgangenamoni

ASKER

My var is only 21% used
The file is 45MB and my VAR has 1GB in total
what do you want to do with this file?
i think in unix you can use csplit
SOLUTION
Avatar of madunix
madunix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The solutions above seems accurate to me:

I recommend having empty for /var/tmp or splitting it as said above.

Or is it possible for you to use emacs since it has no such limiation?

Best regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I see that madunix solution is giving me an approach but what is the directory name here. I want to open /oradbhome/ora/oradiag.log

Is my directory /oradbhome/ora/ ..???
sorry, a typo in the variable name, it's EXINIT
set directory="any_directory_with_enough_free_space"
what is the lines max length in this file? it could be a problem if line length is more than 2048 bytes.
is disk quota enabled by any means?
I am running TL9-SP1
can you provide more info about file content? is it text file? if you run

file filename

what do you get?
Did you try my suggestions 1) - 3) ?
Omar - How do I calculate the max length of a file

wmp - I think the solution didnt work, Also my IBM APAR is at the latest level
bos.rte.edit               5.3.9.0  COMMITTED  Editors
What do you mean ... "I think..."?
Is it a text file? vi can't deal with binary files. Can you tell what is in the file? you could use command like head to see few lines from the file. What the command

file filename

shows?
woolmilkporc - I tried (1-3) did not fix my issue, Sorry "I think.." is wrong to use there.
Its not a binary file, Its a log file.

When I ran ur command here is the output

root@csc06oraacc12 $ file oradiag.log
oradiag.log : ascii  test
[/oradbhome/ora ]

sorry, but again do you have any disk quota enabled?
no my disk quota is not enabled..Omar
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello Omar and wmp,
My max line lenth of the file is 91
What is the line count (from my wc -l thing)?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
give me the ulimit -a for the user you logged in ..

madunix
The above solutions solved part of my problem but not complete, rather it gave me an approach..Thanks for the answers