Oracle8i installation manual under Redhat7.2

Source: Internet
Author: User
Tags oracle database installation
Oracle8i installation manual

Oracle 8i installation manual

Oracle 8i installation manual under Redhat 7.2


Oracle 9i is too large, and I have enough trouble with my hard drive all day, so I miss Oracle 8i. After reading some posts on the internet, I successfully installed Oracle in Redhat 7.2
8.1.7 for Linux. The following is a detailed process.


1. hardware environment: P4 1.4G, 640 M Ram, 40G, Gforce II


2. Disk Partition: 9G primary partition (ext3), 1G Swap Partition


3. software environment: Redhat 7.2 fully installed


4. preparations:


1) confirm that you have installed the following compatible packages:

Compat-libstdc ++-6.2-2.9.0.16

Compat-glibc-6.2-2.1.3.2

Compat-egcs-c ++-6.2-1.1.2.16

Compat-libs-6.2-3

Compat-egcs-6.2-1.1.2.16

Compat-egcs-objc-6.2-1.1.2.16

If you fully install Redhat 7.2, the above packages have been installed. If not, please install it on the Redhat 7.2 CD.


2 ). install binutils-2.10.91.0.2-3, haha, it is this annoying thing, but this time is used in the Redhat 7.1 disk, must install, don't forget, because it is related to the ld later, if you do not install ld, the following error occurs:
Unrecognized emulation mode: elf_i1__glibc21.

Rpm-Uvh -- force -- nodeps binutils-2.10.91.0.2-3.i386.rpm

Of course, if you are happy to restore 7.2 after installation.


3) install Jdk1.1.8 _ v3 to/usr/local.

Bunzip2 jdk118_v3.tar.bz2

Tar-xvf jdk118_v3.tar

Ln-s jdk118_v3 java


42.16.small patch package-two oracles' glibc-2.1.3-stubs.tar.gz, and one of them is the most critical. All Oracle databases installed on Redhat 7.x
8.1.7's friends are annoyed by 97% Linking Error. This package is responsible for this Bug. It is actually a file-env_ctx.mk. how to use it? Don't worry. I will tell you later.


5) Prepare the user environment.

Groupadd dba

Groupadd oinstall

Useradd oracle-g oinstall-G dba

Passwd oracle

Enter the password of the new user.


Create an installation directory (taking u01 as an example)

Mkdir/u01

Chown ora. dba/u01

Chmod 777/u01


Log out of the system to log on to the new Oracle user.

Edit. bash_profile in the/home/oracle directory and add the following content:


./Usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh

Export LD_ASSUME_KERNEL = 2.2.5


Export LDEMULATION = elf_i1__glibc21


Export GCC_EXEC_PREFIX =/usr/i386-glibc21-linux/lib/gcc-lib/


Export ORACLE_BASE =/u01/app/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/8.1.7

Export PATH = $ PATH: $ ORACLE_HOME/bin

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

Export ORACLE_SID = Test

Export ORACLE_TERM = vt100

Export ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data


Umask 022


You are advised to restart the disk to prevent unexpected reasons.


5. Install Oracle 8.1.7

Start the installer,

/Mnt/cdrom/runinstaller (if you install it from a CD)

The following installation screen is displayed:




Click Next to continue



Select the installation path and click Next. Next, you will be asked to add the installation group name-oinstall, and then run orainstRoot as the root user. sh, but I didn't see it here. I have installed it and uninstalled it. This step is skipped.


Select "Install product" and select "first". The following figure is displayed in the next step:



Select the installation type. Select a typical installation type. Next, select jdk home.



Next, enter the database SID. Here is Test,



Next, the installation progress is displayed in the next step, and the installation starts.



You can take a break and come back in 15 minutes. At this time, you should see the following: Error !!!!



This is the fault of env_ctx.mk. Open a new konsole window, copy the downloaded env_ctx.mk to the $ ORACLE_HOME/ctx/lib/directory, and Retry.



The installation can be completed successfully. In this case, run Root. sh as root.



Note: There are two errors in Root. sh:


RMF =/bin/rm-f

Change

RMF = "/bin/rm-f"

RUID = '/usr/bin/id | $ AWK-F (' {print $2} '| $ AWK-F)' {print $1 }'

Change

RUID = '/usr/bin/id | $ AWK-F (' {print $2} '| $ AWK-F)' {print $1 }''

Or download the template root. sh.


Click OK. The net8 Configuration window appears:



Click the next step to open a new konsoleport and download the downloaded oraclepatch package glibc-2.1.3-stubs.tar.gz under $ ORACLE_HOME.


Tar-xvzf/tmp/glibc-2.1.3-stubs.tar.gz


Then run./setup_stubs.sh (maybe this name). After about five minutes, everything is OK. Return to the installation screen, and select the Perform typical configuration. Next,



When creating a database



The database has been created.



The Oracle database installation process is complete.


Open the konsole window and run sqlplus system/manager @ test. You can connect to the database. When you run oemapp dbastudio, the following Oracle
DBA Studio. Everything is OK!

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.