In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Add a new hard disk and format [root@localhost ~] # cd / dev [root@localhost dev] # ls [root@localhost dev] # fdisk / dev/sdb [root@localhost dev] # mkfs-t xfs / dev/sdb12. Create the orc directory [root@localhost dev] # mkdir / orc3. Modify the hostname [root@localhost ~] # vim / etc/hostname# to add the following content HOSTNAME=oracle4. Modify the last line of domain name resolution [root@localhost ~] # vim / etc/hosts# to add the following 192.168.142.151 oracle5. Mount the new hard drive to the orc directory [root@oracle ~] # mount / dev/sdb1 / orc6. Download the environment package [root@oracle] # yum-y install binutils compat-libcapl compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel7. Modify sysctl.conf configuration file [root@oracle ~] # vim / etc/sysctl.conf# add the following content fs.aio-max-nr = 104857 asynchronous Io requests recommended value is: 1048576 in fact, it is equal to 1024024, that is, 1024K fs.file-max = 6815744 file # the maximum number of open file handles to prevent file descriptor exhaustion problem kernel.shmall = 2097152 memory # total shared memory page Memory divided by 4K kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 32000 100 128##SEMMSL: maximum number of signals per signal set SEMMNS: maximum number of signals used to control the entire Linux system SEMOPM kernel parameters are used to control the number of signal operations that can be performed per semop system call SEMMNI: kernel parameters are used to control the maximum number of signal sets in the entire Linux system net.ipv4.ip_local_ Port_range = 9000 65500 net.core.rmem_default # Port range for outgoing connections net.core.rmem_default = 262144 # default value for socket receive buffer size net.core. Rmem_max = 4194304 socket # the maximum net.core of the receive buffer size. Wmem_default = 262144 # # the default value of the socket send buffer size, net.core. Wmem_max = 104857 the maximum send buffer size of the socket is 8. Reload the configuration file [root@oracle ~] # sysctl-p9. Configure user environment # add oinstall group [root@oracle ~] # groupadd oinstall# add dba group [root@oracle ~] # groupadd dba# add user oracle to group [root@oracle ~] # useradd-g oinstall-G dba oracle# set database password to 123123 [root@oracle ~] # passwd oracleChanging password for user oracle.New password: BAD PASSWORD: The password is shorter than 8 charactersRetype new password: passwd: all authentication tokens updated successfully.# create database directory [root@oracle ~] # Mkdir-p / orc/app/oracle# modify directory owner and group [root@oracle ~] # chown-R oracle:oinstall / orc/app# modify directory permissions [root@oracle ~] # chmod-R 755 / orc/app/oracle/# configure oracle user environment [root@oracle] # vim / home/oracle/.bash_profile# add the following content umask 022ORACLE_BASE=/orc/app/oracleORACLE_HOME=/orc/app/oracle/product/12.2 at the end line. 0x0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Use the pam_limits authentication module [root@oracle ~] # vim / etc/pam.d/login#%PAM-1.0# to append the following content session required / lib/security/pam_lilits.sosession required pam_limits.so11 at the end of this paragraph. Modify limits.conf configuration file [root@oracle ~] # vim / etc/security/limits.conf# set the number of processes available to a single user oracle soft nproc 2047 # set the number of files that the user can open oracle hard nproc 16384 oracle soft nofile 1024 # set stack oracle hard nofile 65536 oracle soft stack 10240 12. Modify the system environment variable [root@oracle ~] # vim / etc/profileif [$USER= "oracle"] then if [$SHELL = "/ bin/ksh"] then ulimit-p 16384 # buffer size ulimit-n 65536 # files else ulimit-u 16384-n 65536 # processes and files fifi13. Obtain the source package [root@oracle ~] # mount.cifs / / 192.168.142.1/database / mntPassword for root@//192.168.142.1/database: 14. The graphical interface closes access control with root user action #, allowing any host to access the local X server [root@oracle ~] # xhost + access control disabled, and clients can connect from any host# switches oracle user [root@oracle] # su-oracle# to set the DISPLAY environment variable to run the graphical program [oracle@oracle mnt] $export DISPLAY=:0.0# to execute the installation script [oracle@oracle mnt] $. / runInstaller 15. The graphical interface begins to install, cancel the "Security Update" option and proceed to the next step
16. Select the create and configure database option and proceed to the next step
17. Select the Server Class option and proceed to the next step
18. Select "but example database installation" and proceed to the next step
19. Select typical installation and proceed to the next step
20. Set the database password and proceed to the next step
21. This step goes directly to the next step.
twenty-two。 Click install
23. Install the pop-up window processing and execute the following script / orc/app/oraInventory/orainstRoot.sh/orc/app/oracle/product/12.2.0/dbhome_1/root.sh as root
24. Installation succeeded
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.