Oracle 12c(12.1.0.2)安装步骤

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a743044559/article/details/79957588

os 内核:

[root@localhost ~]# uname -r
2.6.32-504.el6.x86_64

数据库安装包:

linuxamd64_12102_database_1of2.zip
linuxamd64_12102_database_2of2.zip

软件大小:

企业版 6.4GB
标准版 6.4GB

内存要求:

至少1GB,建议2GB或者以上
如果安装GI,至少4GB内存

swap要求:

[ARM :1~2GB]     swap 1.5*
[ARM:2~16GB] swap equal
[ARM:>16GB]     sawp 16GB

存储要求:

至少 6.9GB磁盘空间

临时空间要求:

至少1GB /tmp;
设置 /tmp 和/tmpdir (可选)

rpm依赖包安装:
Red Hat Enterprise Linux 6: 2.6.32-71.el6.x86_64 or later

binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (i686)
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (i686)
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (i686)
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6 (i686)
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6 (i686)
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (i686)
libXext-1.1 (x86_64)
libXext-1.1 (i686)
libXtst-1.0.99.2 (x86_64)
libXtst-1.0.99.2 (i686)
libX11-1.3 (x86_64)
libX11-1.3 (i686)
libXau-1.0.5 (x86_64)
libXau-1.0.5 (i686)
libxcb-1.5 (x86_64)
libxcb-1.5 (i686)
libXi-1.3 (x86_64)
libXi-1.3 (i686)
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)

内核配置:

echo "
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 ">>/etc/sysctl.conf

/sbin/sysctl -p

limits.conf配置:

vi /etc/security/limits.conf
oracle           soft    nproc   2047
oracle           hard    nproc   16384
oracle           soft    nofile  4096
oracle           hard    nofile  65536

用户组配置:

# /usr/sbin/groupadd -g 1010 oinstall
# /usr/sbin/groupadd -g 1011 dba
# /usr/sbin/groupadd -g 1012 oper
# /usr/sbin/groupadd -g 1013 asmdba
# /usr/sbin/groupadd -g 1014 dgdba
# /usr/sbin/groupadd -g 1015 kmdba
# /usr/sbin/groupadd -g 1016 backupdba
#  /usr/sbin/usermod -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba[,oper] -d /home/oracle oracle

环境变量设置:

PATH=$PATH:$HOME/bin

export PATH
export PS1="`/bin/hostname -s`-> "
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=emcc
export ORACLE_SID=db12
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1
export ORACLE_UNQNAME=db12
export TNS_ADMIN=$ORACLE_HOME/network/admin
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
export EDITOR=vi
export LANG=en_US
export NLS_LANG=american_america.AL32UTF8
export NLS_DATE_FORMAT='yyyy/mm/dd hh24:mi:ss'
umask 022

目录权限:

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

禁止大内存叶分配:

查看大内存叶状态:

Red Hat Enterprise Linux kernels:

# cat /sys/kernel/mm/redhat_transparent_hugepage/enabled
Other kernels:

# cat /sys/kernel/mm/transparent_hugepage/enabled
The following is a sample output that shows Transparent HugePages is being used as the [always] flag is enabled.

[always] never

禁止大内存叶配置:


1.On Oracle Linux 6 and earlier releases, add the following entry to the kernel boot line in the /etc/grub.conf file:

transparent_hugepage=never
For example:

title Oracle Linux Server (2.6.32-300.25.1.el6uek.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-300.25.1.el6uek.x86_64 ro root=LABEL=/ transparent_hugepage=never
        initrd /initramfs-2.6.32-300.25.1.el6uek.x86_64.img
2.Restart the system to make the changes permanent.

安装软件
./dbca

‘PRVF-0002:不能解析本地节点名字
’ 这个问题一般都是 /etc/hosts 规定的解析主机名字跟 /etc/sysconfig/network规定的不一致导致。

更详细步骤,请参考“https://docs.oracle.com/database/121/LADBI/toc.htm

阅读更多 登录后自动展开
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页