Install Oracle 11gR2 (11.2.0.1) and basic configuration (1) on CentOS6.0, and centos6.011gr2

Source: Internet
Author: User

Install Oracle 11gR2 (11.2.0.1) and basic configuration (1) on CentOS6.0, and centos6.011gr2
First install CentOS6.0. Install it. The only thing to note is the Checking the Software Requirements section in the Oracle 11G Installation guide, which requires Installation of some Software in the CentOS6 DVD image. You can configure the repos of a DVD image by yourself. The command format is as follows: rpm-qa | grep name binutils-2.17.50.0.6 okcompat-libstdc ++-33-3.2.3 okelfutils-libelf-0.125 okelfutils-libelf-devel-0.125 elfutils-libelf-devel-static-0.125 -- gcc-4.1.2 -- okglibc-2.5-24 okgcc-c ++-4.1.2 okglibc-common-2.5 okglibc-devel-2.5 okglibc-headers-2.5 okkernel-headers-2.6.18 okksh-20060214 oklibaio-0.3.106 oklibaio-devel-0.3.106 libgcc-4.1.2 oklibgomp-4.1.2 oklibstdc + +-4.1.2 oklibs Tdc ++-devel-4.1.2 okmake-3.81 oknumactl-devel-0.9.8.i386 sysstat-7.0.2 -- unixODBC-2.2.11 -- unixODBC-devel-2.2.11 -- CentOS-5.5-i386-bin-DVD.iso -- find the missing package from the \ CentOS file and upload it to linux, ls *. rpmrpm-ivh *. rpm CentOS6.0 Basic Environment configuration ==========## create dba and oinstall user groups. This command is used to distinguish groupadd oinstallgroupadd dbamkdir-p/u01/oracle # To add an oracle user. The root directory is/u01/oracle, the primary group is oinstall. The secondary group is dbauseradd-g oinstall-G dba-d/u01/oracle # copy several users. the democp/etc/skel /. bash_profile/u01/oraclecp/etc/skel /. bashrc/u01/oraclecp/etc/skel /. bash_logout/u01/oracle # Set the password 123456 passwd oraclechown-R oracle: oinstall u01 for oracle users # Check whether nobody exists and id nobody exists by default. # If it does not exist #/usr/sbin/useradd-g nobody ########################### ##### modify kernel parameters (preferably according to Oracle Installation Requirements) # vi/etc/sysctl. conffs. aio-max-nr = 1048576fs. file-max = 6815744kernel. shmall = 2097152kernel. shmmax = 536670912kernel. shmmni = 4096kernel. sem = 250 32000 100. net. ipv4.ip _ local_port_range = 9000 65500net. core. rmem_default = 262144net. core. rmem_max = 4192134net. core. wmem_default = 262144net. core. wmem_max = 1048586 # Enable kernel parameters immediately without restarting # sysctl-p # vi/etc/security/limits. conforacle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 # vi/proc/sys/fs/file-max 120300/512 # (unverified is not important) # vi/etc/pam. d/login # unknown session required pam_limits.so ######################### setting oracle user environment variables # su-oracle # vim ~ /. Bash_profileORACLE_BASE =/u01ORACLE_HOME = $ ORACLE_BASE/oracleORACLE_SID = wilsonPATH = $ ORACLE_HOME/bin: $ PATH: $ HOME/binexport ORACLE_BASE ORACLE_HOME ORACLE_SID PATH # view the set environment variable ITPUB personal space. [oracle @ oracle11g ~] $ Env | grep ORA # the specific role is unknown # vi/etc/profileif [$ USER = "oracle"]; then if [$ SHELL = "/bin/ksh"]; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fifi # ifconfig # change the IP address to a fixed IP address # remove an oracle11g from the content in vi/etc/hosts editing [local name when Linux is installed] ### this should be changed as needed. The role should be to install the Oracle11gR2 ============= installation file on the IP192.168.0.100 oracle11g during remote connection. # note that, the installation environment in English requires the support of LANG. Otherwise, Chinese characters are garbled. Export LANG = en_US./runInstaller: Execute the installation (oracle user, non-root). After installation, the Root user needs to execute two scripts to execute the following command [root @ oracle11g ~] #/U01/oraInventory/orainstRoot. [root @ oracle11g ~] #/U01/oracle/root. sh [root @ oracle11g database] # netca configuration listener [root @ oracle11g database] # ps-ef view listener [root @ oracle11g database] # dbca install database test Oracle connection sqlplus DBSNMP /passWORDSQL>! Ps-efSQL>! Ps-ef | grep some common oracle Database processes start the listener [Oracle @ devrfel501 ~] $ Lsnrctl start Enterprise Manager [oracle @ devrfel501 ~] $ Emctl start dbconsole https://192.168.70.128:1158/em/console/aboutApplication This is my computer's local name using Net Manager Configuration [root @ oracle11g ~] # Start ftp in netmgrLinux [root @ localhost ~] # Service vsftpd start in dos C: \ Users \ Administrator> ftp 192.168.48.130 OK to connect to 192.168.48.130. Liunx disable firewall [root @ localhost ~] # Service iptables stop [root @ localhost ~] # Vi/etc/inittab I can only see ID: 3: INITDEFAULT, but I don't know how to change 3 to 5? Reduce memory overhead ..

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.