Install Oracle 10 Gb in Linux AS4

Source: Internet
Author: User

I. Installation of LINUX
1. RedHat AS4 system installation:
Disk Partition Note: SWAP space is twice the memory size.
The basic network configuration is based on local network conditions.
Host Name: linuxsvr
Basic Firewall Configuration:
⊙ No firewall
⊙ Enable SELinux: Disabled
Installation Options:
⊙ Customize the software package to be installed (C)
Desktop options:
(√) X Window System (select default)
(√) GNOME Desktop Environment (select default)
(√) KDE Desktop Environment (select default)
Application options:
() Engineering and science (select the default)
() Graphical Internet (select default)
(√) Text-based Internet (select default)
() Office/productivity (select default)
Server options:
(√) Server configuration tool (select all)
() World Wide Web Server (select all)
(√) Windows File Server (select all)
() DNS server (select all)
Development Options:
(√) Development tools (select all)
System Options:
(√) Management tools (select default)
(√) Printing support (select the default value)
Miscellaneous options:
Do not select all;
After installation, find the following file in the third installation disk and double-click it. Otherwise, an error is reported during Oracle installation.
Libaio-devel-0.3.103-3.i386.rpm
Readline-devel-4.3-13
Install the software packages listed above. Otherwise, some unnecessary errors may occur when installing the Oracle system!

2. Preparations for Oracle installation:
1. Configure the system kernel parameters, log on as the root user, modify the parameters in the/etc/sysctl. conf file, and add the following parameters to the file:
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
2. Create the user group oinstall, dba, and Oracle users required for database installation, and define oinstamll and dba as the primary and secondary groups of oracle users. Command reference:
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba oracle (set oracle users as members of the oinstall and dba user groups)
# Passwd oracle (set the password of an oracle user)
3. log on to the system as the root user to create the installation directory and database file directory of the Oracle system. For example:/oracle, and the command for changing the attributes of the preceding directory, refer to the following:
# Mkdir-p/oracle/product/10.2.0 (create a data directory)
# Chown-R oracle. oinstall/oracle (set the user group and user to which the directory belongs)
# Chmod-R 775/oracle (set the directory read and write permissions)
4. log on to the system as an oracle user and copy the oracle Installation File to/home/oracle:
# Cp original folder/home/oracle/(copy the file to the oracle personal directory; you can also copy the file in the graphic interface)
# Unzip/home/oracle/10201_database_linux32.zip (decompress the zip file)
5. Configure the oracle user environment, log on as an oracle user, and modify the. bash_profile file under the oracle user. Add the following parameters:
Vi. bash_profile (execute the vi command to modify. bash_profile)
# Get the aliases and functions
  
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
  
# User specific environment and startup programs
  
PATH = $ PATH: $ HOME/bin
  
Export PATH
Unset USERNAME
# The following content is what we need to configure
Umask 022
TMP =/tmp; export TMP
TMPDIR = $ TMP; export TMPDIR
ORACLE_BASE =/oracle; export ORACLE_BASE
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0/; export ORACLE_HOME
ORACLE_SID = fstest; export ORACLE_SID
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
# LD_ASSUME_KERNEL = 2.4.1; export LD_ASSUME_KERNEL
6. Restart the operating system:
# Reboot (restart command)
Note: root (super user) cannot be used to install the Oracle software. You can only use the newly created oracle user to install the software!

  • 1
  • 2
  • 3
  • Next Page

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.