oracle單例項12.2.0.1安裝
說明:本文描述oracle linux 6.8 安裝 oracle 12.2.0.1
0. 檢視作業系統版本
[root@12c01 ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="6.8"
1. 修改使用者的SHELL的限制,vi /etc/security/limits.conf 檔案,檔案末尾新增修改如下
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
2. 修改linux核心,修改 /etc/sysctl.conf 檔案
vi /etc/sysctl.conf 檔案並新增如下內容:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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
或者kernel.shmall和kernel.shmmax的預設值已經超過上述值,使用預設值即可。
修改生效
[root@12c01 ~]# /sbin/sysctl -p
3. 建立使用者
/usr/sbin/groupadd -g 54321 oinstall
/usr/sbin/groupadd -g 54322 dba
/usr/sbin/groupadd -g 54323 oper
/usr/sbin/groupadd -g 54324 backupdba
/usr/sbin/groupadd -g 54325 dgdba
/usr/sbin/groupadd -g 54326 kmdba
/usr/sbin/groupadd -g 54327 asmdba
/usr/sbin/groupadd -g 54328 asmoper
/usr/sbin/groupadd -g 54329 asmadmin
/usr/sbin/groupadd -g 54330 racdba
/usr/sbin/useradd -u 54321 -g oinstall -G dba,asmdba,oper oracle
/usr/sbin/useradd -u 54322 -g oinstall -G asmdba,asmadmin grid
4. 確認使用者:
[root@12c01 ~]# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54327(asmdba)
[root@12c01 ~]# id grid
uid=54322(grid) gid=54321(oinstall) groups=54321(oinstall),54327(asmdba),54329(asmadmin)
5. 修改密碼:讓你輸入密碼,密碼任意輸入2次,但必須保持一致,回車確認
[root@12c01 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@12c01 ~]# passwd grid
Changing password for user grid.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
6. 建立目錄結構:
mkdir -p /home/oracle/app/oracle/product/12.2.0/dbhome_1
mkdir -p /home/oracle/app/oradata
chown -R oracle:oinstall /home/oracle/
7. 設定oracle使用者的環境變數:
#vi .bash_profile
--將如下程式碼新增到.bash_profile檔案中:
# Oracle Settings
umask 022
export TMP=/tmp;
export TMPDIR=$TMP;
export ORACLE_BASE=/home/oracle/app/oracle;
export ORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1;
export ORACLE_SID=andycdb;
export ORACLE_TERM=xterm;
export PATH=/usr/sbin:$PATH;
export PATH=$ORACLE_HOME/bin:$PATH;
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
8.檢查 /etc/hosts 檔案確認是否新增主機名和域名全稱
[root@12c01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.100.25.16 12c01
9. 將Oracle安裝包(以64位為例)複製到linux的home目錄下,開啟終端命令列介面,執行unzip命令解壓oracle安裝檔案。
輸入命令:
[oracle@12c01 ~]$ ll
total 3372760
drwxr-xr-x. 4 oracle oinstall 4096 May 6 03:31 app
-rw-r--r--. 1 oracle oinstall 3453696911 May 6 03:38 linuxx64_12201_database.zip
[oracle@12c01 ~]$ du -h linuxx64_12201_database.zip
3.3G linuxx64_12201_database.zip
[oracle@12c01 ~]$ unzip linuxx64_12201_database.zip
PRVF-0002 : could not retrieve local node name
解壓完成後 cd 進入其解壓後的目錄database
輸入命令:
cd database
執行安裝
輸入命令:
./runInstaller
缺包,自行補包。
root執行完點選ok,12c軟體安裝結束。
dbca 建庫。
[oracle@12c01 database]$ dbca
[oracle@12c01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Sat May 6 06:48:50 2017
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> select name,cdb from v$database;
NAME CDB
--------- ---
ANDYCDB YES
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB01 READ WRITE NO
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31383567/viewspace-2138561/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Redis單例項安裝Redis單例
- ORACLE-LINUX環境字元介面單例項安裝OracleLinux字元單例
- Oracle 11G資料庫單例項安裝Oracle資料庫單例
- 【PSU】Oracle打PSU及解除安裝PSU(單例項)Oracle單例
- 【Oracle】ASM例項安裝入門OracleASM
- oracle 11g 單例項資料庫的安裝Oracle單例資料庫
- oracle11g安裝 單例項 系統centos7Oracle單例CentOS
- 12.2.0.1 Grid RUR 安裝
- 安裝ORACLE 12.2.0.1 GI 時遇到INS-44002錯誤Oracle
- oracle19c安裝 單例項 系統centos7 非cdbOracle單例CentOS
- 19C 單例項資料庫安裝單例資料庫
- 滴滴雲伺服器上安裝Oracle12cR2單例項資料庫伺服器Oracle單例資料庫
- ORACLE11GR2 RAC解除安裝ASM例項步驟OracleASM
- Linux下安裝 Docker例項LinuxDocker
- Memcached安裝與使用例項
- oracle之 單例項監聽修改埠Oracle單例
- 11.2.0.4單例項ASM安裝報錯ohasd failed to ... line 73.單例ASMAI
- 在OracleLinux7.3上安裝OracleRAC12.2.0.1OracleLinux
- Oracle 11g RAC到單例項OGG同步Oracle單例
- oracle 12c RAC安裝,例項不能多節點同時啟動Oracle
- 4.1. Oracle例項Oracle
- Oracle Far Sync例項Oracle
- Oracle12.02.1單機安裝Oracle
- oracle資料庫與oracle例項Oracle資料庫
- oracle 例項表查詢Oracle
- 【爬蟲】Heritrix 3.2安裝和執行例項爬蟲
- Argo 安裝和 workflow 例項配置檔案解析Go
- 【UP_ORACLE】使用AutoUpgrade工具升級Oracle 11.2.0.4至12.2.0.1Oracle
- ASM單例項安裝後,需要手動設定ASM的引數檔案ASM單例
- oracle rac 單個例項不能生成awr報告的問題Oracle
- ORA-29702複製RAC Oracle軟體啟動單例項Oracle單例
- CentOS 8 安裝 Docker 以及常用命令例項CentOSDocker
- oracle 10203啟動例項報警Oracle
- oracle監聽不到例項服務Oracle
- 【ASK_ORACLE】Relink ASM單例項資料庫詳細步驟OracleASM單例資料庫
- PHP 完整表單例項PHP單例
- Linux環境安裝Oracle11g(一)——配置檢查及依賴項安裝LinuxOracle
- 記錄一次Oracle 11.2.0.4 RAC異地恢復到單例項Oracle單例
- Oracle 資料庫巡檢指令碼 單例項 RAC 輸出HTML格式Oracle資料庫指令碼單例HTML