vi 打开大文件报错 0602-101

OS: AIX 5300-12-05-1140
背景: 上了一台很老的 Oracle 查问题,手滑了,直接vi 了alert日志,报错了...

1. 报错如下

oraprd> vi alert_PRD.log

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

2. 解决办法

2.1 -y Number

Overrides the maximum line setting of 1,048,560 with any value greater than 1024. You should request twice the number of lines that you require because the vi editor uses the extra lines for buffer manipulation.

    vi -y 23333333 alert_PRD.log

2.2 linelimit (ll=)

Sets the maximum number of lines, as per the -y command-line option. This option only is effective if used with the .exrc file or the EXINIT environment variable.

    export EXINIT="set ll=23333333 "  
posted @ 2024-04-18 16:54  Coye  阅读(6)  评论(0编辑  收藏  举报