设为首页 收藏本站
查看: 615|回复: 0

[经验分享] RHEL5.5 安装oracle 11Gr2

[复制链接]

尚未签到

发表于 2018-9-24 09:15:16 | 显示全部楼层 |阅读模式
  1 Unpack Files
  Unzip the files:
  unzip linux.x64_11gR2_database_1of2.zip
  unzip linux.x64_11gR2_database_2of2.zip
  2 Set Kernel Parameters
  Add the following lines to the /etc/sysctl.conf file:
  #kernel.shmall = 2097152
  #kernel.shmmax = 2147483648
  kernel.shmmni = 4096
  # semaphores: semmsl, semmns, semopm, semmni
  kernel.sem = 250 32000 100 128
  fs.file-max = 6820000
  fs.aio-max-nr = 1050000
  net.ipv4.ip_local_port_range = 9000 65500
  net.core.rmem_default=4194304
  net.core.rmem_max=4194304
  net.core.wmem_default=262144
  net.core.wmem_max= 1050000
  备用参数
  #net.ipv4.ipfrag_high_thresh=524288
  #net.ipv4.ipfrag_low_thresh=393216
  #net.ipv4.tcp_rmem=4096 524288 16777216
  #net.ipv4.tcp_wmem=4096 524288 16777216
  #net.ipv4.tcp_timestamps=0
  #net.ipv4.tcp_sack=0
  #net.ipv4.tcp_window_scaling=1
  #net.core.optmem_max=524287
  #net.core.netdev_max_backlog=2500
  #sunrpc.tcp_slot_table_entries=128
  #sunrpc.udp_slot_table_entries=128
  #net.ipv4.tcp_mem=16384 16384 16384
  Run the following command to change the current kernel parameters:
  /sbin/sysctl -p
  3 Add the following lines to the /etc/security/limits.conf file:
  *               soft    nproc   2047    或者 oracle  soft    nproc   2047
  *               hard    nproc   16384
  *               soft    nofile  1024
  *               hard    nofile  65536
  4 Add the following line to the /etc/pam.d/login file, if it does not already exist:
  session    required     pam_limits.so
  5 Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
  SELINUX=disabled
  6 Setup
  Install the following packages:
  yum install setarch-2* make-3* glibc-2* libaio-0* compat-libstdc++-33-3* compat-gcc-34-3* compat-gcc-34-c++-3* gcc-4* libXp-1* openmotif-2* compat-db-4* elfutils-libelf-* glibc-devel-* gcc-c+* libaio-devel-* libstdc++* sysstat-7* unixODBC-*
  或者这样..
  # From RedHat AS5 Disk 1
  cd /media/cdrom/Server
  rpm -Uvh setarch-2*
  rpm -Uvh make-3*
  rpm -Uvh glibc-2*
  rpm -Uvh libaio-0*
  cd /
  eject
  # From RedHat AS5 Disk 2
  cd /media/cdrom/Server
  rpm -Uvh compat-libstdc++-33-3*
  rpm -Uvh compat-gcc-34-3*
  rpm -Uvh compat-gcc-34-c++-3*
  rpm -Uvh gcc-4*
  rpm -Uvh libXp-1*
  cd /
  eject
  # From RedHat AS5 Disk 3
  cd /media/cdrom/Server
  rpm -Uvh openmotif-2*
  rpm -Uvh compat-db-4*
  cd /
  eject
  7 Create the new groups and users:
  useradd oracle
  echo oracle | passwd --stdin oracle
  8 Create the directories in which the Oracle software will be installed:
  mkdir -p /u01/app/oracle/product/11.2.0/db_1
  chown -R oracle.oracle /u01
  9 Login as the oracle user and add the following lines at the end of the .bash_profile file:
  # Oracle Settings
  ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
  ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
  PATH=$ORACLE_HOME/bin:$PATH; export PATH
  LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

  CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export>  if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
  ulimit -p 16384
  ulimit -n 65536
  else
  ulimit -u 16384 -n 65536
  fi
  fi
  vim /etc/fstab
  修改下面选项为
  tmpfs /dev/shm tmpfs defaults,size=10240M 0 0
  mount -o remount /dev/shm
  查询使用率可以使用df -k /dev/shm


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-600475-1-1.html 上篇帖子: oracle中的数据文件大小限制 下篇帖子: ORACLE 锁表问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表