Install Oracle11g in Linux

Source: Internet
Author: User
Linux installation Oracle11g1, download and install VMwareWorkstationv9.0.2 Virtual Machine Software, download rhel-server-6.0-x86_64-dvd.iso installation RedHatEnterpriseLinux664-bit operating system to VMware, add Linux User oracle installation. 2. In the vmwarevm, set the optical drive attribute to use the ISO image file.

Install Oracle11g Linux, download and install VMware Workstation v9.0.2 Virtual Machine Software, download the rhel-server-6.0-x86_64-dvd.iso to install Red Hat Enterprise Linux 6 64-bit operating system to VMware, add Linux user oracle when installing. 2. In the vmwarevm, set the optical drive attribute to use the ISO image file.

Install Oracle11g in Linux

1. Download and install VMware Workstation v9.0.2 Virtual Machine Software, download rhel-server-6.0-x86_64-dvd.iso installation Red Hat Enterprise Linux 6 64-bit operating system to VMware, add Linux user oracle during installation.
2. In the vmwarevm, set the optical drive attribute to use the ISO image file linux. x64_11gR2_database.iso, connect to the VM, and copy the Oracle11G installation folder in the optical drive to the/u02/directory of the VM.
3. Modify the IP address of the Linux virtual machine to 192.168.1.121 and the host name gpdb.
Query the IP address ipconfig/all of the host in Windows.
IP Address ......: 192.168.1.21
Subnet Mask ......: 255.255.255.0
Default Gateway...: 192.168.1.1
DHCP Server ......: 192.168.1.1
DNS Servers ......: 61.235.70.252
114.114.114.114

How to Set IP addresses in Linux: System-Preferences-Network Connections
Select System eth0, click Edit, switch to the IPV4 Settings tab, Set Method to Manual, and click [Add]
Select Auto eth1

4. Edit some configuration files
1> enter the command: vi/etc/security/limits. conf, press the I key to enter the editing mode, and add the following content to the file.
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
After editing, Press Esc and enter ": wq" to save the disk and exit.
2> enter the command vi/etc/pam. d/login, press the I key to enter the editing mode, and add the following content to the file.
Session required/lib/security/pam_limits.so
Session required pam_limits.so
After editing, Press Esc and enter ": wq" to save the disk and exit.
3> enter the command vi/etc/profile, press the I key to enter the editing mode, and add the following content to the file.
# Oracle setup
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
After editing, Press Esc and enter ": wq" to save the disk and exit.
4> enter the command vi/etc/sysctl. conf, press the I key to enter the editing mode, and add the following content to the file.
Fs. file-max = 6815744
Fs. aio-max-nr = 1048576
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048576
After editing, Press Esc and enter ": wq" to save the disk and exit.
5> enter the command sysctl-p to refresh the configuration.


5. Create a user group required for Oracle Installation and add the oracle user to the user group just added.
Create user group commands
Groupadd oinstall
Groupadd dba
Add oracle users to the created user group
Usermod-a-G oinstall oracle
Usermod-a-G dba oracle

6. Create a database software directory and a data file storage directory
Mkdir/u01
Mkdir/u02
Mkdir/u02/database


7. Set the permissions for the relevant database installation directories and files
Mkdir/u01/app
Mkdir/u01/app/oracle
Mkdir/u01/app/oradata
Mkdir/u01/app/oracle/product

Chown-R oracle: oinstall/opt
Chown-R oracle: oinstall/u01/app
Chown-R oracle: oinstall/u02/database

Chmod 777/opt
Chmod 777/u01
Chmod 777/u02/database/runInstaller
Chmod 777/u02/database/install/. oui
Chmod 777/u02/database/install/unzip

8. Switch the user to oracle, su-oracle. Modify and edit the environment variable vi. bash_profile, and add
Umask 022
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/dbhome_1
Export ORACLE_SID = orcl
Export PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

9. Switch to the database directory,

If the last Installation failed, delete the folder first.
Rm-rf/u01/app
Rm-rf/u01/oraInventory

Chown-R oracle: oinstall/opt
Chown-R oracle: oinstall/u01/app
Chown-R oracle: oinstall/u02/database

Chmod 777/opt
Chmod 777/u01
Chmod 777/u02/database/runInstaller
Chmod 777/u02/database/install/. oui
Chmod 777/u02/database/install/unzip

10. Install Oracle-related Linux packages
Log on to the root user interface, copy the Packages directory of the CD of Redhat Enterprise Linux 6 to/Packages, and run the following two commands to check for uninstalled Packages in the Linux system:
[Root @ gpdb Desktop] # rpm-q binutils compat-libcap1 compat-libstdc ++-33 gcc-c ++ glibc-devel ksh libgcc libstdc ++-devel

[Root @ gpdb Desktop] # rpm-q libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat

Go to the Packages directory and find the corresponding package name.

Cd/Packages

Find.-name compat-libcap1 *
Find.-name compat-libstdc ++-33 *
Find.-name gcc *
Find.-name ksh *
Find.-name libstdc ++-devel *
Find.-name libaio-devel *

After finding the corresponding package name, run the following installation command:

Rpm-ivh compat-libcap1-1.10-1.x86_64.rpm
Rpm-ivh compat-libstdc ++-33-3.2.3-69.el6.x86_64.rpm
Rpm-ivh ksh-20100621-2.el6.x86_64.rpm
Rpm-ivh libstdc ++ devel-4.4.4-13.el6.x86_64.rpm
Rpm-ivh libaio-devel-0.3.107-10.el6.x86_64.rpm
Rpm-ivh gcc-c ++-4.4.4-13. el6.x86 _ 64.rpm

11. log out of the root user. Use the oracle user to log on to the system and run the command in the command line.
Cd/u02/database
./RunInstaller

Enable the installation interface and ignore other errors until the installation is complete.

??

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.