Installing Oracle under CentOS

Source: Internet
Author: User

1 , in the installation Oracle before installing the following component packages first, enter the following statements directly.

Yum Install binutils*-y

Yum Install compat-lib*-y

Yum Install gcc*-y

Yum Install glibc*-y

Yum Install ksh*-y

Yum Install libgcc*-y

Yum Install libstdc*-y

Yum Install libaio*-y

Yum Install make*-y

Yum Install sysstat*-y



2 , under root user , view sysctl.conf

Vi/etc/sysctl.conf

Then write the following parameters: Press i to enter the insertion mode, enter the completion of the ESC exit to command mode, and then lose: Enter the last line mode and then lose Wq to save the exit

Fs.aio-max-nr =1048576

Fs.file-max =6815744

Kernel.shmall =2097152

Kernel.shmmax =4294967295

Kernel.shmmni =4096

Kernel.sem = 25032000 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 =1048576

After writing the parameters, enter the following command to make the parameters effective

/sbin/sysctl-p

3,root user, view, if no parameters, join can

Vi/etc/security/limits.conf

Oraclesoft Nproc 2047

Oraclehard Nproc 16384

Oraclesoft Nofile 1024

Oraclehard Nofile 65536

Oraclesoft Stack 10240

4.Root user



[[Email protected]~]# groupadd DBA// add dba user Group (ORACLE Management Group)

[[Email protected]~]# groupadd oinstall// add oinstall user Group (ORACLE installation Group)

[Email protected]~]# groupadd Oper

[[Email protected]~]# useradd-g oinstall-g dba Oracle// Create Oracle user and join group

[[Email protected]~]# passwd Oracle// Modify password for Oracle user

[[Email protected]~]# CD/ //switch to root directory

[[Email protected]/]# mkdir-p/u01/app/oracle// Create installation directory

[[Email protected]/]# chown-r Oracle:oinstall/u01/app// Modify the installation directory permissions

[Email protected]/]# chmod-r 775/u01/app/oracle



5.Oracle User operation

Execute VI. bash_profile in the home directory of the Oracle user

The following parameters are then written to

EXPORTORACLE_SID=ORCL// DB instance Name

exportoracle_base=/u01/app/oracle//oracle installation directory

exportoracle_home= $ORACLE _base/product/11.2.0/db_1//oracle Home Directory

exportpath= $PATH: $ORACLE _home/bin// search Path

exportoracle_term=xterm// Specifies the type of Oracle terminal to be installed

Exportld_library_path= $LD _library_path: $ORACLE _home/lib

// Set the path path of the temporary library file

Exportclasspath= $ORACLE _home/jre:oracle_home/jlib: $ORACLE _home/rdbms/jlib

// set javalib File Search Path

Then use source.bash_profile to make the settings effective



6. Unzip the downloaded installation files (p13390677_112040_linux-x86-64_1of7.zip and p13390677_112040_linux-x86-64_ 2of7.zip)

Just unzip it.

Unzipp13390677_112040_linux-x86-64_1of7.zip./

Unzipp13390677_112040_linux-x86-64_2of7.zip./

Extract to current directory

After the decompression will generate a directory called database , to the database directory ls can see a file called Runinstaller , and then enter the command:. Runinstaller

You can see that there's a graphical interface that jumps out and installs it.

Installing Oracle under CentOS

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.