Install oracle11g under Linux

Source: Internet
Author: User

Install oracle11g under Linux

1,   download install VMware Workstation v9.0.2 virtual machine software, download rhel-server-6.0-x86_64-dvd.iso install red Hat Enterprise Linux 6 64- Bit operating system into VMware, install time add Linux user Oracle.
2,   set the optical drive properties in the VMware virtual machine to use the ISO image file Linux.x64_11gR2_database.iso, and connect to the virtual machine, copy the oracle11g installation folder in the CD-ROM to the virtual machine u02/directory under
3,   modify the IP address of the Linux virtual machine to 192.168.1.121 and host name gpdb
 windows The IP address of the host under the query Ipconfig/all
  IP Address ...: 192.168.1.21
  Subnet Mask ....: 255.255.255.0
  DEFAU-------- Lt Gateway ..... . : 192.168.1.1
  DHCP Server ...: 192.168.1.1
  DNS Servers ...........:61.2 35.70.252
                                        114.114.114.114

Configure IP Address under Linux method: System-preferences-network Connections
After selecting the system eth0 click the Edit button, switch to the IPV4 Settings tab, set method to Manual, click [ADD]
Select Auto Eth1

4. Edit some configuration files
1> input command: vi/etc/security/limits.conf, press I to enter edit mode, add the following content to the file
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Press ESC when editing is complete and enter ": Wq" to eject
2> input command: Vi/etc/pam.d/login, press I to enter edit mode, add the following content to the file.
Session required/lib/security/pam_limits.so
Session Required Pam_limits.so
Press ESC when editing is complete and enter ": Wq" to eject
3> input command: Vi/etc/profile, press I to enter edit mode, 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
Press ESC when editing is complete and enter ": Wq" to eject
4> input command: vi/etc/sysctl.conf, press I to enter edit mode, 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
Press ESC when editing is complete and enter ": Wq" to eject
5> input command sysctl-p refresh configuration


5. Create user groups required for Oracle installation, add Oracle users and belong to the user group you just added
Create User Group command
Groupadd Oinstall
Groupadd dba
To join an Oracle user to a newly created user group
USERMOD-A-G Oinstall Oracle
USERMOD-A-G DBA Oracle

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


7, set the relevant database installation directory and file corresponding permissions
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 users to oracle,su-oracle. Modify the Edit environment variable Vi. bash_profile, add at the end
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 fails, 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

Then execute the command
Cd/u02/database
./runinstaller

10, perform the installation, until the completion. As of the current time, the installation process as if it will be error, the temporary has not passed a little error installation test. The basic steps go through.

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.