Install Oracle8.1.6 in RedHat7.0

Source: Internet
Author: User
Authorization: technet.oracle.comsoftwareproductsoracle8isoftware_index.htm glibc2.1

Install Oracle 8I release 2 Enterprise Edition database server under RedHat 7.0
2. Software preparation before installation
Two RedHat7.0 installation discs
Oracle816316tar.gz:
Http://technet.oracle.com/software/products/oracle8i/software_index.htm
Glibc2.1 (gnu c Library ):
Http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/i386-glibc-2.1-linux.tar.gz
3. My machine: PIII733 with 128 m ram. Oracle recommends a minimum of 256 MB of memory, preferably MB or more.
4. Start Installation
A. Hard Disk partitioning
1. Oralcel recommends that the SWAP partition be MB or twice the physical memory of the system currently in use. Of course, the larger the partition, the better.
2. When partitioning, define two installation points:/u01 (used to install ORALCE software) and/u02 (used to store database data) and/u01 partition size,
Typical installation: 750 MB
Minimum installation 650 MB
Custom installation 1000 MB
These two installation points can be defined during installation or created in the "/" directory or another directory after system installation is completed
B. installation is required: (select full installation when installing RedHat7.0)
1. X Windows
2. Development packages (c, gcc, etc)
C.decompress oracle81620.tar.gz, log on with the root account, and execute:
[Root @ rh70/root] cd/usr/src
[Root @ rh70 src] tar zxvf oracle8161_tar.gz
Generate an Oralce8iR2 directory under the/usr/src/directory, containing the files after unpacking
D. Install glibc 2.1 package
Glibc2.2 is installed in RedHat7.0. Oracle 8I cannot be compiled using glibc 2.2, but the glibc 2.1 SDK is required.
[Root @ rh70/root] cd/
[Root @ FIG/] tar zxvf/usr/src/i386-glibc-2.1-linux.tar.gz
Hide gcc, cc, and ld in the/usr/bin directory to avoid being used by Oracle installer.
[Root @ rh70/] cd/usr/bin
[Root @ rh70 bin] mkdir saved
[Root @ rh70 bin] mv gcc cc ld saved
[Root @ rh70 bin] ln-s/usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc
[Root @ rh70 bin] ln-s gcc cc
[Root @ rh70 bin] ln-s/usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld
Hide the libc. so, libdl. so, libm. so and libpthread. so files in the/usr/lib directory to avoid being used by Oracle installer.
[Root @ rh70 bin] cd ../lib
[Root @ rh70 lib] mkdir saved
[Root @ rh70 lib] mv libc. so libdl. so libm. so libpthread. so saved
[Root @ rh70 lib] mv libc. a libdl. a libm. a libpthread. a saved
E. Create an oracle account and group
Log On with the root account, open a terminal window, and create the oinstall and dba groups.
[Root @ rh70/root] groupadd oinstall
[Root @ rh70/root] groupadd dba
Create an oracle account. Use oinstall as the primary group and dba as the secondary group.
[Root @ rh70/root] useradd oracle-g oinstall-G dba
[Root @ rh70/root] passwd oracle (set the password of the oralce account)
F. Create an Oracle software installation directory
[Root @ rh70/root] mkdir/u01/app/oracle/product/8.1.6
Modify the group and owner of the Created directory
[Root @ rh70/root] chown oracle: dba/u01/app/oracle/product/8.1.6
[Root @ rh70/root] chown oracle: dba/u02
G. Set the oracle user environment
Use an oracle account to log on and open the terminal window
Use the umask command to check whether umask is 022. If it is not 022, add umask 022 to the/home/oracle/. bash_profile file.
[Oracle @ rh70 oracle] umask
Open/home/oracle/. bash_profile in the text editor and add the following setting line for environment variables:
# ORA_NLS =/u01/app/oracle/product/8.1.6/ocommon/nls/admin/data
# Export ORA_NLS
# NLS_LANG = "simplified chinese"
# Export NLS_LANG
ORACLE_BASE =/u01/app/oracle
Export ORACLE_BASE
ORACLE_HOME =/u01/app/oracle/product/8.1.6
Export ORACL_HOME
ORACLE_SID = ora1 (custom, preferably up to four characters)
Export ORACLE_SID
CLASSPATH =/u01/app/oracle/product/8.1.6/jdbc/lib/calsses111.zip
Export CLASSPATH
LD_LIBRARY_PATH =/u01/app/oracle/product/8.1.6/lib
Export LD_LIBRARY_PATH
USERNAME = "oracle"
PATH = $ PATH: $ ORACLE_HOME/bin: $ ORACLE_HOME/dbs
PATH = $ PATH:/bin:/usr/sbin:/usr/local/bin:/usr/bin/X11: /usr/X11R6/bin
Log out, Log on to the oracle account again, open the terminal window, and enter the env command to view the environment variables you just set.
[Oracle @ rh70 oracle] env
H. Install Oracle 8i database software
1. log on with an oracle account, go to Xwindows, and open the terminal window
2. [oracle @ rh70 oracle] cd/usr/src/Oracle8iR2
3. [oracle @ rh70 Oralcle8iR2]./runInstaller
4. Check that the Source Path is:
/Usr/src/Oracle8iR2/stage/products. jar,
Destination Path is the Path set for the $ ORACLE_HOME environment variable. click Next.
5. In the Unix Group Name window, type "oinstall" and click Next;
6. A window will pop up, requiring/usr/app/oracle/product/8.1.6/orainstRoot. sh to run as root.
Open a new terminal window
[Oracle @ rh70 Oralcle8iR2] su root (enter the root password)
[Oracle @ rh70 Oralcle8iR2] cd $ ORACLE_HOME
[Oracle @ rh70 8.1.6] sh orainstRoot. sh
Return to the pop-up window and click Retry.
7. In the "Available products" window that appears, select "Oracle8I enterprise edition8.1.6.1.0" and click Next.
8. select Typical on the next screen.
9. The system prompts you to enter the global database name. The entered database name can contain a complete domain name, such as oradb.xxx.com,
The database name cannot exceed 8 characters
10. Verify that ORACLE_SID is correct. click Next.
11. Enter db files localtion, and enter the defined/u02.
12. Click Install in the summary window.
13. After the file is copied and connected, a window asking to run root. sh is displayed.
14. Return the terminal window opened with the root account.
[Oracle @ rh70 8.1.6] cd $ ORACLE_HOME
[Oracle @ rh70 8.1.6] sh root. sh
Press Enten when querying local bin directory.
[Oracle @ rh70 8.1.6] exit root permission
[Oracle @ rh70 8.1.6] exit End terminal window
15. Return to the window requesting to run root. sh and click OK.
16. Start Oracle Net8 Configuration and Oracle Database Configuration Assistants, install Net8 and create a Database.
17. After the completion of Oracle Database Configuration Assistants, click OK in the pop-up "complete Database creation" window.
18. On the End of Installation screen, click Exit
Now all Oralce 8i Enterprise has been installed!
You can use the Oracle database management tools svrmgrl and SQL * plus to test the installed database.

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.