Oracle Installation in RedHat7.0

Source: Internet
Author: User
Tags intel pentium
Welcome to the Oracle community forum and interact with 2 million technical staff. Many articles have said that glibc in Redhat7.0 is faulty and cannot be installed in Oracle. Later, I heard that I could change the version of glibc, so I wanted to install and use it. Some people say that to install Oracle, at least MB of memory is required, and the shared memory size needs to be modified to re-compile the kernel.

Welcome to the Oracle community forum, and interact with 2 million technical staff> many articles have said that glibc in Redhat7.0 is faulty and cannot be installed in Oracle. Later, I heard that I could change the version of glibc, so I wanted to install and use it. Some people say that to install Oracle, at least MB of memory is required, and the shared memory size needs to be modified to re-compile the kernel.

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

Many articles have said that there is a problem with glibc in Redhat7.0 and Oracle cannot be installed. Later, I heard that I could change the version of glibc, so I wanted to install and use it. Some people say that to install Oracle, at least MB of memory is required, the shared memory size must be modified, the kernel should be re-compiled, and four mount points should be created, it is also installed (or it can only be used for learning and cannot do anything big ). The following steps faithfully record the entire installation process.

1. machine configuration

CPU: Intel Pentium III 668203 khz
Memory: 128 MB
Operating System: Redhat7.0 (fully installed)
SWAP area: 256 M
Install shell: bash

2. install required software

Oracle816316tar.gz (275 M, large file, prepared for download before psychological, I spent the first whole day but it was a bad one, not open, almost angry! I had to download it again. I 'd better buy a pirated CD ). Download URL:
Ftp: // 166.111.136.3/pub/DataBasehttp: // oracle.chinaitlab.com/oracle8161.tar.gz (Tsinghua jiujing)
Http://technet.oracle.com/software/products/oracle8i/software/index.htm

Glibc2.1 (gnu c Library, 18 M ):
Linux.tar.gz "> ftp://ftp.kernel.org/pub/software/libs/glibc/hjl/sdk/2.1/i386-glibc-2.1-linux.tar.gz
Downloaded files are stored in the/backup directory.

3. Install glibc 2.1 package

Glibc2.2 is installed in RedHat7.0. Oracle 8I cannot be compiled using glibc 2.2, but glibc2.1 SDK is required.
Log on with a root account
[Root @ only_you/root] cd/
[Root @ only_you/] tar zxvf/backups/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 @ only_you/] cd/usr/bin
[Root @ only_you bin] mkdir saved
[Root @ only_you bin] mv gcc cc ld saved
[Root @ only_you bin] ln-s/usr/i386-glibc-2.1-linux/bin/ i386-glibc21-linux-gcc gcc
[Root @ only_you bin] ln-s gcc cc
[Root @ only_you 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 @ only_you bin] cd ../lib
[Root @ only_you lib] mkdir saved
[Root @ only_you lib] mv libc. so libdl. so libm. so libpthread. so saved
[Root @ only_you lib] mv libc. a libdl. a libm. a libpthread. a saved

4. Create an oracle account

Log On with the root account, open a terminal window, and create an oracle account
[Root @ only_you/root] useradd oracle
[Root @ only_you/root] passwd oracle (set the password of the oralce account)
The/home/oracle directory is automatically created. The owner is oracle. My Oracle is ready to be installed in this directory. In the installation document, create a dba group.

5.decompress oracle81620.tar.gz

Log On with the root account and run:
[Root @ only_you/root] cd/backup
[Root @ only_you/backup] tar zxvf oracle8161_tar.gz
Generate the Oralce8iR2 directory under the/backup/directory, containing the files after unpacking

6. Set the oracle user environment

Log on to the oracle account, open the terminal window, and use the text editor to open/home/oracle/. bash_profile and add the following setting line for environment variables:
ORACLE_HOME =/home/oracle; export ORACLE_HOME
LD_LIBRARY_PATH =/home/oracle/lib; export LD_LIBRARY_PATH
ORACLE_BASE =/home/oracle; export ORACLE_BASE
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
# Zhs16cgb231280 is a simplified Chinese code. It is also the character set of the database. American_america is a region code with little relationship.
Log out, Log on to the oracle account again, and enter the env command to view the environment variables you just set.
[Oracle @ only_you oracle] env

