1.查看swap大小,若小於150M,需添加增加虛擬空間 2.查看操作系統信息 3.安裝前的準備 a.修改主機名,linux7以上系統用:hostnamectl set-hostname hostname 4.關閉selinux:vi /etc/selinux/config,設置如下,重啟系統reb ...
1.查看swap大小,若小於150M,需添加增加虛擬空間
dd if=/dev/zero of=/swapadd bs=1024 count=2006424
mkswap /swapadd
swapon /swapadd
重啟系統虛擬空間會消失,除非打開/etc/fstab文件,加入
/swap swap swap default 0 0
2.查看操作系統信息
[root@docker ~]# uname -m
x86_64
[root@docker ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
3.安裝前的準備
a.修改主機名,linux7以上系統用:hostnamectl set-hostname hostname
4.關閉selinux:vi /etc/selinux/config,設置如下,重啟系統reboot;
5.檢查以下服務是否安裝
binutils-2.23.52.0.1-12.el7.x86_64 compat-libcap1-1.10-3.el7.x86_64 compat-libstdc++-33-3.2.3-71.el7.i686 compat-libstdc++-33-3.2.3-71.el7.x86_64 gcc-4.8.2-3.el7.x86_64 gcc-c++-4.8.2-3.el7.x86_64 glibc-2.17-36.el7.i686 glibc-2.17-36.el7.x86_64 glibc-devel-2.17-36.el7.i686 glibc-devel-2.17-36.el7.x86_64 ksh libaio-0.3.109-9.el7.i686 libaio-0.3.109-9.el7.x86_64 libaio-devel-0.3.109-9.el7.i686 libaio-devel-0.3.109-9.el7.x86_64 libgcc-4.8.2-3.el7.i686 libgcc-4.8.2-3.el7.x86_64 libstdc++-4.8.2-3.el7.i686 libstdc++-4.8.2-3.el7.x86_64 libstdc++-devel-4.8.2-3.el7.i686 libstdc++-devel-4.8.2-3.el7.x86_64 libXi-1.7.2-1.el7.i686 libXi-1.7.2-1.el7.x86_64 libXtst-1.2.2-1.el7.i686 libXtst-1.2.2-1.el7.x86_64 make-3.82-19.el7.x86_64 sysstat-10.1.5-1.el7.x86_64 unixODBC-2.3.1-6.el7.x86_64 or later unixODBC-2.3.1-6.el7.i686 or later unixODBC-devel-2.3.1-6.el7.x86_64 or later unixODBC-devel-2.3.1-6.el7.i686 or laterView Code
若擔心系統包比較舊可考慮先更新程式包:yum -y upgrade,(提示:等待時間比較長!)
用yum進行安裝所需服務:
yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*i686 compat-libstdc++-33*.devel compat-libstdc++-33 compat-libstdc++-33*.devel gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio libaio*.i686 libaio-devel libaio-devel*.devel libgcc libgcc*.i686 libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.devel libXi libXi*.i686 libXtst libXtst*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686
檢查31個包是否都有安裝,版本號只能大於規定的版本,不能小於
rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel
[root@docker ~]# rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel binutils-2.23.52.0.1-55.el7.x86_64 compat-libcap1-1.10-7.el7.x86_64 compat-libstdc++-33-3.2.3-72.el7.x86_64 compat-libstdc++-33-3.2.3-72.el7.i686 gcc-4.8.5-4.el7.x86_64 gcc-c++-4.8.5-4.el7.x86_64 glibc-2.17-106.el7_2.8.x86_64 glibc-2.17-106.el7_2.8.i686 glibc-devel-2.17-106.el7_2.8.x86_64 glibc-devel-2.17-106.el7_2.8.i686 ksh-20120801-22.el7_1.3.x86_64 libaio-0.3.109-13.el7.x86_64 libaio-0.3.109-13.el7.i686 libaio-devel-0.3.109-13.el7.x86_64 libaio-devel-0.3.109-13.el7.i686 libgcc-4.8.5-4.el7.x86_64 libgcc-4.8.5-4.el7.i686 libstdc++-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.i686 libstdc++-devel-4.8.5-4.el7.x86_64 libstdc++-devel-4.8.5-4.el7.i686 libXi-1.7.2-2.1.el7.x86_64 libXi-1.7.4-2.el7.i686 libXtst-1.2.2-2.1.el7.x86_64 libXtst-1.2.2-2.1.el7.i686 make-3.82-21.el7.x86_64 sysstat-10.1.5-7.el7.x86_64 unixODBC-2.3.1-11.el7.x86_64 unixODBC-2.3.1-11.el7.i686 unixODBC-devel-2.3.1-11.el7.x86_64 unixODBC-devel-2.3.1-11.el7.i686View Code
6.創建oinstall和dba組
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
7.創建Oracle用戶
/usr/sbin/useradd -g oinstall -G dba oracle
8.設置oracle密碼
passwd oracle
9.驗證創建及所屬組是否正確:id oracle
[root@docker ~]# id oracle
uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)
10.配置內核參數
[root@docker ~]# vim /etc/sysctl.conf # System default settings live in /usr/lib/sysctl.d/00-system.conf. # To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file # # For more information, see sysctl.conf(5) and sysctl.d(5). fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 7516192768 #7G
kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576
參數的值不能小於上面的配置,因為這是oracle官方建議的最小值,所以生產環境建議調整為這些參數,以優化系統性能。
註意:kernel.shmmax的值,#最低:536870912,最大值:比物理記憶體小1個位元組的值,建議比物理記憶體小一點點就可以(過小的話後期會導致資料庫實例無法啟動或無法監聽)
參數解釋:
shmmax=物理記憶體*80%*80%,單位是位元組 kernel.shmmax:表示單個共用記憶體段的最大值,以位元組為單位,此值一般為物理記憶體的一半,不過大一點也沒關係,這裡設定的為4GB,即“4294967295/1024/1024/1024=4G”。 kernel.shmmin:表示單個共用記憶體段的最小值,預設為1byte kernel.shmall:表示整個系統範圍內可用共用記憶體頁的總量,單位是頁(page),在32位系統上一頁等於4kB,也就是4096位元組。計算公式是:shmmax/PAGE_SIZE kernel.shmmni:表示整個系統範圍內記憶體段的最大數量,一般為4096. ip_local_port_range :表示埠的範圍。在監聽器幫助客戶端進程和伺服器進程建立連接時,會用到指定範圍內的埠。 kernel.sem :表示設置的信號量,這4個參數內容大小固定。 net.core.rmem_default :表示接收套接字緩衝區大小的預設值(以位元組為單位)。 net.core.rmem_max :表示接收套接字緩衝區大小的最大值(以位元組為單位) net.core.wmem_default :表示發送套接字緩衝區大小的預設值(以位元組為單位)。 net.core.wmem_max :表示發送套接字緩衝區大小的最大值(以位元組為單位)。參數解釋
修改後使之生效
/sbin/sysctl -p
11.修改用戶許可權
vim /etc/security/limits.conf
#在末尾添加
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 10240
12.在/etc/pam.d/login 文件中,使用文本編輯器或vi命令增加或修改以下內容
session required /lib64/security/pam_limits.so
session required pam_limits.so
13.在/etc/profile 文件中,使用文本編輯器或vi命令增加或修改以下內容
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
使之生效:source /etc/profile
source /etc/profile
14.創建安裝目錄
mkdir -p /u01/app/
chown -R oracle:oinstall /u01/app/
chmod -R 775 /u01/app/
15.配置環境變數
[oracle@docker ~]$ vim ~/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=dbsrv2
使之生效
source ~/.bash_profile
16.解壓oracle軟體
[root@docker src]# unzip linux.x64_11gR2_database_1of2.zip
[root@docker src]# unzip linux.x64_11gR2_database_2of2.zip
17.切換到Oracle用戶,複製響應文件模板
[oracle@docker ~]$ mkdir etc
[oracle@docker ~]$ cp /usr/local/src/database/response/* /home/oracle/etc/
[oracle@docker ~]$ ls etc
dbca.rsp db_install.rsp netca.rsp
18.設置響應文件許可權
[oracle@docker ~]$ su - root
[root@docker ~]# chmod 700 /home/oracle/etc/*.rsp
19.切換到oracle用戶:su - oracle,修改安裝Oracle軟體的響應文件/home/oracle/etc/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY // 安裝類型
ORACLE_HOSTNAME=docker // 主機名稱(hostname查詢)
UNIX_GROUP_NAME=oinstall // 安裝組
INVENTORY_LOCATION=/u01/app/oraInventory //INVENTORY目錄(不填就是預設值)
SELECTED_LANGUAGES=en,zh_CN,zh_TW // 選擇語言
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 //oracle_home
ORACLE_BASE=/u01/app/oracle //oracle_base
oracle.install.db.InstallEdition=EE // oracle版本
oracle.install.db.EEOptionsSelection=false //自定義安裝,否,使用預設組件
oracle.install.db.DBA_GROUP=dba / / dba用戶組
oracle.install.db.OPER_GROUP=oinstall // oper用戶組
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE //資料庫類型
oracle.install.db.config.starterdb.globalDBName=orcl //globalDBName
oracle.install.db.config.starterdb.SID=dbsrv2 //SID
oracle.install.db.config.starterdb.memoryLimit=81920 //自動管理記憶體的記憶體(M)
oracle.install.db.config.starterdb.password.ALL=oracle //設定所有資料庫用戶使用同一個密碼
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false //(手動寫了false)
DECLINE_SECURITY_UPDATES=true //設置安全更新(貌似是有bug,這個一定要選true,否則會無限提醒郵件地址有問題,終止安裝。PS:不管地址對不對)
20.開始靜默安裝
[oracle@docker database]$ /data/software//database/runInstaller -silent -responseFile /home/oracle/etc/db_install.rsp
21.查看安裝日誌
tail -f /u01/app/oraInventory/logs/installActions2016-08-31_06-56-29PM.log
出現如下提示表示安裝完成
[oracle@zyadmin ~]$ /data/software//database/runInstaller -silent -responseFile /home/oracle/etc/db_install.rsp 正在啟動 Oracle Universal Installer... 檢查臨時空間: 必須大於 120 MB。 實際為 33493 MB 通過 檢查交換空間: 必須大於 150 MB。 實際為 1959 MB 通過 準備從以下地址啟動 Oracle Universal Installer /tmp/OraInstall2018-08-18_03-29-11PM. 請稍候...[oracle@zyadmin ~]$ [WARNING] [INS-13014] 目標環境不滿足一些可選要求。 原因: 不滿足一些可選的先決條件。有關詳細信息, 請查看日誌。/tmp/OraInstall2018-08-18_03-29-11PM/installActions2018-08-18_03-29-11PM.log 操作: 從日誌 /tmp/OraInstall2018-08-18_03-29-11PM/installActions2018-08-18_03-29-11PM.log 中確定失敗的先決條件檢查列表。然後, 從日誌文件或安裝手冊中查找滿足這些先決條件的適當配置, 並手動進行修複。 可以在以下位置找到本次安裝會話的日誌: /data/u01/app/oraInventory/logs/installActions2018-08-18_03-29-11PM.log ^C [oracle@zyadmin ~]$ tail /data/u01/app/oraInventory/logs/installActions2018-08-18_03-29-11PM.log 信息: 構建客戶機共用庫 信息: 此 make 操作的輸出也可以在以下位置獲得: '/data/u01/app/oracle/product/11.2.0/db_1/install/make.log' 信息: 信息: 開始從衍生進程輸出: 信息: ---------------------------------- 信息: 信息: /data/u01/app/oracle/product/11.2.0/db_1/bin/genclntsh [oracle@zyadmin ~]$ Oracle Database 11g 的 安裝 已成功。 請查看 '/data/u01/app/oraInventory/logs/silentInstall2018-08-18_03-29-11PM.log' 以獲取詳細資料。 以 root 用戶的身份執行以下腳本: 1. /data/u01/app/oraInventory/orainstRoot.sh 2. /data/u01/app/oracle/product/11.2.0/db_1/root.sh Successfully Setup Software.View Code
22.使用root用戶執行腳本
su - root
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/db_1/root.sh
常見報錯解決辦法:
(1)若沒有生成orainstRoot.sh這個文件,解決辦法:刪除/etc/oraInst.loc文件
(2) 若重裝Oracle提示:“系統標識符(SID)已經存在,請指定另一個SID”,
解決辦法:把/etc/oratab裡面對應的記錄註釋或者刪除掉
(3)修改Oracle埠:
a.查看監聽狀態,停止監聽 $lsnrctl status $lsnrctl stop b.修改配置文件 $vi $ORACLE_HOME/network/admin/listener.ora (修改對應的埠為欲更改埠) c.登陸並查看local_listener參數 $sqlplus / as sysdba >show parameter local_listener (此時value值是空的) d.修改local_listener參數 >alter system set local_listener="(address=(protocol=tcp)(host=172.16.8.129)(port=1521))"; (host後面加主機名或者IP,然後就可以查看local_listener參數了) e.啟動監聽,查看狀態 >lsnrctl start >lsnrctl status f.防火牆埠開放 # /sbin/iptables -l INPUT -p tcp --dport 埠 -j ACCEPT # /etc/rc.d/init.d/iptables saveView Code
a.查看監聽狀態,停止監聽
$lsnrctl status
$lsnrctl stop
b.修改配置文件
$vi $ORACLE_HOME/network/admin/listener.ora
(修改對應的埠為欲更改埠)
c.登陸並查看local_listener參數
$sqlplus / as sysdba
>show parameter local_listener
(此時value值是空的)
d.修改local_listener參數
>alter system set local_listener="(address=(protocol=tcp)(host=172.16.8.129)(port=1521))";
(host後面加主機名或者IP,然後就可以查看local_listener參數了)
e.啟動監聽,查看狀態
>lsnrctl start
>lsnrctl status
f.防火牆埠開放
# /sbin/iptables -l INPUT -p tcp --dport 埠 -j ACCEPT
# /etc/rc.d/init.d/iptables save
23.增加或修改oracle的環境變數
su - oracle
vim ~/.bash_profile
#for oracle
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=dbsrv2
export ROACLE_PID=ora11g
#export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export LANG="zh_CN.UTF-8"
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
24.配置監聽程式:netca /silent /responsefile /home/oracle/etc/netca.rsp
[oracle@docker ~]$ netca /silent /responsefile /home/oracle/etc/netca.rsp Parsing command line arguments: Parameter "silent" = true Parameter "responsefile" = /home/oracle/etc/netca.rsp Done parsing command line arguments. Oracle Net Services Configuration: Profile configuration complete. Oracle Net Listener Startup: Running Listener Control: /u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl start LISTENER Listener Control complete. Listener started successfully. Listener configuration complete. Oracle Net Services configuration successful. The exit code is 0View Code
25.啟動監聽程式:[oracle@docker ~]$ lsnrctl start
[oracle@docker ~]$ lsnrctl start LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 01-SEP-2016 11:23:31 Copyright (c) 1991, 2009, Oracle. All rights reserved. Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.1.0 - Production System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora Log messages written to /u01/app/oracle/diag/tnslsnr/docker/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=docker)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 01-SEP-2016 11:23:31 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/docker/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=docker)(PORT=1521))) The listener supports no services The command completed successfullyView Code
26.靜默dbca建庫,編輯應答文件
[oracle@docker ~]$ vi etc/dbca.rsp
[GENERAL]
RESPONSEFILE_VERSION = "11.2.0"
OPERATION_TYPE = "createDatabase"
[CREATEDATABASE]
GDBNAME = "dbsrv2"
SID = "dbsrv2"
TEMPLATENAME = "General_Purpose.dbc"
CHARACTERSET = "AL32UTF8"
27.建庫:
[oracle@docker ~]$ dbca -silent -responseFile etc/dbca.rsp
[oracle@docker ~]$ dbca -silent -responseFile etc/dbca.rsp Enter SYS user password: Enter SYSTEM user password: sh: /bin/ksh: No such file or directory sh: /bin/ksh: No such file or directory Copying database files 1% complete 3% complete 11% complete 18% complete 26% complete 37% complete Creating and starting Oracle instance 40% complete 45% complete 50% complete 55% complete 56% complete 57% complete 60% complete 62% complete Completing Database Creation 66% complete 70% complete 73% complete 74% complete 85% complete 96% complete 100% complete Look at the log file Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl11g/orcl11g.log" for further details.View Code
至此資料庫實例創建成功!
參考博客:https://www.cnblogs.com/zydev/p/5827207.html
官方支持:
https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCBCFDI
PS:
刪除實例:
[oracle@docker ~]$ dbca -silent -deleteDatabase -sourcedb dbsrv2
oracle雲在RedHat 6上的一些參數文件,記憶體是8G,供參考:
/etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 # Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 # Disable netfilter on bridges. net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0 # Controls the default maxmimum size of a mesage queue kernel.msgmnb = 65536 # Controls the maximum size of a message, in bytes kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 # oracle-rdbms-server-12cR1-preinstall setting for fs.file-max is 6815744 # oracle-rdbms-server-12cR1-preinstall setting for kernel.sem is '250 32000 100 128' # oracle-rdbms-server-12cR1-preinstall setting for kernel.shmmni is 4096 # oracle-rdbms-server-12cR1-preinstall setting for kernel.shmall is 1073741824 on x86_64 # oracle-rdbms-server-12cR1-preinstall setting for kernel.shmmax is 4398046511104 on x86_64 # oracle-rdbms-server-12cR1-preinstall setting for kernel.panic_on_oops is 1 per Orabug 19642132 # oracle-rdbms-server-12cR1-preinstall setting for net.core.rmem_default is 262144 # oracle-rdbms-server-12cR1-preinstall setting for net.core.rmem_max is 4194304 # oracle-rdbms-server-12cR1-preinstall setting for net.core.wmem_default is 262144 # oracle-rdbms-server-12cR1-preinstall setting for net.core.wmem_max is 1048576 # oracle-rdbms-server-12cR1-preinstall setting for fs.aio-max-nr is 1048576 # oracle-rdbms-server-12cR1-preinstall setting for net.ipv4.ip_local_port_range is 9000 65500 kernel.panic = 10 xen.independent_wallclock = 1 # oracle-rdbms-server-11gR2-preinstall setting for fs.file-max is 6815744 fs.file-max = 6815744 # oracle-rdbms-server-11gR2-preinstall setting for kernel.sem is '250 32000 100 128' kernel.sem = 250 32000 100 128 # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmmni is 4096 kernel.shmmni = 4096 # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmall is 1073741824 on x86_64 # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmall is 2097152 on i386 # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmmax is 4398046511104 on x86_64 # oracle-rdbms-server-11gR2-preinstall setting for kernel.shmmax is 4294967295 on i386 kernel.shmmax = 4398046511104 # oracle-rdbms-server-11gR2-preinstall setting for kernel.panic_on_oops is 1 per Orabug 19212317 kernel.panic_on_oops = 1 # oracle-rdbms-server-11gR2-preinstall setting for net.core.rmem_default is 262144 net.core.rmem_default = 262144 # oracle-rdbms-server-11gR2-preinstall setting for net.core.rmem_max is 4194304 net.core.rmem_max = 4194304 # oracle-rdbms-server-11gR2-preinstall setting for net.core.wmem_default is 262144 net.core.wmem_default = 262144 # oracle-rdbms-server-11gR2-preinstall setting for net.core.wmem_max is 1048576 net.core.wmem_max = 1048576 # oracle-rdbms-server-11gR2-preinstall setting for fs.aio-max-nr is 1048576 fs.aio-max-nr = 1048576 # oracle-rdbms-server-11gR2-preinstall setting for net.ipv4.ip_local_port_range is 9000 65500 net.ipv4.ip_local_port_range = 9000 65500 vm.nr_hugepages = 1404 net.ipv4.conf.all.accept_redirects = 0 net.ipv6.conf.all.accept_redirects = 0 net.ipv4.conf.all.send_redirects = 0View Code
/etc/security/limits.conf
# /etc/security/limits.conf # #Each line describes a limit for a user in the form: #<domain> <type> <item> <value> #Where: #<domain> can be: # - a user name # - a group name, with @group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit #<type> can have the two values: # - "soft" for enforcing the soft limits # - "hard" for enforcing hard limits #<item> can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open file descriptors # - rss - max resident set