In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In the process of pushing OCP, it will stay in Running post-install scripts all the time, and what is actually going on behind is a very complicated installation process. This course will introduce the installation in detail.
And manually configure the same environment as the OCP one. The database is named rcat.
Linux uses tips:
Echo $HISTSIZE to view the largest number of input records that can be saved
A maximum of 1000 entries are allowed for HISTSIZE=1000.
Histsize-c deletes the linux command history
Vim ~ / .bash_histroy history commands are stored in this file
1. Download the / usr/sbin/botang-config-push.d/softwarefiles/Lrhel5/IMAGES/issue.iso in bcpserver locally through winscp software. Linux version 5.4.You can also download the linux system by yourself, but it must be version 5.
2. Install the virtual machine through vmware software
# Custom partitions based on vim / var/ftp/pub/workstation.cfg in bcpserver
Part / boot-size 100
Part swap-size 1024
Part pv.O11grhel501-size 44984
Volgroup O11grhel5 pv.O11grhel501
Logvol /-- vgname=O11grhel5-- size=10900-- name=root
Logvol / U01-vgname=O11grhel5-size=34000-name=u01
Part pv.O11grhel502-size 2750
Part pv.O11grhel503-size 2750
Part pv.O11grhel504-size 2750
Part pv.O11grhel505-size 2750
Part pv.O11grhel506-size 6000
# the following is that the experimental environment must be configured like this
IP must manually configure 192.168.0.90Cand24
Hostname station90.example.com
# when it comes to the package selection and installation page
Software development should be installed.
And then choose
Customize now
Custom package, some unnecessary programs can not be installed, such as self-contained Jdk
But legacy software development in Development needs to be installed.
Restart after installation, pay attention to the shutdown of the firewall and SELinux, and then complete the installation of the operating system after restarting.
3. Install the database environment and download the database 11.2.0.3
Cd / etc/yum.repos.d/
Rm-rf *
Vim / etc/yum.repo.d/base.repo
[base]
Name=RHEL base
Baseurl= ftp://192.168.0.254/pub/Server
Gpgcheck=0
[VT]
Name=RHEL VT
Baseurl= ftp://192.168.0.254/pub/VT
Gpgcheck=0
Wq!
# install some basic packages
Yum-y install libaio
Yum-y install libaio-devel
Yum-y groupinstall "Development tools"
Yum-y install unixODBC
Yum-y install unixODBC-devel
Yum-y install oracleasm\ *
Yum-y install openmotif22.i386
Yum-y install pdksh.i386
Yum-y install sysstat.i386
# create oracle users and user groups, and set environment variables
Groupadd oinstall
Groupadd dba
Groupadd oper
Groupadd asmadmin
Groupadd asmdba
Groupadd asmoper
Useradd-g oinstall-G dba,oper,asmadmin,asmdba,asmoper-d / home/oracle oracle
Echo "oracle" | passwd-- stdin oracle
Su-oracle
Echo "export ORACLE_BASE=/u01/app/oracle" > > / home/oracle/.bash_profile
Echo 'export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1' > > / home/oracle/.bash_profile
Echo "export ORACLE_SID=rcat" > > / home/oracle/.bash_profile
Su-root
# install the package
Mkdir-p / stage/OSPATCHS/rhel5/
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-db-4.2.52-5.1.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-gcc-34-3.4.6-4.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-gcc-34-c++-3.4.6-4.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-gcc-34-g77-3.4.6-4.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-glibc-2.3.4-2.26.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-glibc-headers-2.3.4-2.26.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-libf2c-34-3.4.6-4.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-libgcc-296-2.96-138.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-libstdc++-296-2.96-138.i386.rpm
Wget-P / stage/OSPATCHS/rhel5/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OSPATCHS/rhel5/compat-libstdc++-33-3.2.3-61.i386.rpm
Rpm-ivh-force-nodeps / stage/OSPATCHS/rhel5/*.rpm
Mkdir-p / stage/OSPATCHS/all/
Wget-P / stage/OSPATCHS/all/-c-- tries=100-- wait=5 http://192.168.0.254/pub/O11g/OSPATCHS/all/flashplayer-11.2.202.297-1.ram0.98.i686.rpm
Rpm-ivh-force-nodeps / stage/OSPATCHS/all/*.rpm
# you must change the version to 4 to install oracle software in order not to report an error. 5 must be configured above 12C
Echo "Red Hat Enterprise Linux Server release 4 (Tikanga)" > / etc/redhat-release
# tuning parameters officially recommended by oracle
Echo "fs.file-max = 6815744" > > / etc/sysctl.conf
Echo "kernel.sem = 32000 100128" > > / etc/sysctl.conf
Echo "kernel.shmall = 2097152" > > / etc/sysctl.conf
Echo "kernel.shmmni = 4096" > > / etc/sysctl.conf
Echo "net.core.rmem_default=4194304" > > / etc/sysctl.conf
Echo "net.core.rmem_max=4194304" > > / etc/sysctl.conf
Echo "net.core.wmem_default=1048576" > > / etc/sysctl.conf
Echo "net.core.wmem_max=1048576" > > / etc/sysctl.conf
Echo "net.ipv4.ip_local_port_range = 9000 65500" > > / etc/sysctl.conf
Echo "fs.aio-max-nr = 1048576" > > / etc/sysctl.conf
Echo "session required / lib/security/pam_limits.so" > > / etc/pam.d/login
Echo "oracle soft nproc 2047" > > / etc/security/limits.conf
Echo "oracle hard nproc 16384" > > / etc/security/limits.conf
Echo "oracle soft nofile 1024" > > / etc/security/limits.conf
Echo "oracle hard nofile 65536" > > / etc/security/limits.conf
Echo'if [$USER = "oracle"]; then' > > / etc/profile
Echo'if [$SHELL = "/ bin/ksh"]; then' > > / etc/profile
Echo 'ulimit-p 16384' > > / etc/profile
Echo 'ulimit-n 65536' > > / etc/profile
Echo 'else' > > / etc/profile
Echo 'ulimit-u 16384-n 65536' > > / etc/profile
Echo 'fi' > > / etc/profile
Echo 'fi' > > / etc/profile
Wget-P / stage/-c-- tries=1000-- wait=5 ftp://192.168.0.254/pub/O11g/ASMLIB/oracleasmlib-2.0.4-1.el5.i386.rpm
Rpm-ivh / stage/oracleasmlib-2.0.4-1.el5.i386.rpm
# download database software
Wget-P / stage/-c-- tries=1000-- wait=5 ftp://192.168.0.254/pub/O11g/DATABASES/linux_11gR2_database_1of2.zip
Wget-P / stage/-c-- tries=1000-- wait=5 ftp://192.168.0.254/pub/O11g/DATABASES/linux_11gR2_database_2of2.zip
Wget-P / stage/-c-- tries=1000-- wait=5 ftp://192.168.0.254/pub/O11g/DATABASES/linux_11gR2_grid.zip
Wget-P / stage/-c-- tries=1000-- wait=5 ftp://192.168.0.254/pub/O11g/CLIENT/V17488-01.zip
Cd / stage/
Unzip linux_11gR2_database_1of2.zip
Rm-rf linux_11gR2_database_1of2.zip
Unzip linux_11gR2_database_2of2.zip
Mkdir-p / u01/loop/device
Chown-R oracle:oinstall / u01/loop
Rm-rf linux_11gR2_database_2of2.zip
Unzip linux_11gR2_grid.zip
# create several disk groups as loopback devices.
Dd if=/dev/zero of=/u01/loop/device/loop0.img bs=1M count=2750
Dd if=/dev/zero of=/u01/loop/device/loop1.img bs=1M count=2750
Dd if=/dev/zero of=/u01/loop/device/loop2.img bs=1M count=512
Dd if=/dev/zero of=/u01/loop/device/loop3.img bs=1M count=512
Dd if=/dev/zero of=/u01/loop/device/loop4.img bs=1M count=512
Echo "losetup / dev/loop0 / u01/loop/device/loop0.img" > > / etc/rc.d/rc.local
Echo "losetup / dev/loop1 / u01/loop/device/loop1.img" > > / etc/rc.d/rc.local
Echo "losetup / dev/loop2 / u01/loop/device/loop2.img" > > / etc/rc.d/rc.local
Echo "losetup / dev/loop3 / u01/loop/device/loop3.img" > > / etc/rc.d/rc.local
Echo "losetup / dev/loop4 / u01/loop/device/loop4.img" > > / etc/rc.d/rc.local
Rm-rf linux_11gR2_grid.zip
# the following are the keys to install sql, which is absolutely not allowed in the production environment.
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OTHERS/alllinux/sqlplus_extentsetup3.0.tgz
Tar-C / stage-zxvf / stage/sqlplus_extentsetup3.0.tgz
Rm-f / stage/sqlplus_extentsetup3.0.tgz
Cd / stage/sqlplus_extentsetup3.0/
. / setup.sh
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/OTHERS/alllinux/service_oraclesetup2.0.tgz
Tar-C / stage-zxvf / stage/service_oraclesetup2.0.tgz
Rm-f / stage/service_oraclesetup2.0.tgz
Cd / stage/service_oraclesetup2.0/
. / setup.sh
# install a virtual machine tape library to simulate the use of a real tape library.
Yum-y install zlib-devel
Yum-y install mtx
Yum-y install mt-st
Yum-y install lsscsi
Yum-y install sg3_utils
Yum-y install ncompress
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/mhvtl.tgz
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/osb-10.3.0.3.0_linux32.zip
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.txt
Wget-P / lib-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/ld-2.5.so
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.sh
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/reuseosb.sh
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-2.02-2.el5.1.i386.rpm
Rpm-ivh / stage/lzo-2.02-2.el5.1.i386.rpm
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-devel-2.02-2.el5.1.i386.rpm
Rpm-ivh / stage/lzo-devel-2.02-2.el5.1.i386.rpm
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/copytape-root.sh
Wget-P / stage-c-- tries=100-- wait=5 http://192.168.0.254/pub/O10g/TAPE/revertape-root.sh
Lsscsi-g
Cd / stage/
Tar zxvf mhvtl.tgz
Useradd vtl
Echo oracle | passwd-- stdin vtl
Mkdir / opt/mhvtl
Mkdir / etc/mhvtl
Chown-R vtl:vtl / opt/mhvtl
Chown-R vtl:vtl / etc/mhvtl
Make distclean
Cd / stage/mhvtl-1.2/kernel
Ll-al / opt/mhvtl/
Cd / stage/mhvtl-1.2/kernel
Make
Make install
Cd / stage/mhvtl-1.2/
Make
Make install
Service mhvtl start
Perl-I-pe's Magazine CAPACITY 500 etc/mhvtl/mhvtl.conf
Chkconfig mhvtl on
Service mhvtl stop
Service mhvtl start
Lsscsi-g
Mkdir-p / usr/local/oracle/backup
Sed-i.bak 's etc/resolv.conf 192.168.0.254 etc/resolv.conf 127.0.0.1
Attached tape library after loading to show you, ha, you can see that there are two mediumx STK, to control the tape of the mechanical arm, the simulation is very real.
[root@station90 ~] # lsscsi-g
[0:0:0:0] disk VMware, VMware Virtual S 1.0 / dev/sda / dev/sg0
[1] mediumx STK L700 0102-/ dev/sg9
[1:0:1:0] tape IBM ULT3580-TD5 0102 / dev/st0 / dev/sg1
[1:0:2:0] tape IBM ULT3580-TD5 0102 / dev/st1 / dev/sg2
[1:0:3:0] tape IBM ULT3580-TD4 0102 / dev/st2 / dev/sg3
[1:0:4:0] tape IBM ULT3580-TD4 0102 / dev/st3 / dev/sg4
Mediumx STK L80 0102-/ dev/sg10
[1:0:9:0] tape STK T10000B 0102 / dev/st4 / dev/sg5
[1:0:10:0] tape STK T10000B 0102 / dev/st5 / dev/sg6
[1:0:11:0] tape STK T10000B 0102 / dev/st6 / dev/sg7
[1:0:12:0] tape STK T10000B 0102 / dev/st7 / dev/sg8
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.