Install Oracle 11g in RedHat Enterprise Linux 5.0

Source: Internet
Author: User

I. preparations:
Go to www.oracle.comto download linux_x86_11gr1_database.zip (x86 represents the architecture of the computer and is usually x86 ).
2. Create necessary users, groups, and directories
# Mkdir-p/u01/Oracle
# Groupadd dba
# Groupadd oinstall
# Useradd-g oinstall-G dba/u01/oracle
# Passwd oracle password setting
# Chown-R oracle: oinstall/u01 assign the u01 directory to the oracle user oinstall Group
# Ls-l check whether the command is effective
This is not the officially recommended OFA (the best and most flexible architecture design) standard. OFA Directory design is more complex than this. Are you sure you want to install oracle first. I will study it later...
Iii. installation and configuration process
(1) run the rpm update package on the linux system disk. Run the rpm-qa | grep * command to check the packages to be installed.
Binutils-2.15.92.0.2-18
Compat-libstdc ++-33.2.3-47.3
Elfutils-libelf-0.97-5
Elfutils-libelf-devel-0.97-5
Glibc-2.3.9.4-2.19
Glibc-common-2.3.9.4-2.19
Glibc-devel-2.3.9.4-2.19
Gcc-3.4.5-2
Gcc-c ++-3.4.5-2
Libaio-devel-0.3.105-2
Libaio-0.3.105-2
Libgcc-3.4.5
Libstdc ++-3.4.5-2
Libstdc +-devel-3.4.5-2
Make-3.80-5
Sysstat-5.0.5
UnixODBC-2.2.11
UnixODBC-devel-2.2.11
(2) set the Linux kernel: Open/etc/sysctl. conf and add the following content at the end:
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
(Vi/etc/sysctl. conf is enabled. After adding it, run ESC +: + w to save it, and run ESC +: + q to exit)
# Run sbin/sysctl-p to make the system take effect.

(3) Modify/etc/security/limits. conf and add the content
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
(4) Modify/etc/profile and add content
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
4. Go to oracle and set oracle environment variables.
# Su oracle
Open v. bash_proAdd file
ORACLE_BASE =/u01 // This folder can be created based on individual conditions. The following settings are changed accordingly.
ORACLE_HOME = $ ORACLE_BASE/oracle
ORACLE_SID = orcl (your database name)
PATH = $ ORACLE_HOME/bin: $ PATH
Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
5. Start Installation
Enter the rootuser to decompress your linux_x86_11gR1_database.zip file with unzip linux_x86_11gR1_database.zip to obtain the database and move it to the/u01 directory.
# Mv database // u01
# Chown-R oracle: oinstall/u01/database
Su oracle is in the database directory $./runInstaller
If a diaplay variable error is prompted, enter the root user # xhost + localhos
# Xhost +
Disable access restriction and allow any access. Use xhost after oracle Installation-Disable
Select advanced installation for custom installation
During installation, a warning about the oraInventory directory is displayed. Click OK to continue. In the subsequent window, change/oraInventory to/u01/oraInventory.
The subsequent parameters are all default values. During installation, a u01/oraInventory/oraInstRoot. sh and/u01/oracle
/Root. sh prompt box, you can run these two files as ROOT users in secureCRT. Be sure to pay attention to the case. End
Installtion window. installation is complete.
Enter the netca command to configure the listener. All parameters are set by default. You can use ps-ef to check whether the service is enabled.
Enter the dbca command to create a database. The following are some precautions:
Select gernel purpose. In SID and global name, select you in. bash_proSID created in file.
Select the 2nd Item AL32UTF8 from the Character Sets Character Set option.
OK.
If netca and dbca cannot be enabled, check whether your environment variable settings are correct.

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.