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--
The system chooses Red Hat Enterprise Edition 5.464 bit, database: oracle11G-R2
Oracle installation preparation environment:
1:yum server configuration:
[root@station90 ~] # cat / etc/yum.repos.d/base.repo [Server] name=Serverbaseurl= file:///iso/Servergpgcheck=0[VT]name=VTbaseurl=file:///iso/VTgpgcheck=0
2: install the following software packages:
Binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3 (32bit) elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-24glibc-2.5-24 (32bit) glibc-common-2.5glibc-devel-2.5glibc-devel-2.5 (32bit) glibc-headers-2.5ksh-20060214libaio-0.3.106libaio-0.3 .106 (32bit) libaio-devel-0.3.106libaio-devel-0.3.106 (32bit) libgcc-4.1.2libgcc-4.1.2 (32bit) libstdc++-4.1.2libstdc++-4.1.2 (32bit) libstdc++-devel-4.1.2make-3.81sysstat-7.0.2unixODBC.x86_64unixODBC.i386unixODBC-devel.x86_64unixODBC-devel.i386
3: modify / etc/redhat-release as follows:
[root@station90 ~] # cat / etc/redhat-release redhat-5
4: execute the following command to add parameters to / etc/sysctl.conf and execute sysctl-p
Echo "fs.file-max = 65536" > > / etc/sysctl.confecho "kernel.sem = 32000 100128" > > / etc/sysctl.confecho "kernel.shmall = 2097152" > > / etc/sysctl.confecho "kernel.shmmni = 4096" > > / etc/sysctl.confecho "kernel.shmmax = 1073741824" > > / etc/sysctl.confecho "net.core.rmem_default=262144" > > / etc/sysctl.confecho "net.core.rmem_max=262144" > > / etc/sysctl.confecho "net.core.wmem_ Default=262144 "> > / etc/sysctl.confecho" net.core.wmem_max=262144 "> / etc/sysctl.confecho" net.ipv4.ip_local_port_range = 1024 65000 "> > / etc/sysctl.conf
5: execute the following command to add parameters to / etc/security/limits.conf
Echo "oracle soft nproc 2047" > > / etc/security/limits.confecho "oracle hard nproc 16384" > > / etc/security/limits.confecho "oracle soft nofile 1024" > > / etc/security/limits.confecho "oracle hard nofile 65536" > > / etc/security/limits.conf
6: execute the following command to add parameters to the / etc/pam.d/login
Echo "session required / lib/security/pam_limits.so" > > / etc/pam.d/login
7: modify / etc/hosts as follows:
[root@station90 ~] # cat / etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost 192.168.21.101 station90.example.com station90
8:oracle environment variable:
Groupadd oinstallgroupadd dbauseradd-g oinstall-G dba-d / home/oracle oracleecho "oracle" | passwd-- stdin oracleecho "export ORACLE_BASE=/u01/app/oracle" > > / home/oracle/.bash_profileecho 'export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1' > > / home/oracle/.bash_profileecho "export ORACLE_SID=orcl" > > / home/oracle/.bash_profileecho' export LD_LIBRARY_PATH=$ORACLE_HOME/lib' > > / home/oracle/.bash_profileecho 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/X11R6/lib' > > / home/oracle/.bash_profileecho' export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/jdk/jre/lib/i386' > > / home/oracle/.bash_profileecho 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/jdk/jre/lib/i386/server' > > / home/oracle/.bash_profileecho' export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE _ HOME/rdbms/lib' > > / home/oracle/.bash_profileecho 'export CLASS_PATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib' > > / home/oracle/.bash_profileecho' export CLASS_PATH=$CLASS_PATH:$ORACLE_HOME/rdbms/jlib' > > / home/oracle/.bash_profileecho 'export CLASS_PATH=$CLASS_PATH:$ORACLE_HOME/network/jlib' > > / home/oracle/.bash_profileecho' export TNS_ADMIN=$ORACLE_HOME/network/admin' > > / home/oracle/.bash _ profileecho "export NLS_LANG=american_america.AL32UTF8" > > / home/oracle/.bash_profileecho "export ORACLE_TERM=xterm" > > / home/oracle/.bash_profileecho "export EDITOR=vi" > > / home/oracle/.bash_profileecho 'export PATH=$ORACLE_HOME/bin:$PATH' > > / home/oracle/.bash_profileecho "export LANG=en_US" > > / home/oracle/.bash_profile
9: create a directory and set permissions
Mkdir-p / u01/app/oraclemkdir-p / stagemkdir-p / home/oraclechown oracle:oinstall / u01/app/oraclechown oracle:oinstall / stagechown oracle:oinstall / home/oracle
10: extract the oracle11G software and add the extracted files to oracle users and oinstall groups
[root@station90 U01] # ll Total 2297868drwxr-xr-x 4 root root 4096 10-24 20:09 appdrwxr-xr-x 8 oracle oinstall 4096 2009-08-21 database-rw-r--r-- 1 root root 1239269270 10-24 19:43 linux.x64_11gR2_database_1of2.zip-rw-r--r-- 1 root root 1111416131 10-24 19:44 linux.x64_11gR2_database_2of2.zipdrwx- -2 root root 16384 10-24 18:43 lost+found [root@station90 U01] # chown oracle:oinstall database
Execute xhost+ under 11:root user
12: switch oracle user to find / u01/database to execute. / runInstaller
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.