Maximum length of command line argument that can be passed to SQL*Plus?

后端 未结 2 1871
长情又很酷
长情又很酷 2020-11-27 15:46

I am calling SQL*Plus from Linux C Shell:

sqlplus username/password @file.sql var1 var2 var3

If I pass a string as var1, ho

2条回答
  •  难免孤独
    2020-11-27 16:29

    Try with: xargs --show-limits

    Your environment variables take up 2446 bytes
    POSIX upper limit on argument length (this system): 2092658
    POSIX smallest allowable upper limit on argument length (all systems): 4096
    Maximum length of command we could actually use: 2090212
    Size of command buffer we are actually using: 131072
    

    There is no limit per argument, but a total for the whole command line length. In my system (Fedora 15/zsh) its closer to 2Mb. (line 4).

提交回复
热议问题