In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Modify the hostname:
# sed-I "s/HOSTNAME=localhost.localdomain/HOSTNAME=oracledb/" / etc/sysconfig/network
# hostname oracledb
two。 Add resolve hostname record
# vi / etc/hosts
192.168.1.11 oracledb
3. Install dependency packages
# yum-y install glibc* gcc* make* compat-db* libstdc* libXp* libXtst* compat-libstdc++*
4. Add installation user oracle
# groupadd oinstall
# groupadd dba
# useradd-g oinstall-G dba oracle
5. Set the oracle user password
# passwd oracle
6. Modify the environment variable of oracle and add it at the end.
# vi / home/oracle/.bash_profile
Export ORACLE_BASE=/opt/oracle
Export ORACLE_HOME=$ORACLE_BASE/112
Export ORACLE_SID=orcl
Export LD_LIBRARY_PATH=$ORACLE_HOME/lib
Export PATH=$PATH:$ORACLE_HOME/bin
7. Modify kernel parameter file
# vi / etc/sysctl.conf
Fs.aio-max-nr = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152
Kernel.shmmax = 536870912
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 = 1048586
8. Make the changes effective
# sysctl-p
9. Add the authentication module and add a line after it
# vim / etc/pam.d/login
Session required pam_limits.so
10. Add to the global variables file
# vim / etc/profile
If [$USER = "oracle"]; then
If [$SHELL = "/ bin/bash"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
# source / etc/profile
11. Create the appropriate directory and authorize oracle
# mkdir-p / opt/oracle/112
# mkdir-p / opt/oralnventory
# mkdir-p / opt/oradata
# chown-R oracle:oinstall oralnventory/
# chown-R oracle:dba oracle/
twelve。 Switch to oracle
# xhost +
# su-oracle
13. Execute. / runInstaller to start the graphics installation
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.