Oracle904InstalOnRedHatAS3

---------------------------MAKE RAID DISK STORAGE----------------------
STEP 1 :
FOLLOW AS THE HINT,PRESS CTRL-M,START TO CONFIG RAID
STEP 2 :
MAKE 3 RAIDS :1 DISK,1 DISK ,4 DISKS.

---------------------install AS3 operation system in IDE------------------------

step 1:
in installing we choose chinese simplified language package,
step 2:
set operation system default language is us english
step 3:
in install package,wo choose develope package and ftp package

FINISH THE OPERATION SYSTEM INSTALL
--------------------

--------------------fdisk and partition----------------------------------------
step 1
fdisk /dev/sda
n-->p--->1--->return---->+20000M
n-->p--->2--->return---->+20000M
n-->p--->3--->return---->return--->w
fdisk /dev/sdb
n-->p--->1--->return---->return---->w
fdisk /dev/sdc
n-->p--->1--->return---->+40000M
n-->p--->2--->return---->return---->w
mkfs.ext3 /dev/sdc1
mkfs.ext3 /dev/sdc2
step 2
raw /dev/raw/raw1 /dev/sda1
raw /dev/raw/raw2 /dev/sda2
raw /dev/raw/raw3 /dev/sda3
raw /dev/raw/raw4 /dev/sdb1
step 3
add command into /etc/rc.d/rc.local
raw /dev/raw/raw1 /dev/sda1
raw /dev/raw/raw2 /dev/sda2
raw /dev/raw/raw3 /dev/sda3
raw /dev/raw/raw4 /dev/sdb1
chown oracle /dev/raw/raw1
chown oracle /dev/raw/raw2
chown oracle /dev/raw/raw3
chown oracle /dev/raw/raw4

mount -t tmpfs /dev/tmpfs /oradata/bcp_for_ora/m0 -o size=500m

step 4
mkdir /oracle /oradata
step 5
mount /dev/sdc1 /oracle
mount /dev/sdc2 /oradata
it may like this
/********************************************************************/

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/swap /swap ext3 defaults 1 2
/dev/sdc1 /oracle ext3 defaults 0 0
/dev/sdc2 /oradata ext3 defaults 0 0
/********************************************************************/

step 6
add the above two commands into /etc/fstab

------------------------------------------------------------------------------
INSTALL ORACLE

*-----------------------
*notation!!!! as3 linux install must include developer rpms
*-----------------------

Step 1.
Add user and group

groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
passwd oracle

mkdir /oracle
mkdir -p /oracle/ora9/product/
chown oracle.oinstall /oracle
chown -R oracle.oinstall /oracle/ora9
chmod 755 /oracle
chown -R oracle.oinstall /oradata /dev/raw/raw1 /dev/raw/raw2 /dev/raw/raw3 /dev/raw/raw4

===========================================
Step 2.
Append these lines to
/etc/sysctl.conf to set kernel parameters:

kernel.shmmax = 1073741824
kernel.shmmni = 4096

*******************************

kernel.shmall = 2097152
#********************************
kernel.sem = 250 32000 100 128
fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

===========================================
Step 3.
Append these lines to
/etc/security/limits.conf to
modify your resource limits:

oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384

===========================================
Step 4.

===========================================
echo 250 32000 100 128 > /proc/sys/kernel/sem
echo 1073741824 > /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

===========================================
Step 5.
Go into the ./rpms directory and
Add the neccessory runtime file

rpm -ivh compat-libstdc++-7.3-2.96.122.i386.rpm
rpm -ivh compat-libstdc++-devel-7.3-2.96.122.i386.rpm

rpm -ivh compat-db-4.0.14-5.i386.rpm
rpm -ivh compat-gcc-7.3-2.96.122.i386.rpm
rpm -ivh compat-gcc-c++-7.3-2.96.122.i386.rpm

rpm -ivh tcl-8.3.5-92.i386.rpm
rpm -ivh setarch-1.3-1.i386.rpm
rpm -ivh openmotif-2.2.2-16.i386.rpm

===========================================
Step 6.
Change compiler's settings

mv /usr/bin/gcc /usr/bin/gcc323
ln -s /usr/bin/gcc296 /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++323
ln -s /usr/bin/g++296 /usr/bin/g++

===========================================
Step 7.
Unzip the compressed install file
Notice:
1. Copy the three install file into oracle's home
2. change the owner and group to oracle and oinstall

===========================================
chgrp oinstall lnx*
chown oracle lnx*

