Install oralce 11g full version in centos linux

Source: Internet
Author: User


Install oralce 11g full version in centos linux
System Environment: CentOS 5.5 64bit Software Version: linux. x64_11gR2_database_1of2 is good. Now you can install: 1. hardware requirement: memory: grep-I memtotal/proc/meminfo officially requires at least 1 GB of memory swap partition grep-I swaptotal/proc/meminfo if your memory is less than 2 GB, the swap partition is 1.5 times the memory. If the memory is between 2 GB and 8 GB, the swap partition should be equal to the memory size. If the memory is greater than 8 GB, swap partition should be 0.75 times the memory. Note: The above swap partition is only the recommended size. In actual installation, it is not mandatory to set the hard disk as df-k enterprise 4.5 GB. If so, the hard disk space should be at least 5 GB at www.2cto.com 2: install the software packages required by the following oracle: binutils compat-libstdc ++ your-libelf elfutils-libelf-devel glibc-common glibc-devel glibc-headers gcc-c ++ libaio-devel libaio libgcc libstdc ++ + make www.2cto.com sysstat unixODBC-devel 3: added support and user groups/usr/sbin/groupadd oinstall/usr/sbin/groupadd dba/usr/sbin/useradd-g oinstall-G dba-s/bin/bash oracle/usr/ bin/passwd oracle set password 4 for oracle users: modify the kernel variable vim/etc/sysctl. conf adds the following content to the final fs. aio-max-nr = 1048576 fs. file-max = 6815744 kernel. shmall = 2097152 kernel. shmmax = 536870912 kernel. shmmni = 4096 www.2cto.com 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/sbin/sysctl-p: modify the system's restrictions on oracle files vim/etc/security/limits. conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 six: vim/etc/pam. d/login session required/lib/security/pam_limits.so session required pam_limits.so vim/etc/profile if [$ USER = "oracle"]; then if [$ SHELL = "/bin/ksh"]; then ulimit-p 16384
Ulimit-n 65536 else ulimit-u 16384-n 65536 www.2cto.com fi 7: Modify the oracle environment variable su-oracle vim. bash_profile umask 022 export ORACLE_BASE =/u01/app/oracleexport ORACLE_SID = orclexport ORACLE_HOME =/u01/app/oracle/product/11R2export PATH = $ PATH: HOME/bin: $ ORACLE_HOME/binalias sqlplus = 'rlwrap sqlplus 'Alias rman = 'rlwrap rman 'source. bash_profile is set to take effect 8: Well, now it is time to create the relevant oracle directory mkdir-p/u01/app/cd/u01/ Pp/decompress the two uploaded oracle 11g zip packages to the unzip linux.x64_11gR2_database_1of2.zip-d directory. /unzip linux.x64_11gr2_database5of2.zip-d. /authorization: chown-R oracle: oinstall/u01/app/chmod-R 775/u01/app/at this time, VNC and other tools are used, of course, it is best for the service to directly access the X windows interface to log on. In the access interface logon box, use the oracle user to log on to www.2cto.com to open the Termial terminal, and run cd/u01/app/database. /runInstaller. The installation interface will be displayed later. You can install the tool according to your specific requirements. Here is a script for automatically enabling and disabling oracle. You can use it for reference, put this script into/usr/l Ocal/sbin/. Here I name it Oracle11g vim Oracle11g #! /Bin/bashORACLE_HOME =/u01/app/oracle/product/11R2ORACLE_OWNER = oracleORACLE_DESC = "Oracle 11g" ORACLE_LOCK =/var/lock/subsys/oracle11gcase "$1" in 'start ') echo-n \ "Starting $ {ORACLE_DESC }: \ "runuser-$ ORACLE_OWNER-c '$ ORACLE_HOME/bin/lsnrctl start 'runuser-$ ORACLE_OWNER-C' $ ORACLE_HOME/bin/dbstart 'runuser-$ ORACLE_OWNER-C' $ ORACLE_HOME /bin/emctl start dbconsole 'touch $ {ORACLE_LOCK} echo ;; 'stop') echo-n "shutting down $ {ORACLE_DESC }: "runuser-$ ORACLE_OWNER-c '$ ORACLE_HOME/bin/lsnrctl stop 'runuser-$ ORACLE_OWNER-C' $ ORACLE_HOME/bin/dbshut 'rm-f $ {ORACLE_LOCK} echo ;; 'restart') echo-n "restarting $ {ORACLE_DESC}:" $0 stop $0 startecho www.2cto.com; *) echo "usage: $0 {start | stop | restart} "exit 1 esacexit 0 chmod a + x Oracle11g after you start oracle, you can directly execute Oracle11g start
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.