Install instances of Oracle 8.1.6 under RedHat 7.0

zhaozj2021-02-17  53

1. The purpose of this document is installed under RedHat 7.0 Enterprise Version Database Server 2. Software before installation Prepare RedHat7.0 installation CD Oracle8161_tar.gz Download Download: http://technet.Oracle.com/software/Products /oracle8i/software_index.htm Glibc2.1 (GNU C Library) Downloads: http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/i386-glibc-2.1-linux.tar. GZ 3. I use the machine: PIII733 with 128M Ram.OrCle recommends using a minimum of 128MB of memory, preferably 256MB. 4. Start installing A. Hard disk partition 1. Oralcel recommends that the SWAP swap partition is 400m or twice the physical memory of the currently used, and it is of course, the better. 2. Two mount points are defined during partitioning, / u01 (used to install the ORAALCE software) and / U02 (used to store database data), / u01 partition size, typically install 750MB minimum installation 650MB custom installation 1000MB of two mount points You can establish B. installation at the "/" directory or other directory after installation or complete the system installation. The installation must be: (Select full installation when installing redhat7.0) 1.x Windows 2.development packages (C, GCC Wait) C. Decompose Oracle8161_tar.gz, log in to the root account, execute: [root @ rh70 / root] CD / usr / src [root @ rh70 src] tar zxvf oracle8161_tar.gz in / usr / src / directory Oralce8ir2 catalog, including the packaged file D. Install the glibc 2.2 installation of the GLIBC 2.2. Oracle 8i cannot be compiled with Glibc 2.2, and the SDK of GLIBC 2.1 is required.

[root @ rh70 / root] CD / [root @ rh70 /] tar zxvf /usr/src/i386-glibc-2.1-linux.tar.gz Hide / USR / BIN directory GCC, CC, LD, to avoid being Oracle Installer use [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 hides the libc.so, libdl.so, libm.so and libdl.so, libm.so and libdl.so files under the / usr / lib directory, 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 Root account login, open a Terminal window, create Oinstall and DBA group [root @ rh70 / root] groupadd oinstall [root @ rh70 / root] GroupAdd DBA Create an Oracle account, with oinstall as a Primary group, DBA is a secondary group [root @ rh70 / root] UserAdd Oracle -g OinsTall -g DBA [root @ rh70 / root] Passwd Oracle (setting Oralce account password) F. Create an Oracle Software Installation Directory [Root @ rh70 / root] MKDIR / U01 / App / Oracle / Productuc T / 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 Login to use the Oracle account to enable the Terminal window to use the umask instruction to see if the umask is 022, if not 022, you need to add the instruction Umask 022 to the /Home/oRacle/.bash_profile file.

[Oracle @ rh70 Oracle] UMASK Using the text editor to open /Home/oracle/.bash_profile, add the setting line with the following environment variable: # 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, best not more than 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: $ Oracle_Home / BIN: $ ORACLE_HOME / DBS PATH = $ PATH: / BIN: / USR / BIN: / USR / SBIN: / USR / LOCAL: / USR / local / bin : / usr / bin / x11: / usr / x11r6 / bin log out, re-enable the Terminal window, type the Env directive to see the environment variable just set. [Oracle @ RH70 Oracle] ENV H. Installing Oracle 8i Database Software 1. Log in with an Oracle account, enters xwindows, open the Terminal window 2. [Oracle @ rh70 oracle] CD / usr / src / oracle8ir2 3. [Oracle @ rh70 Oralctle8ir2] ./runinstaller 4. Check the Source Path as: /usr/src/oracle8ir2/stage/products.jar, Destination Path is the path to the Oracle_home environment variable setting, click Next. 5. In the UNIX Group Name window, type "OInstall", click Next; 6. A window will pop up, requiring ROOT asking /usr/app/oracle/Product/8.1.6/orainstroot.sh. Open a new Terminal window [Oracle @ rh70 orractle8ir2] su root (Enter the root password) [Oracle @ rh70 orractle8ir2] CD $ ORACLE_HOME [Oracle @ rh70 8.1.6] sh orainstroot.sh Return to the window you just popped up, click Retroyal. 7. Select "Oracle8i Enterprise Edition 8.1.6.1.0" on the "Available Products" window appearing, click Next.

转载请注明原文地址:https://www.9cbs.com/read-30596.html

New Post(0)