The experience of installing Oracle under RedHat7.0

Source: Internet
Author: User
Tags exit character set ftp connect variable oracle database sqlplus intel pentium
Oracle has seen a lot of articles saying that there are problems with the glibc of the Redhat7.0 band and that Oracle is not installed. Later heard that a change of glibc version can be, so I would like to install on a use. Some people say that they want to install Oracle, at least 256M of memory, but also to modify the shared memory size, recompile the kernel, create 4 mount points, etc., I did not do, but also installed on the (may only be used to learn, do not do anything important). The following steps faithfully record the entire installation process. 1. Machine configuration Cpu:intel Pentium III 668203 khz Memory: 128M operating system: Redhat7.0 (fully installed) Swap area: 256M installation Shell:bash 2. Install the required software Oracle8161_tar. GZ (275M, file larger, before downloading a psychological preparation, I spent the first day to get Down is a bad, not open, almost angry death!) Had to download it again, rather than buy a pirated CD-ROM. Download URL: ftp://166.111.136.3/pub/DataBase/Oracle/oracle8161.tar.gz (Tsinghua Sakai) http://technet.oracle.com/software/ products/oracle8i/software/index.htm glibc2.1 version (GNU C library,18m) Download address: ftp://ftp.kernel.org/pub/software/libs/ glibc/hjl/sdk/2.1/i386-glibc-2.1-linux.tar.gz downloaded to the/backup directory 3. Install GLIBC 2.1 Pack RedHat7.0 installed is glibc2.2. Oracle 8I cannot compile with glibc 2.2, but requires a glibc2.1 SDK. Log in as root account [Root@only_you/root] CD/[root@only_you/] tar zxvf/backup/i386-glibc-2.1-linux.tar.gz hide/usr/bin directory gcc,cc , LD, 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 s aved [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 hides the libc.so,libdl.so in the/usr/lib directory, Libm.so and libpthread.so files to avoid the use of the [Root@only_you bin] CD by Oracle installer. /lib [Root@only_you Lib] mkdir saved [root@only_you Lib] mv libc.so libdl.so libm.so libpthread.so saved [root@only_you Li b] MV libc.a LIBDL.A LIBM.A libpthread.a saved 4. Create an Oracle account to log in as root account, open a terminal window, and create an Oracle account [Root@only_you/root] Useradd Oracle [ROOT@ONLY_YOU/ROOT]PASSWD Oracle (set oralce account password) system automatically creates the/home/oracle directory, the owner of Oracle. My Oracle is ready to be installed in this directory. The installation document says that you want to create a DBA group, which I think is free. 5. Decompression oracle8161_tar.gz log in as root account, execute: [Root@only_you/root] cd/backup [root@only_you/backup] tar zxvf oracle8161_tar.gz The ORALCE8IR2 directory is generated in the/backup/directory, containing the unpack file 6. Set up an Oracle user environment to log on with an Oracle account, open the Terminal window, and use a text editor to turn on the/home/oracle/.bash_ Profile finally add the following environment variable settings line: 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. is also the character set of the database. American_america is a region code, not very related. Log out, log in again with an Oracle account, type the env directive to view the environment variables that you just set up. [Oracle@only_you oracle]env 7. Create Oracle data file directory I want to put the data file in the/home/oracle/data directory, so [oracle@only_you Oracle] mkdir data 8. Install Oracle 8i database software (1) login with Oracle account, enter Xwindows, open terminal window (2) [Oracle@only_you Oracle] CD/BACKUP/ORACLE8IR2 (3) [ Oracle@only_you Oralcle8ir2]./runinstaller (4) Error, display message xlib:connection to ": 0.0" refused by server xlib:client isn't AU thorized to connect to server description xhost no configuration (5) Set Xhost open a new terminal window [oracle@only_you oracle]su-(enter root password) [root@only_y Ou/root] Xhost + keep this window (6) Continue to install under the Oracle User window [Oracle@only_you oralcle8ir2]./runinstaller on the Java-based Oracle Installer interface that appears, Click Next. (7) On the file locations interface, check destination path for/home/oracle, click Next (8) in the UNIX Group name window, type "Oracle" and click Next; (9) A window will pop up and require to run/home/oracle/orainstroot.sh (10) as root to switch to the root user window just reserved [root@only_you/root] cd/home/oracle [ Root@only_you oracle]./orainstroot.sh (11) Return to the window just popped up and click Retry. (12) Select "Oracle8i Enterprise edition8.1.6.1.0" on the appearing "Available Products" window and click Next. (13) Select Typical on the next screen, click Next (14) on the privileged operating System groups interface, click Next (15) to prompt for the global database name, write what you like, I wrote a WAP, verified Oracle_sid for ORCL, click Next (16) to prompt for db files localtion, enter/home/oracle/data, click Next (17) on the last summary window, Click Install (18) Now officially started to install the article I read said it was a long process, at least 1-2 hours. To stay awake, I made a cup of coffee and started surfing the Internet. I didn't expect to finish it in less than 20 minutes. (19) After the file is copied and joined, pop a window that requires running root.sh to switch to the root user window, [root@only_you oracle]./root.sh Press ENTER when asking for local bin directory (20) Return to the request to run root.sh windows, click OK Oracle Net8 Configuration and Oracle Database Configuration assistants boot, install NET8 and create database. This step took another 20 minutes or so. After Oracle database Configuration Assistants is finished, click OK (23) at the end of the installation screen, click Exit on the pop-up do Reallywant to exit window Click Yes now all ORALCE 8i Enterprise installed!You can then use the Oracle database management tools SVRMGRL, 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, 1999, 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-produc tion 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 byte s Redo buffers 172032 bytes Database mounted. Database opened. Svrmgr> quit Server Manager complete. Yes, it seems to be working properly. Try it again with Sqlplus [oracle@only_you oracle]$ sqlplus sql*plus:release 8.1.6.0.0-production on Sun Apr 09:20:12 2001 (c) Cop Yright 1999 Oracle Corporation. All rights reserved. Enter User-name:scott enter Password:tiger Connected to: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 should be out of a bunch of data, there are 14, it seems to be no problem. Sql>quit 10. Restore the 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.