oracle 11g之在REDHAT5上的安裝
第一: 核查安裝包是否安裝
rpm -qa | grep package_name
libaio-devel-0.3.106
sysstat-7.0.2
unixODBC-2.2.11 (32-bit) or later
unixODBC-devel-2.2.11 (32-bit) or later
compat-libstdc++-33-3.2.3 (32 bit)
glibc-devel-2.5 (32 bit)
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2 (32 bit)
第二:安裝未安裝的包
ls -l *.rpm
rpm -ivh *.rpm
第三:建立組,使用者以及目錄,授權
建立組和使用者
[root@redhat ~]# /usr/sbin/groupadd oinstall
[root@redhat ~]# /usr/sbin/groupadd dba
[root@redhat ~]# /usr/sbin/useradd -m -g oinstall -G dba oracle
[root@redhat ~]# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)
[root@redhat ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
建立目錄
[root@redhat ~]# mkdir -p /u01/oracle/product
[root@redhat ~]# mkdir -p /u01/oracle/product/OraHome
[root@redhat ~]# mkdir -p /u01/oraInventory
[root@redhat ~]# mkdir -p /u01/oracle/oradata
[root@redhat ~]# mkdir -p /var/opt/oracle
授權
[root@redhat ~]# chown -R oracle:oinstall /u01/oracle
[root@redhat ~]# chown -R oracle:oinstall /u01/oracle/oradata
[root@redhat ~]# chown -R oracle:oinstall /u01/oracle/product/OraHome
[root@redhat ~]# chown -R oracle:oinstall /u01/oraInventory
[root@redhat ~]# chown oracle:dba /var/opt/oracle
[root@redhat ~]# chmod -R 775 /u01/oracle
[root@redhat ~]# chmod -R 775 /var/opt/oracle
第四:在/etc/sysctl.conf 檔案中新增以下的內容
kernel.shmmax = 536870912(以位元組為單位,實體記憶體數量*1024*1024*2,為記憶體2的倍數)
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 5033164800
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 = 1048586
是引數生效
# /sbin/sysctl -p
第五:在/etc/security/limits.conf 檔案中新增以下的內容
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
第六 在 /etc/pam.d/login 檔案中新增以下的內容
session required pam_limits.so
session required /lib/security/pam_limits.so
第七 切換使用者設定環境變數
vi .bash_profile
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/OraHome
export ORACLE_SID=orcl
export ORACLE_OWNER=oracle
export ORACLE_TERM=vt100
export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
執行以下命令讓配置立刻生效或是用oracle 使用者登入使設定生效
source $HOME/.bash_profile
第八
[root@redhat u01]# xhost +
[root@redhat u01]# xhost + localhost
[root@redhat u01]# export DISPLAY=192.168.100.92:0.0
第九 解壓授權
[root@redhat u01]# unzip linux.x64_11gR2_database_1of2.zip
[root@redhat u01]# unzip linux.x64_11gR2_database_2of2.zip
移動到/u01下 mv database/ /u01
chown -R oracle:oinstall database/
第十 安裝
cd /database
./runInstaller -ignoreSysprereqs
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20976446/viewspace-681362/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Solaris 10上安裝Oracle 11gOracle
- centos7.3上安裝oracle xe 11gCentOSOracle
- 在oracle linux 5.6上安裝oracle 11g RACOracleLinux
- 簡化 Oracle Linux 6 上的 Oracle Database 11g 安裝OracleLinuxDatabase
- oracle 11g 之linux redhat 5.5上的安裝OracleLinuxRedhat
- RHEL6 上安裝Oracle 11g軟體Oracle
- 入門系列之在Ubuntu 16.04上安裝和使用TensorFlowUbuntu
- rh4上 安裝oracle 11g r1Oracle
- oracle 11g 在IBM AIX 5L上的安裝OracleIBMAI
- RedHat5下安裝Mysql詳解RedhatMySql
- websphere在redhat5的安裝_中介軟體WebRedhat
- Oracle 11G 安裝文件Oracle
- Oracle 11g解除安裝Oracle
- 安裝Oracle RAC 11gOracle
- ORACLE 11G 安裝注意Oracle
- BBED在Oracle 10g/11g上安裝筆記Oracle 10g筆記
- rhel 5.4 64位上安裝oracle 11g R2Oracle
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- Oracle 11G 安裝 bbed 工具Oracle
- ubuntu中安裝oracle 11gUbuntuOracle
- Oracle 11g 靜默安裝Oracle
- oracle 11g安裝報錯Oracle
- ORACLE 11G完美解除安裝Oracle
- Oracle 11g for linux 安裝OracleLinux
- oracle11gR2在RedHat5上前期安裝配置指令碼OracleRedhat指令碼
- Oracle Linux中安裝Oracle 11gOracleLinux
- Linux Redhat上如何手工解除安裝(刪除)Oracle 11gLinuxRedhatOracle
- redhat5中安裝 11gRAC報錯Redhat
- Oracle在Linux上的安裝OracleLinux
- linux上安裝oracleLinuxOracle
- linux5.6上安裝oracle 11g 資料庫 32位LinuxOracle資料庫
- 在Centos 6.5上安裝Oracle Database 11g Release 2 (11.2.0.4.0) RACCentOSOracleDatabase
- oracle 11g 單例項安裝Oracle單例
- linux下安裝oracle 11gLinuxOracle
- 使用silent模式安裝Oracle 11g模式Oracle
- Oracle 11g Database靜默安裝OracleDatabase
- CentOS 7下安裝Oracle 11gCentOSOracle
- CentOS 6.6系統上命令列靜默安裝安裝Oracle 11G R2(11.2.0.3)CentOS命令列Oracle