Oracle 8.1.7 for RedHat Linux 7.2 installation process

Source: Internet
Author: User
Tags copy dba modify linux

Oracle 8.1.7 for RedHat Linux 7.2 installation process

1). Confirm that you have installed the following compatibility packs:
RPM–IVH compat-libstdc++-6.2-2.9.0.16
RPM–IVH compat-glibc-6.2-2.1.3.2
RPM–IVH compat-egcs-c++-6.2-1.1.2.16
RPM–IVH compat-libs-6.2-3
RPM–IVH compat-egcs-6.2-1.1.2.16
RPM–IVH compat-egcs-objc-6.2-1.1.2.16

2). Install BINUTILS-2.10.91.0.2.I386.RPM Package
RPM-UVH--force--nodeps binutils-2.10.91.0.2-3.i386.rpm

3. Install Jdk1.1.8_v3 to/usr/local, this needless to say (not necessarily)
BUNZIP2 jdk118_v3.tar.bz2
TAR-XVF Jdk118_v3.tar
Ln-s jdk118_v3 Java

4. Get the patch package------Oracle Glibc-2.1.3-stubs.tar.gz
Oracle's ENV_CTX.MK ( http://211.100.12.66/o8i/env_ctx.mk)

5. Prepare the user environment (root).
Groupadd dba
Useradd Oracle-g dba
passwd Oracle
. Bash_profile Content:
Oracle_base=/home/oracle; Export Oracle_base
Oracle_home=/home/oracle; Export Oracle_home
ORACLE_SID=ORCL; Export Oracle_sid
Ora_nls33=/home/oracle/ocommon/nls/admin/data; Export ORA_NLS33
Nls_lang=american_america.zhs16cgb231280;export Nls_lang
Ld_library_path=/home/oracle/lib; Export Ld_library_path
classpath=.:/ Home/oracle/jdbc/lib/classes111.zip;export CLASSPATH
Path= $PATH: $ORACLE _home/bin: $ORACLE _home/dbs:/etc; Export PATH
./oracle/envlinux.sh
Export ld_assume_kernel=2.2.5
Export LDEMULATION=ELF_I386_GLIBC21
Export gcc_exec_prefix=/usr/i386-glibc21-linux/lib/gcc-lib/
6). Temporary Change glibc
Copy the/usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh to/usr/oracle and rename it envlinux.sh. (Note: In the absence of a complex system, I failed to successfully run the i386-glibc21-linux-env.sh)
And in. Bash_profile Add:
./oracle/envlinux.sh
Export ld_assume_kernel=2.2.5
Execute. Bash_profile to see if it has been replaced:
./home/oracle/.bash_profile
Gcc–v
Before the replacement is: Reading specs from/usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
GCC version 2.96 20000731 (Red Hat Linux7.1.2.96.81)
After the replacement is: Reading specs from
/usr/i386-glibc21-linux/lib/gcc-lib/i386-redhat-linux/2.96/specs
GCC driver version 2.96 20000731 (Red Gat Linux 7.1 2.96-81) executing
GCC version egcs-2.91.66
No more, just reboot the machine.

7). Modify kernel parameters (root user):
echo 134217728 >/proc/sys/kernel/shmmax
Echo–e "32000 128" >/proc/sys/kernel/sem
or edit/etc/services (also available after Oracle is installed)
Set shmsys:shminfo_shmmax=4294967295
Set Shmsys:shminfo_shmmin=1
Set shmsys:shminfo_shmmni=100
Set shmsys:shminfo_shmseg=10
Set semsys:seminfo_semmni=100
Set semsys:seminfo_semmsl=100
Set semsys:seminfo_semmns=200
Set semsys:seminfo_semopm=100
Set semsys:seminfo_semvmx=32767
After editing, save and restart the system.
Otherwise, there will be an error starting the database.
8). Installation
Follow the prompts to install it step-by-step.
9). An error message appears:
Error in invoking target install of makefile
/home/oracle/ctx/lib/ins_ctx.mk
........
This is the fault of ENV_CTX.MK, new open a konsole window, the download of env_ctx.mk copy to $oracle_home/ctx/lib/directory, and then retry
). root.sh Error:
When prompted to run root.sh, modify the/home/oracle/root.sh before running.
Notice that there are two errors in the root.sh:
Rmf=/bin/rm-f
Amended to
rmf= "/bin/rm-f"
Ruid= '/usr/bin/id| $AWK-f (' {print $} ' | $AWK –f\) ' {print $} '
Amended to
Ruid= '/usr/bin/id| $AWK-f\ (' {print $} ' | $AWK-f\) ' {print $} '
When you are done, click OK.
11 Do not rush to click Next, open a new Konsole port, the download of the Oracle patch package
Glibc-2.1.3-stubs.tar.gz, under the $oracle_home.
Tar-xvzf/tmp/glibc-2.1.3-stubs.tar.gz
Then run,./setup_stubs.sh (Perhaps this name), about 5 minutes later, everything OK. Return to the installation screen, selection perform typical configuration, next.
12. Then the system creates the database, and the database installation completes.




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.