Oracle Linux 7上安裝Oracle 12c
Oracle Linux 7上安裝Oracle 12c
一、下載軟體
1、Oralce linux 7
2、Oracle 12c
二、安裝Oracle linux 並進行設定
1、安裝Oracle Linux
2、設定主機名
/etc/hosts
/etc/hostname
3、設定SELINUX
/etc/selinux/config
SELINUX=permissive
>setenforce Permissive
4、關閉防護牆
>stemctl stop firewalld
>systemctl disable firewalld
5、yum庫配置
mount /dev/cdrom /mnt
mount /dev/ddvd /mnt[可以一試]
/etc/yum.repos.d
>cp public-yum-ol7.repo public-yum-ol7.repobak
[ol7_u0_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=file:///mnt
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
yum clean
yum list
yum update -y
yum install oracle-database-server-12cR2-preinstall -y
yum groupinstall 'X Window System' -y
5、手工設定
如果沒有yum install oracle-database-server-12cR2-preinstall -y 需要如下設定
(1) "/etc/sysctl.conf" file, or in a file called "/etc/sysctl.d/98-oracle.conf".
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
/sbin/sysctl -p
(2) Add the following lines to a file called "/etc/security/limits.d/oracle-database-server-12cR2-preinstall.conf" file
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
(3) rpm包
# OL6 and OL7 (RHEL6 and RHEL7)
yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install make -y
yum install nfs-utils -y
yum install net-tools -y
yum install smartmontools -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
# Required for 12.1, not listed for 12.2
yum install gcc -y
yum install gcc-c++ -y
yum install libXext -y
yum install libXext.i686 -y
yum install zlib-devel -y
yum install zlib-devel.i686 -y
# OL6 only (RHEL6 only)
yum install e2fsprogs -y
yum install e2fsprogs-libs -y
yum install libs -y
yum install libxcb.i686 -y
yum install libxcb -y
(4)建立使用者和組
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
#groupadd -g 54324 backupdba
#groupadd -g 54325 dgdba
#groupadd -g 54326 kmdba
#groupadd -g 54327 asmdba
#groupadd -g 54328 asmoper
#groupadd -g 54329 asmadmin
#groupadd -g 54330 racdba
useradd -g oinstall -G dba,oper oracle
usermod -g oinstall -G dba,oper oracle
passwd oracle
6、建立目錄
mkdir -p /u01/app/oracle/product/12.2.0.1/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
7、配置oracle環境變數
.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=ole
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.2.0.1/db_1
export ORACLE_SID=orcl
export PATH=/usr/sbin:/usr/local/bin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
DISPLAY=<machine-name>:0.0; export DISPLAY
安裝Oracle database 12c
參考:Oracle base
一、下載軟體
1、Oralce linux 7
2、Oracle 12c
二、安裝Oracle linux 並進行設定
1、安裝Oracle Linux
2、設定主機名
/etc/hosts
/etc/hostname
3、設定SELINUX
/etc/selinux/config
SELINUX=permissive
>setenforce Permissive
4、關閉防護牆
>stemctl stop firewalld
>systemctl disable firewalld
5、yum庫配置
mount /dev/cdrom /mnt
mount /dev/ddvd /mnt[可以一試]
/etc/yum.repos.d
>cp public-yum-ol7.repo public-yum-ol7.repobak
[ol7_u0_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=file:///mnt
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
yum clean
yum list
yum update -y
yum install oracle-database-server-12cR2-preinstall -y
yum groupinstall 'X Window System' -y
5、手工設定
如果沒有yum install oracle-database-server-12cR2-preinstall -y 需要如下設定
(1) "/etc/sysctl.conf" file, or in a file called "/etc/sysctl.d/98-oracle.conf".
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
/sbin/sysctl -p
(2) Add the following lines to a file called "/etc/security/limits.d/oracle-database-server-12cR2-preinstall.conf" file
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
(3) rpm包
# OL6 and OL7 (RHEL6 and RHEL7)
yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install make -y
yum install nfs-utils -y
yum install net-tools -y
yum install smartmontools -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
# Required for 12.1, not listed for 12.2
yum install gcc -y
yum install gcc-c++ -y
yum install libXext -y
yum install libXext.i686 -y
yum install zlib-devel -y
yum install zlib-devel.i686 -y
# OL6 only (RHEL6 only)
yum install e2fsprogs -y
yum install e2fsprogs-libs -y
yum install libs -y
yum install libxcb.i686 -y
yum install libxcb -y
(4)建立使用者和組
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
#groupadd -g 54324 backupdba
#groupadd -g 54325 dgdba
#groupadd -g 54326 kmdba
#groupadd -g 54327 asmdba
#groupadd -g 54328 asmoper
#groupadd -g 54329 asmadmin
#groupadd -g 54330 racdba
useradd -g oinstall -G dba,oper oracle
usermod -g oinstall -G dba,oper oracle
passwd oracle
6、建立目錄
mkdir -p /u01/app/oracle/product/12.2.0.1/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
7、配置oracle環境變數
.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=ole
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.2.0.1/db_1
export ORACLE_SID=orcl
export PATH=/usr/sbin:/usr/local/bin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
DISPLAY=<machine-name>:0.0; export DISPLAY
安裝Oracle database 12c
參考:Oracle base
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22275400/viewspace-2145051/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在Oracle Linux 6.6上安裝Oracle 12cOracleLinux
- linux上安裝oracleLinuxOracle
- Oracle Enterprise Linux下安裝Oracle 12cOracleLinux
- Oracle 12C安裝Oracle
- [oracle]centos 7 安裝oracleOracleCentOS
- Oracle在Linux上的安裝OracleLinux
- oracle 12c release 2 安裝Oracle
- oracle 12c 靜默安裝Oracle
- Centos 7.4 安裝Oracle 12cCentOSOracle
- Ubuntu下安裝oracle 12cUbuntuOracle
- 在Oracle Linux 7.1上安裝DockerOracleLinuxDocker
- Linux上安裝oracle的注意點LinuxOracle
- Oracle 12c Grid Infrastructure for a Standalone Server on Oracle Linux 7OracleASTStructServerLinux
- oracle linux 7 安裝圖形化介面OracleLinux
- 在oracle linux 5.6上安裝oracle 11g RACOracleLinux
- 【Linux】Virtualbox 安裝 Oracle Linux 7 -64位LinuxOracle
- Oracle 12c資料庫安裝Oracle資料庫
- Linux系統oracle 12c VMware Tools 的安裝教程LinuxOracle
- Linux-6-64下安裝Oracle 12C筆記LinuxOracle筆記
- Linux安裝oracleLinuxOracle
- linux 安裝ORACLELinuxOracle
- RedHat6.5 安裝Oracle 12c RACRedhatOracle
- Oracle 12c 安裝記錄(-)準備Oracle
- linux5.2上安裝oracle10gLinuxOracle
- 紅旗linux 4.1上安裝oracle 9204LinuxOracle
- 簡化 Oracle Linux 6 上的 Oracle Database 11g 安裝OracleLinuxDatabase
- linux 7 安裝oracle12C R2LinuxOracle
- Oracle——Linux的安裝OracleLinux
- Oracle Linux安裝rlwrapOracleLinux
- 在linux上安裝oracle10g(轉載)LinuxOracle
- Oracle linux 7.5安裝oracle 12c dg一直提示ORA-01017OracleLinux
- Oracle Database 12c Release 2 (12.2) RAC On Oracle Linux 7 Using VMwareOracleDatabaseLinux
- 【解除安裝】通過全面刪除Linux系統上Oracle檔案的方式解除安裝OracleLinuxOracle
- oracle12c之 12.1.0.1.0 C 在 linux 7 上安裝報錯處理OracleLinux
- Oracle Linux中安裝Oracle 11gOracleLinux
- Oracle Linux 5.5 安裝Oracle 10gLinuxOracle 10g
- Oracle 12c redhat linux 6 安裝驗證錯誤at least 256 colorsOracleRedhatLinuxAST
- 在Linux上安裝redis7LinuxRedis