Install Oracle9i Database on Red Hat Linux 9

xiaoxiao2021-03-06  89

This article is published on Oracle's website, which is a guide to the installation of Oracle9i Database.

Author: Abhijeet Kulkarni

Database Version: Oracle9i R2 (9.2.0.1.0)

1. Create a user and group: ------------------------- Switch to the root user and perform the following command

$ SU -

# groupadd oinstall # GroupAdd DBA # UserAdd -g oinstall -g dba oracle # passwd oracle

2. Create a directory. -------------------------- We will install all things into / opt / ora9 directory:

# mkdir -p /opt/ora9/product/9.2# mkdir / var / opt / oracle # chown oracle.dba / var / opt / oracle # chown -r oracle.dba / opt / ora9

3. Pre-installation (system configuration): ---------------------------

3.1 Install these compatibility libraries:

Compat-GCC-7.3-2.96.118.i386.rpmcompat-libgcj-7.3-2.96.118.i386.rpmcompat-libgj-devel-7.3-2.96.118.i386.rpmnss_db-compat-2.2-20.i386.rpm

You can find these packages on the installation CD. The first file is in the redhat rpms directory of the CD1 in the RPMS directory of the CD2

3.2 Setting the kernel parameters to be able to start successfully:

Add these rows to /etc/sysctl.conf If you have more RAM, you can also change these values:

Keernel.shmmax = 536870912kernel.shmmni = 4096kernel.shmall = 2097152kernel.sem = 250 32000 100 128fs.file-max = 65536Net.ipv4.ip_local_port_range = 1024 65000

Add these rows to /etc/security/limits.conf

Oracle Soft Nofile 65536racle Hard Nofile 65536Oracle Soft Nproc 16384Oracle Hard Nproc 16384

Restart the system to make these kernel changes take effect, if you do not allow reboots, you can change the kernel parameters by performing the following command at runtime:

# echo 250 32000 100 128> / Proc / Sys / Kernel / Sem # echo 536870912> / Proc / Sys / Kernel / Shmmax # echo 4096> / proc / sys / kernel / shmmni # echo 2097152> / proc / sys / kernel / SHMALL # echo 65536> / proc / sys / fs / file-max # echo 1024 65000> / proc / sys / net / ipv4 / ip_local_port_range

4. Pre-installation (Oracle Environment): ---------------------------- Log in as Oracle User:

Su - Oracle

Place the following row at ~ / .bashrc:

#oracle 9iexport ORACLE_BASE = / opt / ora9export ORACLE_HOME = / opt / ora9 / product / 9.2export PATH = $ ORACLE_HOME / bin: $ ORACLE_HOME / Apache / Apache / bin: $ PATHexport ORACLE_OWNER = oracleexport ORACLE_SID = ora9iexport ORACLE_TERM = vt100export LD_ASSUME_KERNEL = 2.4 .1export threads_flag = nativeExport ld_library_path = / opt / ora9 / product / 9.2 / lib: $ ld_library_pathexport path = / opt / ora9 / product / 9.2 / bin: $ path ## Change this NLS setting according to your country: # 示例: # german_germany.we8iso8859p15, American_america.we8iso8859p2 etc. # export nls_lang = 'croatian_croatia.ee8iso8859p2' If you need other national settings (these are Croatia), please refer to the support settings here, and changes the NLS_LANG variables.

5. Installation: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Log in with root users and allows users Oracle to write to the x display:

Su -xhost

Log in to Oracle users:

Su - Oracle

start installation. Don't switch to your CD-ROM installation directory, because you will not be able to remove the first CD when you need it to insert other CDs.

/ MNT / CDROM / Install / Linux / Runinstaller

During installation, the system prompts you to insert other installation disks. Open a new console, remove the current disk with the command umount / dev / cdrom (identity of root user), replace the disc. If redhat9 does not automatically install it, use the command mount / dev / cdrom to install it

The installation will generate two errors.

* First, you will see an error dialog prompt to INS_OEMAGENT.MK issues. Select Ignore the error, we will correct the error after installation. * The second dialog will notify you "Error In Invoking Target Install of Makefile $ Oracle_Home / CTX / LIB / INS_CTX.MK". If this error occurs, open a new console and log in as an Oracle user. Perform the following command:

$ CD $ ORACLE_HOME / Install $ TAIL MAKE.LOG

You will see a line of information similar to:

