oracle 11g r2 install
oracle 11g release 2 install for linux as 5 x64[@more@]1.安裝檢查準備
檢視記憶體、SWAP空間、硬碟空間、CPU情況。
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
Between 1 GB and 2 GB 1.5 times the size of RAM
Between 2 GB and 16 GB Equal to the size of RAM
More than 16 GB 16 GB
The following or later versions of the operating system are required for Oracle Database 11g Release 2 (11.2):
•Asianux 2
•Asianux 3
•Oracle Enterprise Linux 4 Update 7
•Oracle Enterprise Linux 5 Update 2
•Red Hat Enterprise Linux 4 Update 7
•Red Hat Enterprise Linux 5 Update 2
•SUSE Linux Enterprise Server 10 SP2
•SUSE Linux Enterprise Server 11
2.禁用secure Linux
因為SELINUX對oracle有影響,所以把secure linux設成無效,透過編輯/etc/selinux/config 檔案禁用secure linux,確認其中的SELINUX標記如下:SELINUX=disabled。
也可以透過GUI工具(Applications > System Settings > Security Level),選擇SELinux禁用該屬性;
3.設定核心引數
cat >>/etc/sysctl.conf< kernel.shmall = 4294967296
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=1048576
net.core.wmem_max=1048576
EOF
sysctl -p命令使得核心改變立即生效
kernel.shmmax = 536870912 1073741824 2147483648 ,4294967296分別代表1G、2G、4G,8G(根據系統實體記憶體大小,選擇相應值)
注:kernel.shmmax和kernel.shmall在原始檔中也有引數,不要重複設定。
4.設定oracle使用者的shell limit
cat >> /etc/security/limits.conf < oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
5.更改/etc/pam.d/login檔案,
新增下面的內容,使shell limit生效:
cat >> /etc/pam.d/login < session required pam_limits.so
EOF
6.新增組和使用者:
groupadd oinstall
groupadd dba
useradd oracle -g oinstall -G dba
passwd oracle
7.更改oracle使用者環境變數
vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=/u01/oracle/product/11.1.0/
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=ocmdb1
8.建立Oracle的安裝目錄
mkdir -p /u01/oracle/product/11.1.0
chown -R oracle:oinstall /u01
chmod -R 775 /u01
unzip *.zip
chown -R oracle.oinstall database
chmod -R 775 database
9.檢查系統安裝包。
rpm -q binutils compat-libstdc++-33 gcc gcc-c++ glibc glibc-common glibc-devel libgcc libstdc++ libstdc++-devel make elfutils-libelf elfutils-libelf-devel libaio libaio-devel sysstat unixODBC unixODBC-devel
64位需要如下包:
rpm -q binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 elfutils-libelf-0.125 elfutils-libelf-devel-0.125 gcc-4.1.1 gcc-c++-4.1.1 glibc-2.5-12 glibc-2.5-12 glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5-12 libaio-0.3.106 libaio-0.3.106 libaio-devel-0.3.106 libgcc-4.1.1 libgcc-4.1.1 libstdc++-4.1.1 libstdc++-4.1.1 libstdc++-devel 4.1.1 make-3.81 numactl-devel-0.9.8.x86_64 sysstat-7.0.0
注:保證以上的安裝包都安裝完畢。
10./database/runInstaller完成安裝。
檢視記憶體、SWAP空間、硬碟空間、CPU情況。
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
Between 1 GB and 2 GB 1.5 times the size of RAM
Between 2 GB and 16 GB Equal to the size of RAM
More than 16 GB 16 GB
The following or later versions of the operating system are required for Oracle Database 11g Release 2 (11.2):
•Asianux 2
•Asianux 3
•Oracle Enterprise Linux 4 Update 7
•Oracle Enterprise Linux 5 Update 2
•Red Hat Enterprise Linux 4 Update 7
•Red Hat Enterprise Linux 5 Update 2
•SUSE Linux Enterprise Server 10 SP2
•SUSE Linux Enterprise Server 11
2.禁用secure Linux
因為SELINUX對oracle有影響,所以把secure linux設成無效,透過編輯/etc/selinux/config 檔案禁用secure linux,確認其中的SELINUX標記如下:SELINUX=disabled。
也可以透過GUI工具(Applications > System Settings > Security Level),選擇SELinux禁用該屬性;
3.設定核心引數
cat >>/etc/sysctl.conf<
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=1048576
net.core.wmem_max=1048576
EOF
sysctl -p命令使得核心改變立即生效
kernel.shmmax = 536870912 1073741824 2147483648 ,4294967296分別代表1G、2G、4G,8G(根據系統實體記憶體大小,選擇相應值)
注:kernel.shmmax和kernel.shmall在原始檔中也有引數,不要重複設定。
4.設定oracle使用者的shell limit
cat >> /etc/security/limits.conf <
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
5.更改/etc/pam.d/login檔案,
新增下面的內容,使shell limit生效:
cat >> /etc/pam.d/login <
EOF
6.新增組和使用者:
groupadd oinstall
groupadd dba
useradd oracle -g oinstall -G dba
passwd oracle
7.更改oracle使用者環境變數
vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=/u01/oracle/product/11.1.0/
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=ocmdb1
8.建立Oracle的安裝目錄
mkdir -p /u01/oracle/product/11.1.0
chown -R oracle:oinstall /u01
chmod -R 775 /u01
unzip *.zip
chown -R oracle.oinstall database
chmod -R 775 database
9.檢查系統安裝包。
rpm -q binutils compat-libstdc++-33 gcc gcc-c++ glibc glibc-common glibc-devel libgcc libstdc++ libstdc++-devel make elfutils-libelf elfutils-libelf-devel libaio libaio-devel sysstat unixODBC unixODBC-devel
64位需要如下包:
rpm -q binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 elfutils-libelf-0.125 elfutils-libelf-devel-0.125 gcc-4.1.1 gcc-c++-4.1.1 glibc-2.5-12 glibc-2.5-12 glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5-12 libaio-0.3.106 libaio-0.3.106 libaio-devel-0.3.106 libgcc-4.1.1 libgcc-4.1.1 libstdc++-4.1.1 libstdc++-4.1.1 libstdc++-devel 4.1.1 make-3.81 numactl-devel-0.9.8.x86_64 sysstat-7.0.0
注:保證以上的安裝包都安裝完畢。
10./database/runInstaller完成安裝。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/309902/viewspace-1059238/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Oracle 11g R2 備份與恢復Oracle
- 確保Oracle 11g R2資料庫高可用性WQOracle資料庫
- 【OCP最新題庫解析(052)--題9】You want to install Oracle 11g databaseOracleDatabase
- Oracle之11g DataGuardOracle
- Oracle 11G 安裝文件Oracle
- benchmark 壓測Oracle 11gOracle
- sysbench壓測Oracle 11gOracle
- 11G R2中的並行執行,dbms_parallel_execute並行Parallel
- Centos7.2_Oracle12.1.0.2_RAC_installCentOSOracle
- How to Install EMC PowerPath on Oracle VM 3.4Oracle
- Oracle 11G 安裝 bbed 工具Oracle
- oracle 11g data guard維護Oracle
- oracle 11g OEM在哪裡找到???Oracle
- oracle 11g 常用命令Oracle
- Oracle 11g刪除庫重建Oracle
- Oracle 11G 修改scan_ipOracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- Oracle Linux 6.7 靜預設安裝Oracle 11gOracleLinux
- Oracle Linux 7.1 silent install 19cOracleLinux
- Oracle 11g RAC 監聽日常管理Oracle
- Oracle 11g 052題庫解析1Oracle
- oracle 11g datagurd主從切換Oracle
- ORACLE10G升級11GOracle
- Oracle 11g RAC手動新增serviceOracle
- Oracle 11g dg broker自動failoverOracleAI
- Automatic Diagnostic Repository (ADR) with Oracle Net for 11gOracle
- Oracle 11g關閉開啟AWROracle
- oracle 11g 系統審計功能Oracle
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- Oracle Linux 7.1 silent install 19C RACOracleLinux
- Oracle 11g 重新建立控制檔案Oracle
- Oracle Data Pump 11G 資料泵元件Oracle元件
- Oracle 11g dataguard 配置簡約步驟Oracle
- oracle 11g自動記憶體管理Oracle記憶體
- Oracle 11g RAC重新新增節點Oracle
- Oracle 11g升級到12COracle
- Oracle GoldenGate 11g官方文件Administrator’s GuideOracleGoGUIIDE
- Oracle 11g DG新特性--Automatic block repairOracleBloCAI