標籤:安裝 tco login connector pass util gdb include shmall
1、迷你安裝linux,配置好yum源
安裝依賴包
yum -y install binutils compat-libcap1 gcc gcc-c++ glibc glibc.i686 glibc-devel glibc.i686 ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++l7.i686 libstdc++-devel libstdc++-devel.i686 compat-libstdc++-33 compat-libstdc++-33.i686 libXi libXi.i686 libXtst libXtst.i686 make sysstat smartmontools net-tools
---其他包 解壓,xmanager遠程
yum -y install unzip install xorg-x11-server-utils xorg-x11-utils
---sysctl
1 [[email protected] ~]# 2 MEMTOTAL=$(free -b | sed -n ‘2p‘ | awk ‘{print $2}‘) 3 4 [[email protected] ~]# 5 SHMMAX=$(expr $MEMTOTAL / 2) 6 7 [[email protected] ~]# 8 SHMMNI=4096 9 10 [[email protected] ~]#11 PAGESIZE=$(getconf PAGE_SIZE)12 [[email protected] ~]#13 cat >> /etc/sysctl.conf << EOF14 fs.aio-max-nr = 104857615 fs.file-max = 681574416 kernel.shmmax = $SHMMAX17 kernel.shmall = `expr $SHMMAX/$PAGESIZE\* $SHMMNI/16`18 kernel.shmmni = $SHMMNI19 kernel.sem = 250 32000 100 12820 net.ipv4.ip_local_port_range = 9000 6550021 net.core.rmem_default = 26214422 net.core.rmem_max = 419430423 net.core.wmem_default = 26214424 net.core.wmem_max = 104857625 EOF26 [[email protected] ~]#27 sysctl -pView Code
[[email protected] ~]#i=54321; for group in oinstall dba backupdba oper dgdba kmdba; dogroupadd -g $i $group; i=`expr $i + 1`done[[email protected] ~]#useradd -u 1200 -g oinstall -G dba,oper,backupdba,dgdba,kmdba -d /home/oracle oracle[[email protected] ~]#passwd oracleChanging password for user oracle.New password:Retype new password:passwd: all authentication tokens updated successfully.[[email protected] ~]#mkdir -p /u01/app/oracle[[email protected] ~]#chown -R oracle:oinstall /u01/app[[email protected] ~]#chmod -R 775 /u01[[email protected] ~]#vi /etc/pam.d/login# near line 14: addsession required pam_selinux.so opensession required pam_namespace.sosession required pam_limits.sosession optional pam_keyinit.so force revokesession include system-auth-session optional pam_ck_connector.so
View Code
[[email protected] ~]$vi ~/.bash_profile# add to the endumask 022export ORACLE_BASE=/u01/app/oracleexport ORACLE_OWNER= oracleexport ORACLE_HOME= /u01/app/oracle/product/12.2.0/dbhome_1export PATH=$PATH:$ORACLE_HOME/bin
View Code
參考:
http://blog.csdn.net/hanzheng260561728/article/details/51323816
cent os 7.2安裝oracle 12cr2