Install Oracle 11gR2 database in CentOS 6

Source: Internet
Author: User


CentOS 6 install Oracle 11gR2 database 1. install the [1] Software Package www.2cto.com [root @ localhost var] # yum-y install binutils compat-libstdc ++-33 elfutils-libelf-devel glibc-common glibc-devel gcc-c ++ libaio-devel libgcc libstdc ++-devel make sysstat unixODBC-devel installation package pdksh-5.2.14-36.el5.i386.rpm (this package does not exist in the yum source, therefore, you must install the package manually. If you do not install oracle, a warning will appear, but it will not affect the final use.) download this package and upload it to CentOS and run the following command to install the package: Installation. [Root @ localhost public_root] # rpm-ivh pdksh-5.2.14-36.el5.i386.rpm [2] changing the kernel Parameter [root @ localhost var] # vi/etc/sysctl. conf www.2cto.com # Disable netfilter on bridges. # net. bridge. bridge-nf-call-ip6tables = 0 # net. bridge. bridge-nf-call-iptables = 0 # net. bridge. bridge-nf-call-arptables = 0 # Controls the default maxmimum size of a mesage queuekernel. msgmnb = 65536 # Controls the maximum size of a mes Sage, in byteskernel. msgmax = 65536 # Controls the maximum shared segment size, in byteskernel. shmmax = 4294967295 # Controls the maximum number of shared memory segments, in pageskernel. shmall = 268435456 # add net. ipv4.ip _ local_port_range = 9000 65500fs. file-max = 6815744 www.2cto.com kernel. shmall = 10523004kernel. shmmax = 6465333657kernel. shmmni = 4096kernel. sem = 250 32000 100. net. core. Rmem_default = 262144net. core. wmem_default = 262144net. core. rmem_max = 4192134net. core. wmem_max = 1048576fs. aio-max-nr = 1048576 run the following command to make the change take effect [root @ localhost var] # sysctl-p [3] users and user groups required to create and install oracle [root @ localhost var] # groupadd-g 200 oinstall [root @ localhost var] # groupadd-g 201 dba [root @ localhost var] # useradd-u 440-g oinstall-G dba-d/usr/oracle oracle [root @ localhost var] # passwd oracle [root @ localho St var] # vi/etc/pam. d/login # % PAM-1.0 www.2cto.com auth [user_unknown = ignore success = OK ignore = ignore default = bad] must include system-authaccount required should include system-authpassword include system-auth # pam_selinux.so close shocould be the first session rulesession required pam_selinux.so closesession required pam_loginuid.sosession optional pam_lele.so # pa Revoke open shoshould only be followed by sessions to be executed in the user contextsession required into opensession required into required pam_limits.sosession optional merge force revokesession include system-auth-session optional merge [root @ localhost var] # vi/etc/security/limits. conf www.2cto.com # Add oracle soft nproc 2047 oracle ha at the end of the file Rd nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 [root @ localhost var] # vi/etc/profile # Add if [$ USER = "oracle"] at the end of the file; then if [$ SHELL = "/bin/ksh"]; thenulimit-p 16384 ulimit-n 65536 elseulimit-u 16384-n 65536 fifi [4] switch to the oracle user, and configure www.2cto.com [root @ localhost ~] # Su-oracle [oracle @ localhost ~] $ Chmod 755/usr/oracle [oracle @ localhost ~] $ Mkdir/usr/oracle/app [oracle @ localhost ~] $ Chmod 755/usr/oracle/app/[oracle @ localhost ~] $ Mkdir/usr/oracle/oradata [oracle @ localhost ~] $ Chmod 755/usr/oracle/oradata/[oracle @ localhost ~] $ Vi. /. bash_profile # Add umask 022 export ORACLE_BASE =/usr/oracle/app 2 to the end of the file. install oracle database [1] download the oracle Installation File (for linux x86) and upload it to www.2cto.com on CentOS http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html [2] decompress the Installation File [root @ localhost public_root] # unzip [root @ localhost public_root] # unzip linux_11gr2_database204 f2.zip [3] to log on as an oracle user. The startx command starts the graphical interface, open a terminal window, go to the folder where the database is just extracted, and run the following command [oracle @ localhost database] $. /runInstaller [4] shows how to start the oracle Installation interface. Enter the email address and password (oracle user ), to receive security updates and other information from oralce [5] Only install database software [6] in this instance select to install a single instance database [7] Select language [8] select the version to install, select "Enterprise Edition" [9] to specify Oracle Bas E and Software Location. We have set this environment variable in the profile file of the oracle user. The default value [10] is used to specify Inventory Directory, in this example, [11] is used to specify the oralce privileged user group. In this example, [12] is used as the default. Next, the oralce installer checks the installation environment. In this example, no problems are detected, the installation information is displayed as follows. Directly Finish and start installation. [13] waiting for oracle Installation [14] When the following window appears, open another terminal, log on as the root user, and execute the following command. After the execution is complete, click OK [root @ localhost ~] #/Usr/oracle/oraInventory/orainstRoot. sh
Changing permissions of/usr/oracle/oraInventory.
Adding read, write permissions for group.
Removing read, write, execute permissions for world. Changing groupname of/usr/oracle/oraInventory to oinstall.
The execution of the script is complete.
[Root @ localhost ~] #/Usr/oracle/app/product/11.2.0/dbhome_1/root. sh
Running Oracle 11g root. sh script... The following environment variables are set:
ORACLE_OWNER = oracle
ORACLE_HOME =/usr/oracle/app/product/11.2.0/dbhome_1
[15] Now the oracle 11g R2 database has been installed. [16] disable SeLinux for other considerations. Configure FTP and above (you can also use other methods)

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.