In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
It took a lot of trouble to install it on RedHat5.9 before, but it was installed very smoothly at that time, but I didn't expect it this time. So write down the installation process so that you don't make the same mistake again.
Before installation, do not dare to install the required installation package at one time. It's important, or it's always wrong. And before the installation, I had a question: is it necessary to install the java virtual machine to install oracle? At first, I always thought that reporting some inexplicable mistakes had something to do with jdk. Later, it was found that oracle has integrated jdk into the database since the version of oracle8i, so there is no need to install jdk alone.
Installation begins:
Yum install binutils
Yum install compat-libcap1
Yum install compat-libstdc++ (x86 / 64)
Yum install compat-libstdc++ (i686)
Yum install gcc
Yum install gcc-c++
Yum install glibc (x86 / 64)
Yum install glibc (i686)
Yum install glibc-devel (x86 / 64)
Yum install glibc-devel (i686)
Yum install ksh
Yum install libgcc (x86 / 64)
Yum install libgcc (i686)
Yum install libstdc++ (x86 / 64)
Yum install libstdc++ (i686)
Yum install libstdc++-devel (x86 / 64)
Yum install libstdc++-devel (i686)
Yum install libaio (x86 / 64)
Yum install libaio (i686)
Yum install libaio-devel (x86 / 64)
Yum install libaio-devel (i686)
Yum install make
Yum install sysstat
Yum install libXp (x86 / 64)
Yum isntall libXp (i686)
Yum-y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make sysstat
1. Set up accounts and groups
Groupadd dba
Groupadd oinstall
Useradd-m-g oinstall-G dba oracle
Passwd oracle
2. Kernel optimization parameters
Vi / etc/sysctl.conf
Kernel.shmall = 4294967296
Kernel.shmmax = 68719476736
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 1024 65000
Net.core.rmem_default=4194304
Net.core.rmem_max=4194304
Net.core.wmem_default=262144
Net.core.wmem_max=262144
3. Resource restriction
Vi / etc/security/limits.conf
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
4. Make the content added in limits.conf take effect.
Vi / etc/pam.d/login
Session required / lib64/security/pam_limits.so
Session required pam_limits.so
5. System environment
Vi / etc/profile
If [$USER = "oracle"]; then
If [$SHELL = "/ bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
6. Create a directory
Mkdir / app/oracle-pv
Mkdir / app/oracle/10.2/
Chown-R oracle:dba / app/oracle
7. IP mapping
Vi / etc/hosts
192.168.2.27 DB1.centos.org
127.0.0.1 localhost
8. Oracle user environment variables
Vi / home/oracle/.bash_profile
Export TMP=/tmp
Export TMPDIR=$TMP
Export ORACLE_BASE=/app/oracle
Export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
Export ORACLE_SID=orcl
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:$ORACLE_HOME/network/jlib
Export DISPLAY=:0.0
Export NLS_LANG= "SIMPLIFIED CHINESE_CHINA" .ZHS16GBK
9. Decompress command after upload
Gunzip 10201_database_linux_x86_64.cpio.gz
Cpio-idmv
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.