cent os 7.2安裝oracle 12cr2

來源:互聯網
上載者:User

標籤:安裝   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 -p
View 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.