Linux平台Oracle 12.1.0.2 單一實例安裝部署

來源:互聯網
上載者:User

Linux平台Oracle 12.1.0.2 單一實例安裝部署

主題:Linux平台Oracle 12.1.0.2 單一實例安裝部署
環境:RHEL 6.5 + Oracle 12.1.0.2
需求:安裝部署OEM 13.2需要Oracle 12.1.0.2版本作為資料庫

1.下載介質
目前從OTN就可以直接下載到12.1.0.2的介質。

linuxamd64_12102_database_1of2.ziplinuxamd64_12102_database_2of2.zip

當然,我們也可以在MOS搜尋12.1.0.2的對應p21419221下載介質,安裝單一實例只需要前兩個包。

p21419221_121020_Linux-x86-64_1of10.zipp21419221_121020_Linux-x86-64_2of10.zip

2.安裝需要的軟體包
直接使用yum安裝所有需要的軟體包:

yum install -y binutils.x86_64 compat-libcap1.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.x86_64 glibc.i686 glibc-devel.x86_64 glibc-devel.i686 ksh.x86_64 libgcc.x86_64 libgcc.i686 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libaio.x86_64 libaio.i686 libaio-devel.i686 libaio-devel.x86_64 libXext.x86_64 libXext.i686 libXtst.x86_64 libXtst.i686 libX11.x86_64 libX11.i686 libXau.x86_64 libXau.i686 libxcb.x86_64 libxcb.i686 libXi.x86_64 libXi.i686 make.x86_64 sysstat.x86_64

yum本地源配置參考:

3.調整系統參數
主要是在如下/etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login等設定檔中增加內容。

/etc/sysctl.conf

# Oracle database 12cfs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 6442450944kernel.shmmni = 4096kernel.sem = 250 32000 100 128kernel.panic_on_oops = 1net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586

註:panic_on_oops這個參數。

/etc/security/limits.conf

# Oracle database 12coracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536oracle soft stack 10240

vi /etc/pam.d/login

# Oracle database 12csession required pam_limits.so

4.建立oracle使用者

groupadd -g 501 oinstallgroupadd -g 502 dbauseradd -u 502 -g oinstall -G dba oracle

5.建立目錄並賦權

mkdir -p /u01/app/chown -R oracle:oinstall /u01/app/chmod -R 775 /u01/app/

6.oracle使用者環境變數
oracle 使用者下vi編輯vi ~/.bash_profile,添加以下內容:

export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1export ORACLE_SID=oemrepoexport PATH=$PATH:$ORACLE_HOME/bin

7.解壓軟體並使用xshell調用圖形安裝軟體

cd /u01/app/unzip /u01/linuxamd64_12102_database_1of2.zip && unzip /u01/linuxamd64_12102_database_2of2.zip

運行runInstaller

[oracle@OMR ~]$ cd /u01/app/database/[oracle@OMR database]$ lsinstall  response  rpm  runInstaller  sshsetup  stage  welcome.html[oracle@OMR database]$ ./runInstaller Starting Oracle Universal Installer...Checking Temp space: must be greater than 500 MB.   Actual 24063 MB    PassedChecking swap space: must be greater than 150 MB.   Actual 2015 MB    PassedChecking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

選擇只安裝軟體:

確認最終安裝資訊無誤:

按要求root使用者執行指令碼:

完成安裝:

至此,Oracle 12.1.0.2 軟體的安裝已經完成,後續就可以根據實際需求直接調用dbca建立資料庫了。我這次是用來作為OEM13.2的資料庫,所以在dbca建庫之前還需要先匯入對應的模板。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.