error: "Invalid argument" setting key "net.ipv4.ip_local_port_range"
今天在搭建10g RAC的時候配置核心引數出現如下問題,記錄下來。
以roo使用者登入,按照Oracle 10g官方文件,起初對 /etc/sysctl.conf 的配置如下:
使配置檔案生效,出現如下錯誤提示:
這個配置參考於cache伺服器varnish的推薦配置和SunOne 伺服器系統最佳化的推薦配置。這裡有個對埠範圍的限制如果不做修改原始的返回只有2.8萬個port區間。
對上述記憶體引數的具體操作命令示例:
檢視埠範圍,如下:
修改核心引數的配置net.ipv4.ip_local_port_range,將其值修改為3276861000
使配置生效如下:
配置生效,無錯誤提示,問題解決。
以roo使用者登入,按照Oracle 10g官方文件,起初對 /etc/sysctl.conf 的配置如下:
kernel.shmmax = 3126704128 kernel.shmall = 2097152 kernel.shmmni = 4096 kernel.sem = 25032000100128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 102465000 net.core.rmem_default = 1048576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144 |
[root@HHDB120 ~]# /sbin/sysctl -p net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 kernel.shmmax = 3126704128 kernel.shmall = 2097152 kernel.shmmni = 4096 kernel.sem = 25032000100128 fs.file-max = 65536 error: "Invalid argument" setting key "net.ipv4.ip_local_port_range" net.core.rmem_default = 1048576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144 |
對上述記憶體引數的具體操作命令示例:
檢視埠範圍,如下:
[root@HHDB120 ~]# sysctl -a | grep range net.ipv4.ip_local_port_range = 32768 61000 |
使配置生效如下:
[root@HHDB120 ~]# /sbin/sysctl -p net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 kernel.shmmax = 3126704128 kernel.shmall = 2097152 kernel.shmmni = 4096 kernel.sem = 25032000100128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 32768 61000 net.core.rmem_default = 1048576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144 |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29634949/viewspace-1243043/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- error: invalid type argument of unary ‘*‘ (have ‘int‘) *__first = __tmp;Error
- error: unknown error 22 setting key 'kernel.shmmax'ErrorHMM
- error creating overlay mount to invalid argument unbuntu系統Error
- OSError: [Errno 22] Invalid argumentError
- Python基礎——positional argument vs keyword argumentPython
- zblog升級報錯“Invalid argument supplied for foreach”或者“unserialize(): Error at offset”的解決辦法Error
- 小程式 · 報錯:Error: errCode: -501007 ,errMsg: Invalid Key Name (__keyPath)Error
- git (v2.18.0) error setting certificateGitError
- struts:實現圖片的上傳 argument type mismatch errorError
- FatalThrowableError in index.php line 554:Type error: Argument 1 passedErrorIndexPHP
- 新增檔案到Sdcard出現Failed to push selection: Invalid argument問題AI
- CentOS8 AnolisOS8 yum安裝 No match for argument: htop ErrorCentOSError
- HTTPSConnection.__init__() got an unexpected keyword argument check_hostnameHTTPGo
- GC Agent Startup Fails on AIX due to Invalid Timezone Setting at OS_825933.1GCAI
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- python -- 解決字典【KEY ERROR】PythonError
- ERROR ITMS-90542: “Invalid CFBundleSupportedPlatforms value.”ErrorPlatform
- nagios監控windows 報NSClient - ERROR: Invalid passwordiOSWindowsclientError
- laravel出現The cipher and / or key length are invalid 的Bug除錯Laravel除錯
- 使用mybatis報錯:Error setting non null for parameter #4 with JdbcType TIMESTAMPMyBatisErrorNullJDBC
- Tensorflow Keras load_model報錯got an unexpected keyword argument ‘ragged‘KerasGo
- Xlib: Invalid MIT-MAGIC-COOKIE-1 key 解決方法MITCookie
- 安卓簽名檔案打包錯誤 Invalid keystore format安卓ORM
- DataPump Export (EXPDP) Fails With Error LPX-216 Invalid CharacterExportAIError
- Sublime修復錯誤【xcrun: error: invalid active developer path… 】ErrorDeveloper
- opatch error code 73 PrereqSession failed Invalid patch location 解決ErrorSessionAI
- nginx: [error] invalid PID number "" in "/var/run/nginx.pid"NginxError
- sendmail settingAI
- Dynamics CRM Error- Creating Entity with an invalid parent. Entity: EmailErrorAI
- ICA Client Error 1043: Invalid Parameter with a Towitoko CHIPDRIVE SIM Card ReaderclientError
- python 讀取 csv 檔案報錯:file = builtins.open (filename, mode, buffering),OSError: [Errno 22] Invalid argumentPythonUIError
- GPG key retrieval failed: [Errno 14] HTTP Error 404: Not FoundAIHTTPError
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)ErrorDeveloper
- SMART Goal SettingGo
- DUMP-CX_SY_OPEN_SQL_DB-DBSQL_DUPLICATE_KEY_ERRORSQLError
- javaScript argument 學習筆記JavaScript筆記
- 9,6 argument應用
- fabirc error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/AppErrorAPP