In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
RHEL 6.5. install oracle11gR21, prepare before installation
OS installation, RHEL6.5 default installation can, close iptables, close selinux, modify the local hosts file
~] # service iptables stop ~] # chkconfig-- del iptables~] # vim / etc/selinux/config # configuration is permanently valid after restart SELINUX=disabled~] # vim / etc/hosts
Make a local yum repository and install the packages that oracle11gR2 depends on
~] # cd / /] # mkdir local.repo ~] # cd / media/RHEL_6.5\ x86 / 64\ Disc\ 1/cp-rf * / localrepo/~] # vim / etc/yum.repos.d/localrepo [localrepo] name=localrepobaseurl= file:///localrepogpgcheck=0enabled=1~]# yum repolistLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.localrepo | 3.9 kB 00:00... Localrepo/primary_db | 3.1 MB 00:00. Repo id repo name statuslocalrepo localrepo 3690repolist: 3690
Install dependent packages:
Yum install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* Pdksh*-y Note: there is another package that needs to be installed separately: rpm-ivh pdksh-5.2.14-30.x86_64.rpm warning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature Key ID 73307de6: NOKEYerror: Failed dependencies:pdksh conflicts with ksh-20120801-10.el6.x86_64 first uninstall ksh-20120801-10.el6.x86_64 rpm-e ksh-20120801-10.el6.x86_64rpm-ivh pdksh-5.2.14-30.x86_64.rpmwarning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEYPreparing... # 1:pdksh # create users and modify environment variables ~] # groupadd-g 1000 oinstall~] # groupadd-g 1100 dba~] # useradd-m-g oinstall-G dba-u 1200 oracle~] # id oracleuid=1200 (oracle) gid=1000 (oinstall) groups=1000 (oinstall) 1100 (dba) ~] # passwd oracle [oracle@~] $vim .bash _ profile# .bash _ profile# Get the aliases and functionsif [- f ~ / .bashrc] Then. ~ / .bashrcfi # User specific environment and startup programsPATH=$PATH:$HOME/binexport ORACLE_SID=*export ORACLE_HOME=/home/u01/app/oracle/product/11.2.0/db_1export PATH=$ORACLE_HOME/bin:$PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libif [$USER = "oracle"]; then if [$SHELL = "/ bin/ksh"] Then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fifiexport PATH create directory ~] # mkdir-p / home/u01/app/oracle/product/11.2.0/db_1~] # chown-R oracle:oinstall / home/u01 modify system parameter configuration ~] # vim / etc/sysctl.conf # add the following # Controls the maximum size of a message, in byteskernel.msgmax = 6553 Controls the maximum shared segment size, in byteskernel.shmmax = 320000000 Controls the maximum number of shared memory segments In pageskernel.shmall = 8388608kernel.shmmni = 4096kernel.sem = 32000 100128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304net.core.wmem_default = 262144net.core.rmem_max = 262144kernel.msgmnb = 65536kernel.msgmax = 65536fs.aio-max-nr = 262144sysctl-p~] # vim / etc/security/limits.conf # add the following oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536~] # vim / Etc/pam.d/login # add the following session required pam_limits.so~] # vim / etc/security/limits.d/90-nproc.conf# Default limit for number of user's processes to prevent# accidental fork bombs.# See rhbz # 432903 for reasoning.*-nproc 16384root soft nproc unlimitedoracle11204 Software installation authorizes oracle permission tmp] # chmod 777-R oracle/ [root tmp] # chown-R oracle.oinstall oracle/ entry Oracle users decompress oracle] $unzip p13390677_112040_Linux-x86-64_1of7.zip oracle] $unzip p13390677_112040_Linux-x86-64_2of7.ziproot users for desktop sharing xhost+ enter oracle users to install oracle] # cd / tmp/oracle/database/database] #. / runInstaller Note that the installation path should be the same as the previously configured environment variable path Choose to install only software during installation The swap space error of the installation and verification times can be ignored. Subsequent library construction can be done through dbca, and configuration monitoring can be done through netca.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.