In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Install the RPM package
Yum install-y binutils elfutils-libelf glibc compat-libstdc++-33.x86_64 libgcc unixODBC java\ * glibc.i686 elfutils-libelf-devel gcc-c++ libaio-devel libstdc++-devel unixODBC-devel pdksh xorg-x11-*
2. Modify hosts
Vim / etc/hosts
192.168.1.230 oracle11g230
3. Create an account
Groupadd-g 600 oinstall
Groupadd-g 600 dba
Useradd-g oinstall-G dba-u 600 oracle
Passwd oracle
4. Create a directory
Mkdir / u01
Chown-R oracle:oinstall / U01
Chmod-R 775 / U01
5. Modify kernel parameters
Add the following at the end of the / etc/sysctl.conf file:
Fs.aio-max-nr = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
# reload
Sysctl-p
6. Modify / etc/security/limits.conf
Oracle soft nproc 2047
Oracle hard nproc 16384
Oracle soft nofile 4096
Oracle hard nofile 65536
Oracle soft stack 10240
7. Modify / etc/pam.d/login
Add the following at the end of the / etc/pam.d/login file:
Session required / lib/security/pam_limits.so
Session required pam_limits.so
8. Modify / etc/profile
Add the following at the end of the / etc/profile file:
If [$USER = "oracle"]; then
If [$SHELL = "/ bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
9. Set environment variables
Add the following at the end of the / home/oracle/.bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=oracle11g230; export ORACLE_HOSTNAME
ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
# reload
Source / home/oracle/.bash_profile
10. Install on the xshell login server using the oracle account
. / runInstaller
Refer to blog posts:
Http://kely28.blog.51cto.com/665690/1412730
Http://kely28.blog.51cto.com/665690/1412737
Http://kely28.blog.51cto.com/665690/1412962
Http://kely28.blog.51cto.com/665690/1412965
Http://www.ahlinux.com/oracle/17395.html
Note: change ORACLE_HOSTNAME=oracle.kely.com to the name of the corresponding host
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.