CentOS Install Oracle 11G notes

Source: Internet
Author: User
Tags dba

System: CentOS64 + oracle11g x86_64

1. Close the firewall,

# Vi/etc/selinux/config

Modify the selinux=disabled, and then restart.
If you do not want to restart the system, use the command Setenforce 0

2, the establishment of script build.sh,

# vim build.sh      #注意以root登陆执行

Paste the following code in:

#!/bin/bash# installing dependent library files Yum-y install binutils compat-libcap1 \ Yum-Y Install compat-libstdc++- -Yum-Y Install compat-libstdc++- -*. i686 Yum-Y Install elfutils-libelf-Develyum-y install gcc yum-Y Install gcc-c++Yum-Y Install glibc*. i686 Yum-y install glibc yum-Y Install glibc-devel Yum-Y Install glibc-devel*. i686 Yum-y install ksh yum-Y Install libgcc*. i686 LIBGCC libstdc++LIBSTDC++*. i686 LIBSTDC++-devel libstdc++-devel*. i686 Yum-y install Libaio Libaio*. i686 Libaio-devel Libaio-devel*. i686 Yum-y install make yum-y install Sysstatyum-y install UnixODBC yum-Y Install unixodbc*. i686 Yum-Y Install unixodbc-devel Yum-Y Install unixodbc-devel*. I686yum-y install Javayum-y install Libxp #注意需要安装libXp这个Library, this must be installed, or the installation of Oracle will appear when the Java exception# to log on as the root user/usr/sbin/Groupadd dba/usr/sbin/Groupadd Oper/usr/sbin/groupadd oinstall# Adding Oracle user useradd Oracle/usr/sbin/usermod-g Oinstall-G dba oracle# add password to Oracle user Passwdecho passwd|PASSWD--stdin oracle# Pre-Create the installation directory mkdir-p/opt/oracle/Productmkdir-p/opt/oracle/product/Orahomemkdir-p/opt/Orainventorymkdir-p/opt/oracle/Oradatamkdir-P/var/opt/oracle# Sets the group and permissions that the owner of the directory belongs to Chown-R oracle.oinstall/opt/Oraclechown-R oracle.oinstall/opt/oracle/Oradatachown-R oracle.oinstall/opt/oracle/product/Orahomechown-R oracle.dba/opt/Orainventorychown oracle.dba/var/opt/Oraclechmod-R775/opt/Oraclechmod-R755/var/opt/oracle
View Code

Execute script

3. Edit/etc/security/limits.conf

# vi/etc/security/limits.conf

Add the following lines at the end of the file:

Oracle  Soft        nproc   2047Oracle  hard        nproc   16384Oracle  soft        nofile  Oracle hard        nofile  65536
View Code

4. Setting environment variables for user Oracle

#su- Oracle$ vi/home/oracle/.bash_profile

Add at the bottom of the file

 export Oracle_base=/opt/oracleexport oracle_home  = $ORACLE _base/product/ orahomeexport oracle_sid  =orclexport Oracle_ OWNER  =oracleexport oracle_term  = Vt100export path  = $PATH: $ORACLE _home/bin: $HOME/binexport path  = $ORACLE _home/bin: $ORACLE _home/apache/apache/bin: $PATHLD _library_path  = $ORACLE _ Home/lib:/lib:/usr/lib:/usr/local/libexport Ld_library_pathclasspath  =$ ORACLE_HOME/JRE: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlibclasspath  =$ CLASSPATH: $ORACLE _home/network/jlibexport classpathpath  = $PATH:/usr/sbin; Export Pathpath  = $PATH:/usr/bin; Export PATH 
View Code

--Execute the following command to have the configuration take effect immediately or with the Oracle user login to make the settings effective

[Email protected] ~]$ source $HOME/.bash_profile

5, Upload oracle11g installation package, and unzip, note: To ensure that the uploaded directory Oracle user has sufficient permissions, if uploaded to the/opt/soft directory

-~]# cd/opt/soft/-R oinstall Database

6, start the installation (intermediate process encountered problems and solutions, see next: http://i.cnblogs.com/?postid=4471758&update=1)

6-1. Reboot the system, make the settings effective, then log in with the Oracle user, execute the command

[[Email protected] ~] #cd/home/oracle/~]#./runinstaller

6-2. Process:

6-2.1, execute command

6-2.2, no mail not updated, remove check box,

6-2.3,

6-2.4,

6-2.5, Password: case, number, 8-bit

6-2.7,

6-2.8,

6-2.9, Ignore All

6-2.10, save the response file

6-2.11, start to install the product

6-2.12,

6-2.13, manage passwords and unlock Scott users

6-2.14, NEXT,

6-2.15, prompt to execute script as root user

6.2.16, complete the installation, click Close

7. Switch to root user execution script/opt/orainventory/orainstroot.sh and/opt/oracle/product/orahome/root.sh

[email protected] desktop]# Su-[[Email protected]~]#/opt/orainventory/orainstroot.sh changing permissions of/opt/orainventory.adding read,write Permissions forGroup. Removing Read,write,execute permissions forWorld . changing groupname of/opt/orainventory to Oinstall. The execution of the script isComplete . [[Email protected]/]#/opt/oracle/product/orahome/root.sh Running Oracle 11g root.sh script ... The following environment variables isSet  as: Oracle_owner=Oracle Oracle_home=/opt/oracle/product/Orahomeenter the full pathname of the Local bin directory: [/usr/local/bin]: Here enter Copying Dbhome to/usr/local/bin ... Copying oraenv to/usr/local/bin ... Copying coraenv to/usr/local/bin ... Creating/etc/oratab File ... Entries 'll be added to the/etc/oratab file asneeded bydatabase Configuration Assistant when a database iscreatedfinished running generic part of root.sh script. Now product-specific root actions would be performed. Finished product-specific root actions.
View Code

Reference URL:

http://blog.163.com/xiangfei209%40126/blog/static/98695674201381910470981/

Http://www.linuxidc.com/Linux/2013-06/85357.htm

Http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCGJCEA

CentOS Install Oracle 11G notes

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.