The Oracle tutorial you are looking at is: Install Oracle under Linux. Because Oracle itself is more complex, installing in a Linux environment involves many factors. This article presents two aspects of the installation of Oracle 8.0.5 in the Linux RedHat 6.0 environment.
First, adjust the Linux core and environment
Before installing Oracle, you should first adjust the Linux kernel and environment for Redhat 6.0 to do the following:
1. After completing the default installation of Redhat 6.0 Linux, the following packages need to be installed.
kernel-source-2.2.5-15.1386.rpm
Linux 2.2.5 Kernel source code, mainly used to modify core parameters and then rebuild the kernel.
tcl-8.0.4-29.1386.rpm
This package is required to install the Oracle Intelligent Agent package.
compat-binutils-5.2-2.9.0.23.1.1386.rpm
compat-glibc-5.2-2.0.7.2.1386.rpm
compat-egcs-5.2-1.0.3a.1.1381.rpm
Compat-egcs-c++ -5.2-1/0/3a.1.1386.rpm
compat-libs-5.2-1.1386.rpm
2, adjust the Linux core parameters
The Linux core parameters can be adjusted according to Oracle 8.0.5 requirements for Linux core memory parameters. Edit modify/usr/src/linux/include/asm/shmparam.h file, modify Shmmax option. Oracle recommends using 4294967295, which means that the system's shared memory reaches 4G, which is not appropriate. Generally, the Shmmax settings can be slightly larger than the native memory configuration.
In fact, the default installation of the Redhat 6.0 core running Oracle 8.0.5 is not a problem, and you may not normally be able to make adjustments to these parameters.
If you need to adjust, after the modification, you need to rebuild the core as required by the document and use the LILO command to specify the new core for booting.
3, add users, create installation directory
Oracle installation and operation requires the creation of an Oracle user who belongs to the DBA group, as well as the creation of an installation point directory for the master Oracle user, such as/u0/oracle, and specifies that the directory is the default home directory for Oracle users.
To set up an Oracle user's operating environment, a script file is created in the home directory of the Oracle user to automatically set the environment variables in an Oracle user login. The name of the script file is related to the shell used by the user (defined in the etc/passwd file). If bash is used, the script file is. bash_profile; if SH is used, the script file name is. Profile. In bash, for example, enter the following in the script file. Bash_profile:
#ORACLE_HOME指定Oracle的安装目录
Oracle_home=/u0/oracle; Export Oracle_home
#LD_LIBRARY_PATH指定Oracle的共享库目录
Ld_library_path= $ORACLE _home/lib;export Ld_library_path
oracle_base= $ORACLE _home; Export Oracle_base
#ORACLE_SID指定Oracle数据库实例名, ORACLE recommends less than or equal to 4 characters
Oracle_sid=bros;export Oracle_sid
#ORACLE_TERM terminal type for ORACLE users
Oracle_term=ansi; Export Oracle_term
Path= $PATH: $ORACLE _home/bin; Export PATH
#TMPDIR指定临时目录, Oracle requires at least 20M of space
Tmpdir=/var/tmp;export Tmpdir
Umask 022
After exiting, log on to the Oracle user and test the environment variables to meet the requirements.
Second, install Oracle
Oracle installation can take the form of a CD-ROM or a specified installation path.
For installation with an Oracle for Linux CD, you should execute the following command:
Mount-t iso9660/dev/cdrom/home/oracle
Install the disc media. Under normal circumstances, CDROM should be installed in the/mnt/cdrom directory.
For the specified original installation path, the compressed file 805ship.tgz should be uncompressed to a temporary directory, such as/home/oracle, using the command:
Gunzip-c 805ship.tgz| Tar xvf-
Suppose you use the specified original installation path/home/oracle to execute in this directory:
CD Orainst
SH oratab.sh
The primary purpose of the oratab.sh command is to create a/etc/oratab.
Since Redhat 6.0 uses GLIBC 2.0, installing Oracle 8.0.5 in Redhat 6.0 environment requires patching. The method is to uninstall the/pub/www/otn/linux/glibcpatch.tgz file at the ftp.Oracle.com site and revise the execution procedures under the $oracle_home/bin directory after completing the Oracle basic system installation.
Once you have done this, you can begin the installation of the Oracle Basic system.
1, into the/home/oracle directory;
2. Implementation of/ORAINST/C;
3, choose Custom Installation.
Follow the prompts to make the following selections:
Install,upgrade or De-instal Software
Install new product-do notcreat DB Objects. This step is important because the execution program in the installation package is incompatible with blibc2.0, so you cannot start the Oracle engine to create database objects before patching.
Following the above steps to entertain the exit, the system should prompt:
Result:success
4, the Oracle execution procedure carries on the GLIBC revision. The steps are as follows:
* Establishment of $oracle_home/orapatch catalogue;
* Copy the glibcpatch.tgz to the main directory;
* Implementation of TAR-XVZF glibcpatch.tgz;
* Perform sh glibcpatch.sh.
To rerun the Oracle installer after the patch installation is complete, follow these steps:
* CD Orainst;
* Implementation of ORAINST/C;
* For custom installation.
Follow the prompts to make the following selections:
Create/upgrade Database Objects
Create Database objicts
Oracle 8 Standard RDBMS 8.0.5.0.0
Create Product DB objicts
Filisystem-bases Database
Until Tip: rusult:success
5, after the implementation of the installation process
* Login with Oracle user;
* Execute su-p root and enter the root user password;
* CD Orainst;
* Perform sh root.sh;
* Edit Modify/etc/oratab file.
Locate the oracle-sid indicating line, such as:
$BROS:/u0/oracle:n
Modified to:
$BROS:/u0/oracle:y
To allow the Oracle server to start itself.
* Modify TNS-related file permissions:
Chown ORACLE.DBA $ORACLE _home/bin/tnslsnr
chmod 750 $ORACLE _home/bin/tnslsnr
Chown ORACLE.DBA $ORACE _home/network/log
chmod 775 $ORACLE _home/network/log
Chown ROOT.DBA $ORACLE _home/network/log/listener.log
chmod 664 $ORACLE _home/network/log/listener.log
At this point, the installation is basically complete.
<