Oracle Installation documentation for 64-bit linux

Source: Internet
Author: User

The installation steps are basically the same as those of 32-bit, and some parameters are changed.
 
Official Website installation documents:
Http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#CIHFICFD
 
 
1. Install the Operating System
We recommend that you use English. In this way, garbled characters will be avoided in the future.
 
2. Check related installation packages
The following packages are required under redhat 5. These packages are basically installed during the installation of the operating system, but please confirm. The package version is also different. You only need to install the package.
 
Binutils-2.17.50.0.6-2.el5
Compat-db-4.2.52-5.1
Compat-gcc-34-3.4.6-4
Compat-gcc-34-c + +-3.4.6-4
Compat-libstdc ++-33-3.2.3-61
Compat-libstdc ++-33-3.2.3-61 (i386)
Compat-libstdc ++-296 (i386)
Gcc-4.1.1-52.el5.2
Gcc-c ++-4.1.1-52. el5.2
Glibc-2.5-12
Glibc-2.5-12 (i386)
Glibc-common-2.5-12
Glibc-devel-2.5-12
Glibc-devel-2.5-12 (i386)
Glibc-headers-2.5-12
Libgcc-4.1.1-52.el5 (i386)
LibXp-1.0.0 (i386)
LibXt-1.0.2 (i386)
LibXtst-1.0.1 (i386)
Libaio-0.3.106-3.2
Libaio-devel-0.3.106-3.2
Libgcc-4.1.1-52.el5
Libstdc ++-4.1.1-52. el5.2
Libstdc +-devel-4.1.1-52.el5.2
Libgomp-4.1.1-52.EL5
Make-3.81-1.1
Numactl-devel-0.9.8.x86_64
Sysstat-7.0.0-3.el5
 
The libXp and sysstat packages should be noted here. I have installed these two packages many times and none of them have been installed.
 
 
3. Set Shell Limits
3.1 Edit the/etc/security/limits. conf file and add the following content to the file:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
 
Note: After setting it here, you do not need to modify the/etc/profile file.
 
For Oracle 11gR2:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Oracle soft stack 10240
 
 
3.2 modify the/etc/pam. d/login file
Add the following content to the file:
Session required pam_limits.so


3.3 Modify/etc/profile and add the following content:
 
/Etc/profile: This file sets the environment information for each user in the system. When the user logs on for the first time, this file is executed. and from/etc/profile. the configuration file in the d directory Collects shell settings.
 
For the Bourne, Bash, or Korn shell, add the following lines to the/etc/profile file:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
 
 
4. Configure Kernel Parameters
Edit the/etc/sysctl. conf file. Add the following parameters:
 
# Controls the maximum shared segment size, in bytes -- average physical memory
Kernel. shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
Kernel. shmall = 4294967296 -- physical memory divided by pagesize
-- The preceding two parameters already exist. You only need to adjust the parameter size.
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 327679
Net. core. rmem_default = 1048576
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048586
Net. ipv4.ip _ local_port_range = 9000 65500 -- this port starts from 9000
 
For 11gR2
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 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 = 1048586
 
Note: If the existing value is greater than the value set here, do not modify it.
 
 
Descriptions on the official website:
 

Parameter Minimum Value File
Rmem_default 262144 /Proc/sys/net/core/rmem_default
Rmem_max 2097152 /Proc/sys/net/core/rmem_max
Wmem_max 1048576 /Proc/sys/net/core/wmem_max
Ip_local_port_range Minimum: 9000
# Maximum: 65500
Note: Ignore any Oracle Universal Installer warnings related to this parameter.
/Proc/sys/net/ipv4/ip_local_port_range
Aio-max-nr # Maximum: 1048576
Note: This value limits concurrent outstanding requests and shocould be set to avoid I/O subsystem failures.
/Sbin/sysctl
File-max 327679
Note: If you have multiple databases on the same system or if you plan to perform lidate multiple databases, then Oracle recommends using a higher value.
/Proc/sys/fs/file-max

 
5. Add User Groups and users and set a password for oracle users
# Groupadd oinstall
# Groupadd dba
# Groupadd rule
# Useradd-g oinstall-G dba oracle
# Passwd oracle
 
6. Create an Oracle Installation Folder
Mkdir-p/u01/app/oracle/product/10.2.0/db_1
Chown-R oracle. oinstall/u01
Chmod-R 777/u01
 
7. Set oracle user environment variables
 
# Vi/home/oracle/. bash_profile
-- Add the following code to the. bash_profile file:
# Oracle Settings
COLUMNS = 132; export COLUMNS
LINES = 47; export LINES
EDITOR = vi; export EDITOR

TMP =/tmp; export TMP
TMPDIR = $ TMP; export TMPDIR
ORACLE_BASE =/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID = anqing; export ORACLE_SID
SHLIB_PATH = $ LD_LIBRARY_PATH; export SHLIB_PATH
NLS_LANG = American_America.zhs16gbk; export NLS_LANG
ORA_NLS10 = $ ORACLE_HOME/nls/data; export ORA_NLS10
TNS_ADMIN = $ ORACLE_HOME/network/admin; export TNS_ADMIN
ORACLE_TERM = xterm; export ORACLE_TERM
PATH =/usr/sbin: $ PATH; export PATH
PATH = $ ORACLE_HOME/bin: $ PATH; export PATH
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH = $ ORACLE_HOME/jre: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib; export CLASSPATH

PS1 = "'hostname': \ $ PWD>"; export PS1
Alias glance =/opt/perf/bin/glance: x
Alias gohome = 'CD/u01/app/oracle/product/10.2.0'
Alias cdb = 'CD/u01/app/oracle/admin/anqing/bdump'
Alias cdu = 'CD/u01/app/oracle/admin/anqing/udump'





 
8. Start Installation
8.1 version Problems
If it is redhat 5, you need to change the version parameters. Edit the/etc/redhat-release file, comment out the original, and add the redhat-4. If the file is not supposed to be installed, you can add parameters during installation, such:
./RunInstaller-IgnoreSysPreReqs

The installation package of Oracle 10gis in the .cpio.gz format. The decompression method is as follows:
# Gunzip file name .cpio.gz
In this way, the file is decompressed to "file name. cpio", and then cpio is performed on it.
# Cpio-idmv <file name. cpio
This completely exposes the cpio file to us.


8.2 interface support required for OUI
You can use either Xmanager or NoMachine. If Xmanger is used, you need to specify the DISPALY variable, for example, export DISPLAY = 192.168.6.168: 0.0.
 
You can directly connect to Nomachine. This is the remote desktop. Easy to use. Refer:
Remote Desktop tool -- NoMachine: http://www.bkjia.com/ OS /201202/119415.html
 
 
 
------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware

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.