Steps to Install Oracle 9i in Red hat Linux
Hardware and Software Requirements to install Oracle
Hardware Requirement
CPU PII or K6RAM
RAM 512 MB
HDD space 3.5 GB
Swap space 1GB or RAMx2
RAM 512 MB
HDD space 3.5 GB
Swap space 1GB or RAMx2
Software Requirement
Oracle requires a minimal version of the kernel and JRE software:
Parameter Required Sufficient (tested)
---------------------------------------------------
Kernel 2.4.7 later is fine
JRE 1.1.8v3 1.1.8v3
Parameter Required Sufficient (tested)
---------------------------------------------------
Kernel 2.4.7 later is fine
JRE 1.1.8v3 1.1.8v3
First of all before installing oracle in redhat check whether all development packages are installed by the following command
Install the following RPM
su -rootrpm -ivh binutils-2.13.90.0.18-9.i386.rpm \cpp-3.2.2-5.i386.rpm \gcc-3.2.2-5.i386.rpm \glibc-devel-2.3.2-5.i386.rpm \glibc-kernelheaders-2.4-8.10.i386.rpm
Download oracle 9i Here
For Oracle9i (9.2.0) One step procedure (uses less disk space and is faster):
zcat lnx_920_disk1.cpio.gz | cpio -idmvzcat lnx_920_disk2.cpio.gz | cpio -idmvzcat lnx_920_disk3.cpio.gz | cpio -idmv
Now you should have 3 directories containing installation files
Disk 1
Disk 2
Disk 3
Setting Swap Space
In order to perform a typical Oracle 9i installation and to create a simple prototype database, Oracle says that you need a minimum of 512MB of RAM for the Oracle9i (9.0.1) Server, and the amount of disk space (swap space) should be equal to twice the amount of RAM or at least 400 MB, whichever is greater.
I tried to test the limits on an older PC with 256 MB of RAM and with 600 MB of swap space. I was able to install Oracle 9i (9.0.1 & 9.2.0) and Oracle's default database without any problems. But when I used less swap space on this PC (256MB RAM), I was runnig out of memory. So I definitely recommend to use more RAM and/or more swap space as specified in the Oracle installation guide.
NOTE: If you do not have enough swap space or RAM during the Oracle installation, in particular during the database creation, your Oracle server (Linux) will temporarily become unresponsive to any events for several minutes.
To check the memory, run:
grep MemTotal /proc/meminfo
To check the swap space, run:
cat /proc/swaps
You can also add temporary swap space by creating a temporary swap file instead of using a raw device. Here is the procedure:
su -rootdd if=/dev/zero of=tmpswap bs=1k count=900000chmod 600 tmpswapmkswap tmpswapswapon tmpswap
To disable the temporary swap space execute the following commands:
su -rootswapoff tmpswaprm tmpswap
Setting Shared Memory
For Oracle 9i (9.2.0) installation I had to increase the maximum shared memory size on my Linux server for all Red Hat versions. The Oracle Database Configuration Assistant displayed the following error message on my server:
ORA-27123 : unable to attach to shared memory segment
$ su -root# cat /proc/sys/kernel/shmmax33554432# echo ' expr 1024 \ * 1024 \ * 1024 ' > /proc/sys/kernel/shmmax# cat /proc/sys/kernel/shmmax1073741824
Checking /tmp Space
To check the space in /tmp, run:
$ df /tmp
If you do not have enough space in the /tmp directory, you can temporarily create a tmp directory in another filesystem. Here is how you can do this:
su -rootmkdir / /tmpchown root.root //tmpchmod 1777 //tmpexport TEMP = / #used by Oracleexport TMPDIR = / # used by Linux Programs like the linker “ld”When you are done with your Oracle installation, shutdown Oracle and remove the temporary directory:su -rootrmdir /AnotherFilesystem>/tmpunset TEMPunset TMPDIR
Creating Oracle User Accounts
su – rootgroupadd dbagroupadd oinstalluseradd -c “ Oracle Software Owner “ -g oinstall -G dba oraclepasswd oracle
Creating Oracle Directories
In this example, make sure that the /u01 filesystem is large enough. If /u01 is not on a separate filesystem, then make sure the root filesystem "/" has enough space.
su -rootmkdir -p /u01/app/oracle/product/9.2.0chown -R oracle.oinstall /u01mkdir /var/opt/oraclechown oracle.dba /var/opt/oraclechmod 755 /var/opt/oracle
Setting Oracle Environment
Set the following Oracle environment variable before you start runInstaller
As the Oracle user execute the following commands:
#set the LD_ASSUME_KERNEL environment variable only for Red Hat 9export LD_ASSUME_KERNEL = 2.4.1 # for RH 9# Oracle Environmentexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/Product/9.2.0export ORACLE_SID=testexport TNS_ADMIN=$ORACLE_HOME/network/adminexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/local/libexport PATH=$ORACLE_HOME/bin
Starting runInstaller
Step 1: Allow “oracleserver” to display X information to your desktop
xhost +oracleserver
Step 2: Open a new window and login to the Oracle server "oracleserver" as root. This window will be used for mounting and unmounting the Oracle CDs.
oracleserver: $ su -root
oracleserver:root# mount /mnt/cdrom
Step 3: From the console of your Oracle server "oracleserver" where you will run runInstaller, execute the following commands:
oracleserver:oracle$ export DISPLAY = yourdesktop:0.0
Startup and Shutdown of the Oracle 9i Database
sqlplus /nologconnect / as sysdbastartupshutdown immediate
To Start the Listener
cd $ORACLE_HOME/bin/lsncrtl start
The lsnrctl utility manages the Oracle listener processes. The Oracle listener process is required for database applications to access the database through SQL *Net or Net 8. lsnrctl requires entries in the listener.ora file that specify the port for that listener.
The listener.ora file is the configuration file for the network listener. It resides on the server and defines the network listener address, the SID for the database for which it listens, and other optional parameters for tracing and logging.
The following commands are used to manage the listener:
start : Starts the listener with the name specified, otherwise LISTENER will be used. For Windows systems, the listener can also be started and stopped from the Control Panel.
stop : Stops the listener. For Windows systems, the listener can also be started and stopped from the Control Panel.
status : Provides status information about the listener, including start date, uptime, and trace level.
services : Displays each service available, along with the connection history.
version : Displays the version information of the listener.
reload : Forces a read of the configuration file in order for new settings to take effect without stopping and starting the listener.
0 comments:
Post a Comment