7. Create an oracle data file directory

I want to put the data file under the/home/oracle/data directory, so
[Oracle @ only_you oracle] mkdir data

8. Install Oracle 8i database software

(1) log on with an oracle account, go to Xwindows, and open the terminal window

(2) [oracle @ only_you oracle] cd/backup/Oracle8iR2

(3) [oracle @ only_you Oralcle8iR2]./runInstaller

(4) error. The displayed information is

Xlib: connection to: 0.0 refused by server
Xlib: Client is not authorized to connect to server
The xhost is not configured.

(5) set xhost

Open a new terminal window
[Oracle @ only_you oracle] su-(enter the root password)
[Root @ only_you/root] xhost +
Keep this window

(6) Continue the installation in the oracle user window

[Oracle @ only_you Oralcle8iR2]./runInstaller
On the JAVA-based Oracle installer interface, click Next.

(7) On the File Locations page, check whether the Destination Path is/home/oracle and click Next.

(8) In the Unix Group Name window, type "oracle" and click Next;

(9) A window will pop up, requiring/home/oracle/orainstRoot. sh to be run as root

(10) switch to the reserved root user window.

[Root @ only_you/root] cd/home/oracle
[Root @ only_you oracle]./orainstRoot. sh

(11) return to the pop-up window and click Retry.

(12) In the "Available products" window that appears, select "Oracle8I enterprise edition8.1.6.1.0" and click Next.

(13) select Typical on the Next screen and click Next

(14) On the Privileged Operating System Groups page, click Next

(15) The system prompts you to enter the global database name and write whatever you like. I wrote a wap, verified that ORACLE_SID is ORCL, and clicked Next.

(16) Enter db files localtion,/home/oracle/data, and click Next.

(17) In the final Summary window, click Install

(18) the installation is now officially started

In my article, this is a long process and requires at least 1 ~ 2 hours. To stay awake, I made a cup of coffee and started surfing the Internet. I did not expect it to be completed in less than 20 minutes.

(19) after the file is copied and connected, a window asking to run root. sh is displayed.

Switch to the root user window,
[Root @ only_you oracle]./root. sh
Press Enter when you ask about local bin directory.

(20) return to the window requesting to run root. sh and click OK.

(21) Start Oracle Net8 Configuration and Oracle Database Configuration Assistants, install Net8 and create a Database. This step took about 20 minutes.

(22) after the completion of Oracle Database Configuration Assistants, click OK in the pop-up window for completing Database creation

(23) On the End of Installation screen, click Exit. In the pop-up Do you reallywant to exit? Click yes in the window

Now all Oralce 8i Enterprise has been installed! Then you can use the Oracle database management tools svrmgrl and SQL * plus to test the installed database!

9. Test

[Oracle @ only_you oracle] svrmgrl
Oracle Server Manager Release 3.1.6.0.0-Production
Copyright (c) 1997,199 9, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.6.1.0-Production
With the Partitioning option
JServer Release 8.1.6.0.0-Production
SVRMGR> connect internal
Connected.
SVRMGR> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SVRMGR> startup
ORACLE instance started.
Total System Global Area 56012784 bytes
Fixed Size 69616 bytes
Variable Size 38993920 bytes
Database Buffers 16777216 bytes
Redo Buffers 172032 bytes
Database mounted.
Database opened.
SVRMGR> quit
Server Manager complete.

Yes, it seems that it can work normally. Try sqlplus again

[Oracle @ only_you oracle] $ sqlplus
SQL * Plus: Release 8.1.6.0.0-Production on Sun Apr 15 09:20:12 2001
(C) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: scott
Enter password: tiger
Connected:
Oracle8i Enterprise Edition Release 8.1.6.1.0-Production
With the Partitioning option
JServer Release 8.1.6.0.0-Production
SQL> select * from emp
There should be a pile of data, with 14 records. It seems no problem.
SQL> quit

10. Restore previous glibc

[Root @ only_you oracle] cd/usr/bin
[Root @ only_you bin] rm? F gcc cc ld
[Root @ only_you bin] mv./saved /*.
[Root @ only_you bin] rmdir saved
[Root @ only_you bin] cd/usr/lib
[Root @ only_you lib] mv./saved /*.
[Root @ only_you lib] rmdir saved

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.