1. Download the four installation files of Redhat Enterprise Linux Advanced Server3 from the Internet. The SWAP partition is set to twice the memory. Do not use DHCP to set up host names and IP addresses, but "Handmade Settings". Otherwise, the following error occurs when you install Oracle:
[quote: 864939f94a] thrown when the ip address of a host cannot be determined [/ quote: 864939f94a]
This error will make Oracle can't be installed successfully. Install RHAS3, you can burn to the disc installation, you can also install it from the hard disk, install Rhas3 from the hard disk, please refer to: [url] http://bbs.chinaUnix.net/forum/Viewtopic.php?p=2416942# 2416942 [/ url ]
2, system requirements: The lowest memory is 256 (I am so big), suggest 512M, hard disk space 4G, if the Oracle installation file has a hard disk, it is recommended to 5G (remaining space after installing the operating system).
You can see the size of the memory, the command used is: grep memtotal / proc / memoryfo
When the SWAP partition is installed when the operating system is installed, it is 2 times the memory. When the memory reaches 1G, it is the same as the memory size. Shouting the exchange partition command is: / sbin / swapon -s
3. Check if you install the following packages:
[quote: 864939f94a] #SU - root
#rpm -qa | GREP COMPAT
Compat-DB-4.0.14-5.i386
Compat-GCC-7.3-2.96.122.i386
CoMPAT-GCC-C - 7.3-2.96.122.i386
Compat-libstdc - 7.3-2.96.122.i386
Compat-libstdc - DEVEL-7.3-2.96.122.i386
#RPM -QA | GREP OpenMotiF21
OpenMotiF21-2.1.30-8.i386
#rpm -qa | Grep setarch
Setarch-1.3-1.i386
#rpm -qa | GREP TCL
TCL-8.3.5-92.i386
[/ quote: 864939f94a]
The content shown above is the result after the author has installed the specific RPM package. Their corresponding packages are: [quote: 864939f94a]
Compat-DB-4.0.14-5.i386.rpm
Compat-GCC-7.3-2.96.122.i386.rpm
COMPAT-GCC-C - 7.3-2.96.122.i386.rpm
Compat-libstdc - 7.3-2.96.122.i386.rpm
Compat-libstdc - devel-7.3-2.96.122.i386.rpm
OpenMotiF21-2.1.30-8.i386.rpm
Setarch-1.3-1.i386.rpm
TCL-8.3.5-92.i386.rpm
[/ quote: 864939f94a]
Under normal circumstances, the output results on your system are different. If the individual package is not installed, install the CD Mount, find the specific package (mostly on the third disc), then use the following command to install the corresponding package:
# Rpm -ivh compat ..... rpm
Because I didn't burn Rhas3 to the CD, I use the following command to mount the ISO file.
[quote: 864939f94a] mount -o loop / mnt/e/rhas3/rhel-3-i386-as-disc3.iso / mnt / cdrom [/ quote: 864939f94a] To pay extra, these packages are there Dependent, the order in the order is going to find. Otherwise the error will not be installed. When installing the package, if the software package is dependent, there is a dependent package. I believe that everyone will understand the dependence between the package.
Also need to replace the GCC, G version of 2.96.
Methods as below:
[quote: 864939f94a] #SU - root
MV / USR / BIN / GCC / USR / BIN / GCC323
LN -S / USR / BIN / GCC296 / USR / BIN / GCC
MV / USR / BIN / G / USR / BIN / G 323 # IF G Doesn't Exist, Then GCC-C WAS Not Installed (here is comments)
LN -S / USR / BIN / G 296 / usr / bin / g
[/ quote: 864939f94a]
3, set the kernel parameters:
This version of the default GLIBC is very suitable, eliminating a lot of trouble.
View the total amount of memory with GREP MEMTATAL / PROC / MEPMINFO
Memtotal xxxxxkb appears, where xxxxx is the total memory.
Modify two files as follows:
[quote: 864939f94a]
#vi /etc/sysctl.conf
Join:
Kernel.shmmax = xxxxx * 1024 * 2 (twice as the memory, switch to byte. If this value is exceeded, ORA-27123 occurs when running DBCA: Unable to attach to shared memeroy segment)
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.sem = 250 32000 100 128
fs.file-max = 65536
Net.IPv4.ip_local_port_range = 1024 65000
#vi /etc/security/limits.conf
Join:
Oracle Hard Nofile 65536
Oracle Soft Nofile 65536
Oracle Hard Nproc 16384
Oracle Soft Nproc 16384
[/ quote: 864939f94a]
4, establish a user, set the environment variable
The creation of the user is running with root users.
[quote: 864939f94a] #groupadd oinstall
#groupadd dba
# useradd -g oinstall -g dba oracle
#passwd oracle
[/ quote: 864939f94a]
Set environment variables:
Log in with Oracle users,
[quote: 864939f94a] VI $ homen / .bash_profile
Insert the following
# Set the ld_assume_kernel environment variable only for red hat 9 and
# For red hat Enterprise Linux Advanced Server 3 (rhel as 3) !!
# Use the "linuxthreads with floating stacks" IMPLEMENTATION INSTEAD OF NPTL:
Export LD_Assume_kernel = 2.4.1 # Oracle Environment
Export oracle_base = / home / oracle
Export Oracle_Home = $ Oracle_Base / Product / 9.2.0
Export Oracle_sid = TEST
Export Oracle_Term = xterm
# Export tns_admin = set if sqlnet.ora, tnsnames.ora, etc. Are Not in $ Oracle_Home / Network / Admin
Export NLS_LANG = American;
Export ORA_NLS33 = $ Oracle_Home / Ocommon / NLS / Admin / Data
LD_LIBRARY_PATH = $ ORACLE_HOME / LIB: / LIB: / USR / LIB
LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: / USR / local / LIB
Export ld_library_path
# Set shell search paths
Export path = $ PATH: $ oracle_home / bin
[/ quote: 864939f94a]
Then log out of the registration, use set | more to see if the environment variable takes effect. Because I installed Oracle in the Oracle user's home directory, so my Oracle_base value is / home / oracle, of course, you can also install the specified directory, as follows:
[quote: 864939f94a] #SU - root
#mkdir / opt / oracle
#mkdir / opt / oracle / product
#mkdir /opt/oracle/Product/9.2.0
#chown -r oracle.oinstall / OPT / ORACLE
#mkdir / var / opt / oracle
#Chown Oracle.dba / Var / Opt / Oracle
#CHMOD 755 / VAR / OPT / ORACLE
[/ quote: 864939f94a]
At this time, the value of Oracle_Base is / OPT / ORACLE.
5, start installation
Download three installation files from [URL] http://www.oracle.com [/ url],
SHIP_9204_LINUX_DISK1.CPIO.GZ
SHIP_9204_LINUX_DISK2.CPIO.GZ
SHIP_9204_LINUX_DISK3.CPIO.GZ
Use zcat ship_9204_linux_disk1.cpio.gz | cpio -idmv
Zcat Ship_9204_linux_disk2.cpio.gz | CPI -IDMV
Zcat Ship_9204_linux_disk3.cpio.gz | CPI -IDMV
Generate three folders Disk1, Disk2, Disk3;
You can also use gunzip ship_9204_linux_disk1.cpio.gz
CPIO -IDMV Such a command can generate three directories that can be burned to the disc with the following command, or save it on the hard disk. [quote: 864939f94a] Mkisofs -r disk1 | cdrecord -v --eject dev = 0,0,0 speted = 15 - Mkisofs -r disk2 | cdrecord -v --eject dev = 0,0,0 speted = 15 - Mkisofs -r disk3 | cdrecord -v --eject dev = 0, 0, 0 speed = 15 - [/ quote: 864939f94a] Before entering the disk1 directory, pay attention to two points: A, export lang = en_us (otherwise "□" appears in the installation interface, because Oracle9i does not support the Chinese interface.) B. Install the P3006854_9204_linux.zip patch, otherwise the following error will occur: [quote: 864939f94a] Error Occurred During Initialization OF VM Unable to load native library: /tmp/orainstall2003-10-25_03-14-57pm/jre/lib/i386/libjava.so: Symbol __libc_wait, version glibc_2.0 not defined in file libc.so.6 with link time reference [/ quote: 864939f94a] Download P3006854_9204_linux.zip patch from [URL] http://metalink.oracle.com [/ url]. Method for installing this patch: [quote: 864939f94a] Su - root # Unzip p3006854_9204_linux.zip Archive: p3006854_9204_linux.zip Creating: 3006854 / INFL OFLATING: 3006854 / RHEL3_PRE_INSTALL.SH Inflating: 3006854 / readme.txt # CD 3006854 # Sh rhel3_pre_install.sh Applying Patch ... Patch SuccessFully Applied # Note: If you run rhel3_pre_install.sh, the following error occurs. RHEL3_PRE_INSTALL.SH: line 36: GCC: Command NOT FOUND Because you forgot to install GCC, if you have the following error: # Ls Ls: Error While Loading Shared Libraries: /etc/libcwait.so: Cannot Open Shared Object File: No Such File or Directory # Rm /etc/ld.so.preload RM: Error While Loading Shared Libraries: /etc/libcwait.so: Cannot Open Shared Object File: No Such File or Directory # Please do not quit Bash, fix it with the following method (I started to meet, I haven't encountered it, maybe because I died of GCC to 296) # Echo "> /etc/ld.so.preeload Rm /etc/ld.so.preload And Start over again. [/ quote: 864939f94a] Run now ./RunInstaller & (must enter the disk1 directory, or run from the disc, do not enter / mnt / cdrom running RunInstaller after installing / mnt / cdrom, but run ./mNT/cDrom/runstaller Oh, happy, I look forward to a long-lasting GUI interface finally came out. This is a welcome interface. The directory where the Oracle installation source file is displayed, and the product catalog to be installed. We click "Next"; The next interface appearing is the Inventory path, we click "Next"; Now require the user to enter the UNIX group name, we use the group "OInstall" where Oracle users, then click "Next", if you are installing Oracle products, you want you to run a SH file. The file is /tmp/orainstroot.sh, we open a shell window, switch to the root user, as follows: [quote: 864939f94a] su root SH / TMP/Orhatstroot.sh [/ quote: 864939f94a] After running, go back to the Oracle installation interface, click "Continue"; Select the directory where the file is stored, we select the default. Then "Next"; The installed product is "Oracle9i Database 9.2.0.4.0", click "Next"; Selecting the installation type is "universal", the default option. Point "Next"; Enter the global database name, then "Next"; The storage location of the data file, I use the default location, click "Next"; The selection result of the installation component appears. At this time, "install", start installing, copying the file, the progress bar increases at a point, when the installation and Link are finished, the configuration tool interface, the Agent service cannot be configured, ignored Tube, in the following. DBCA, NETCA, HTTP are correctly configured. Ha ha. The following starts a repair error. In fact, if you grasp all interfaces, it is better. 6, install P3238244_9204_linux.zip patch This patch is also downloaded from [URL] http://metalink.racle.com [/ url] to download an OPATCH package: P2617419_220_Generic.zip, it is mainly used for an Agent service that cannot be started. The process is as follows: [Quote: 864939f94a] Su - Oracle $ CP P2617419_210_Generic.zip / TMP $ CD / TMP $ Unzip p2617419_210_generic.zip $ Export path = $ PATH: / TMP / OPATCH $ Export path = $ path: / sbin # The patch Needs "fuse" Which is located in / sbin $ Unzip p3238244_9204_linux.zip $ Cd 3238244 $ OPATCH APPLY [/ quote: 864939f94a] Patch repair completion, need relinked one .mk file. $ Cd $ oracle_home / network / lib $ Make -f INS_OEMAGENT.MK INSTALL Now running the agentctl start, see if you can successfully run the Agent service, you can use STOP, Status to stop this service or check the status of the service. After this success, I can't start Oracle. I can't find initialization files. I have no way. I use DBCA to first delete the library established when I originally installed, and then re-establish the database. 7. Run DBCA to create a database. Oh, all the way, complete the installation of the database. I hope you can also install it. [B: 864939F94A] Postscript: I want to install Oracle all versions, ideas and steps on all versions of Linux, but pay more attention to those slight differences, maybe these tiny differences will make you can't succeed. installation. It is recommended that you go to the Oracle's network to see, more online find some information to compare learning. I think you will be successful. I wish friends who love Oracle and Linux can succeed. [/ b: 864939f94a]