cpio -idmv

 1<lnx_920_disk1.cpio ""="" #="" -idmv="" 3006854="" 36:="" 8.="" <lnx_920_disk2.cpio="" <lnx_920_disk3.cpio="Step" a="" above.="" any="" binaries="" built-in="" can't="" cannot="" cd="" command="" command:="" compressed="" cpio="" directory="" echo="" error="" etc="" file="" file:="" fix="" following="" forgot="" found="" gcc,="" gcc:="" get="" if="" install="" is="" ld.so.preload="" libcwait.so:="" libraries:="" line="" link="" loading="" ls="" ls:="" means="" more:="" no="" not="" note:="" object="" open="" or="" p3006854_9204_linux.zip="" rhel3_pre_install.sh="" rhel3_pre_install.sh:="" rm="" rm:="" run="" see="" sh="" shared="" shell="" start="" such="" that,="" the="" then="" this="" to="" unzip="" when="" which="" while="" you=""> /etc/ld.so.preload   
 2rm /etc/ld.so.preload 
 3
 4  
 5===========================================   
 6Step 9.   
 7Copy and replace the Oracle's .bash_profile   
 8with below contents   
 9Notice :   
101\. check your oracle's path   
11===========================================   
12.bash_profile list 
13
14  
15# .bash_profile 
16
17  
18# take your display with you at remote login:   
19# Put it into your ~/.bash_profile 
20
21# oracle 9i   
22export ORACLE_BASE=/oracle/ora9   
23export ORACLE_HOME=/oracle/ora9/product/   
24export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH   
25export ORACLE_OWNER=oracle   
26export ORACLE_SID=ora9i32   
27export ORACLE_TERM=xterm   
28export JAVA_HOME=$ORACLE_HOME/jdk   
29export CLASSPATH=./:$ORACLE_HOME/jdbc/lib/classes12.jar:$ORACLE_HOME/lib/xmlparserv2.jar:$ORACLE_HOME/rdbms/jlib/jmscommon.jar:$ORACLE_HOME/rdbms/jlib/aqapi.jar:$ORACLE_HOME/rdbms/jlib/xsu12.jar:$ORACLE_HOME/dm/lib/odmapi.jar:ORACLE_HOME/jdbc/lib/nls_charset12.zip 
30
31# Use old Linuxthreads with floating stacks instead of   
32# the new Native POSIX Thread Library (NPTL)   
33# *************************   
34export LD_ASSUME_KERNEL=2.4.19   
35# *************************   
36export THREADS_FLAG=native 
37
38# Edit paths   
39export PATH   
40unset USERNAME   
41umask 022 
42
43export LD_LIBRARY_PATH=/oracle/ora9/product/9.2/lib   
44export PATH=/sbin:$JAVA_HOME/bin:/oracle/ora9/product/9.2/bin:$PATH 
45
46#   
47# change this NLS settings to suit your country:   
48# example:   
49# german_germany.we8iso8859p15, american_america.we8iso8859p2 etc.   
50#   
51export NLS_LANG='american_america.ZHS16GBK' 
52
53# User specific environment and startup programs 
54
55PATH=$PATH:$HOME/bin:/usr/sbin 
56
57  
58export PATH 
59
60===========================================   
61Step 10.   
62Begin install   
63===========================================   
64su - oracle   
65echo $LD_ASSUME_KERNEL 
66
67// Try to find your file's location   
68export DISPLAY=yourIP:0.0 (use the X-Win32)   
69runInstaller   
70inventory:/oracle/ora9/oraInventory   
71unix group name :oinstall   
72available product :oracle9i Database 9204   
73choose Enterprise version 
74
75only install software   
76can not create database; 
77
78during the install there will be two notce then run the:   
79sh /tmp/orainstRoot.sh   
80sh /oracle/ora9/prouuct/root.sh 
81
82NOTE :you can remote install   
83you install x-win32 in your local machine and start it   
84then you type   
85export DISPLAY=YOURLOCALIP:0.0   
86THEN   
87./runInstaller 
88
89  
90===========================================   
91Step 11.   
92update gcc   
93=========================================== 
94
95  
96rm -f /usr/bin/gcc   
97rm -f /usr/bin/g++   
98mv /usr/bin/gcc323 /usr/bin/gcc   
99mv /usr/bin/g++323 /usr/bin/g++</lnx_920_disk1.cpio>
Published At
Categories with 数据库类
comments powered by Disqus