GCC -O CTXHX -L / OPT / ORA9 / PRODUCT / 9.2 / CTX / LIB / -L / OPT / ORA9 / Product / 9.2 / LIB / -L / OPT / ORA9 / Product / 9.2 / LIB / Stubs / / OPT / ORA9 / PRODUCT / 9.2 / CTX / LIB / CTXHX.OL / OPT / ORA9 / Product / 9.2 / CTX / LIB / -LM -LSC_CA -LSC_FA -LSC_EX -LSC_DA -LSC_UT-LSC_CH -LSC_FI -LCTXHX -LC -WL, Rpath, / OPT / ORA9 / PRODUCT / 9.2 / CTX / LIB -LNLS9-LCORE9 -LNLS9 -LCORE9 -LNLS9 -LXML9 -LCORE9 -LUNLS9 -LNLS9

Copy the line, add -ldl to the end of the line and run it in the $ Oracle_Home / BIN. $ CD $ ORACLE_HOME / BIN $ GCC -O CTXHX -L / OPT / ORA9 / PRODUCT / 9.2 / CTX / LIB / -L / OPT / ORA9 / Product / 9.2 / LIB / -L / OPT / ORA9 / PRODUCT / 9.2 / LIB / stubs / /opt/ora9/Product/9.2/ctx/lib/ctxhx.o -l / opt / ora9 / product / 9.2 / ctx / lib / -lm -lsc_ca -lsc_fa -lsc_ex -lsc_da -lsc_ut -lsc_ch - LSC_FI -LCTXHX -LC -WL, -RPATH, / OPT / ORA9 / PRODUCT / 9.2 / CTX / LIB -LNLS9 -LCORE9 -LNLS9 -LCORE9 -LNLS9 -LXML9 -LCORE9 -LUNLS9 -LNLS9 -LDL

Now, click the ignore button on the dialog and the installation will continue.

Finally, Oracle installations may prompt your agent to start failed. Select Ignore, we will change this error later.

6. Processing post-installation -------------------------- Open a console and log in as an Oracle user. Execute these commands:

$ CD $ ORACLE_HOME / NETWORK / LIB $ MAKE -F INS_NET_CLIENT.MK INSTALL

Then edit the $ ORACLE_HOME / CTX / lib / INS_CTX.MK file, and 13-14 lines from:

CTXHX: $ (CTXHXOBJ) $ (LINK) $ (CTXHXOBJ) $ (Inso_LINK)

Change to

CTXHX: $ (CTXHXOBJ) $ (LINK) -LDL $ (CTXHXOBJ) $ (Inso_LINK)

Then execute

$ make -f $ oracle_home / ctx / lib / INS_CTX.MK INSTALL

Now you will be able to launch your agent with the following command.

$ /opt/ora9/product/9.2/bin/Agentctl Start

7. Start the database ------------------------------ If your installer is hanging in the last step of Part 5, do not worry. Waiting for a period of time to see if it responds, if you don't respond, terminate it. Add the following lines #oracle 9iexport ORACLE_BASE in a shell script (e.g. setvar.sh) in = / home1 / orahomeexport ORACLE_HOME = / home1 / orahome / ora92export PATH = $ ORACLE_HOME / bin: $ ORACLE_HOME / Apache / Apache / bin: $ PATHexport ORACLE_OWNER = oracleexport ORACLE_SID = ora9iexport ORACLE_TERM = vt100export LD_ASSUME_KERNEL = 2.4.1export THREADS_FLAG = nativeexport LD_LIBRARY_PATH = / opt / ora9 / product / 9.2 / lib: $ LD_LIBRARY_PATHexport PATH = / opt / ora9 / product / 9.2 / bin: $ PATHexport ORA_NLS33 = $ Oracle_Home / Ocommon / NLS / Admin / Data

Save this file and run $ source setvar.sh in the command prompt

Turning now to $ oracle_home / bin Edit DBCA Scripts for DBCA Scripts in any Editor $ KWRITE DBCA

Find the JRE_HOME environment variable. It points to JDK 1.8, the latter is part of the installation CD. Change this variable and point to the JDK1.3 or 1.4 installed in your Linux, transfer to the end of the file, which is used to call the Java program. Delete the bin directory from the path and rename the JRE executable name as Java file. This is just like using our own JDK call Java programs. Start $. / Dbca8. Start the database instance Open a SQLPLUS session and log in to SQL> Create SPFile from Pfile = 'Full Path of The System with Sys / Passwd as System Database Administrator

. Old created by the dbca utility '

Eg /Home1/orahome/admin/dl226b/pfile/initdl226b.ora

SQL> Shutdown Immediate; SQL> Startup;

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

New Post(0)