CENTOS6 Installing Oracle 11g

Source: Internet
Author: User

First, install the software package required by Oracle (depending on the Oracle official documentation)


can use

# yum-y Install binutils* compat-lib* gcc-* glibc-* ksh libgcc-* libstdc++-* libaio-* make-* sysstat*

For installation.

Ii. creating user groups and users (Root)

# groupadd oinstall# groupadd dba# useradd-g oinstall-g dba oracle# passwd Oracle

Third, configure the Linux kernel parameters (root)

#vi/etc/sysctl.conf ... fs.aio-max-nr = 1048576fs.fi Le-max = 6815744kernel.shmall = 2147483648kernel.shmmax = 68719476736kernel.shmmni = 4096kernel.sem = 32000 128net . Ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586 ... #sysctl-P

Iv. Modifying user parameters (root)

#vi/etc/security/limits.conf...oracle soft Nproc 2047oracle hard Nproc 16384oracle Soft nofile 1024oracle hard nofile 65536 ...

V. Create a table of contents

Mkdir-p/u01/app/

Chown-r oracle:oinstall/u01/app/

Chmod-r 775/u01/app/

VI. Setting Environment variables

Vi. bash_profileexport oracle_base=/u01/app/oracleexport Oracle_home=/u01/app/oracle/product/11.2/db_1export PATH= $ORACLE _home/bin: $ORACLE _home/opatch: $ORACLE _home/jdk/bin: $PATHexport oracle_sid=testexport lang= "en_US. UTF-8 "Export Nls_lang=american_america. Utf8export nls_date_format= "Yyyy-mm-dd HH24:MI:SS"

Seven, decompression

#unzip Linux.x64_11gR2_database_1of2.zip #unzip Linux.x64_11gR2_database_2of2.zip

Eight, cut to Oracle user, install, will error could not execute auto check for display colors using Command/usr/bin/xdpyinfo.    Check If the DISPLAY variable is set. Failed <<<<

#su  - oracle$cd  /opt/database$ ./runinstallerstarting oracle universal  installer ... checking temp space: must be greater than 120 mb.    actual 83942 mb    passedchecking swap space: must be  greater than 150 mb.   actual 7967 mb     passedchecking monitor: must be configured to display at least  256 colors    >>> could not execute auto check  for display colors using command /usr/bin/xdpyinfo. check if the  DISPLAY variable is set.    Failed <<<<Some  requirement checks failed. you must fulfill these requirements  Beforecontinuing with the installation,Continue?  (y/n)  [n] nuser selected: noexiting oracle  universal installer, log for this session can be found at  /tmp/orainstall2017-06-25_10-52-12pm/installactions2017-06-25_10-52-12pm.log$ su -password:  [email protected]:~#  [email protected]:~# xhost +si:localuser:o raclelocaluser:oracle being added to access control list[email protected]:~ # su -oracle

Error is resolved with the above command, add Oracle user to Xhost

Execute installation command, install, pop-up graphical interface

Final execution

#/u01/app/orainventory/orainstroot.sh#/u01/app/oracle/product/11.2.0/dbhome_1/root.sh


This article is from the "Tea foam" blog, please be sure to keep this source http://chayemo.blog.51cto.com/13018459/1941970

CENTOS6 Installing Oracle 11g

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.