Beruflich Dokumente
Kultur Dokumente
1. Login as root user. 2. Edit the file /etc/sysctl.conf using vi editor , add the follwing lines at the end of the file :# vi /etc/sysctl.conf kernel.shmmax = 1073741824 kernel.sem = 250 32000 100 128 fs.fil-max = 65536 3. Save the file.
# init 6
Now Follow following steps to install the driver : 1. Install the source RPM package:
#cd /etc #vi hosts add one line as below 192.168.0.100 alhbank
now change the hostname to alhbank
Select by click of mouse start (redhat) Select settings Select Network Change to local host name to alhbank Save the settings by clicking on File then Save option Restart the system Please check the following RPMs installed :Login as root
# # # #
mv ln mv ln
#groupadd dba #groupadd oinstall #useradd g oinstall G dba d /oracle s #passwd oracle #confirm the password for oracle
Creating Oracle Directories
/bin/bash oracle
Oracle Software will require minimum 2.5 GB of space.Add separate space for database and logs. Login as root
Setting Oracle User Environments Set the following runInstaller Oracle environment variables before you start
ORACLE_BASE=/oracle/product export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/9.2.0 export ORACLE_HOME PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/bin:/usr/bin/X11 export PATH ORACLE_SID=bankdb export ORACLE_SID ORACLE_TERM=xterm export ORACLE_TERM LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/l ib:/usr/X11 export LD_LIBRARY_PATH LD_ASSUME_KERNEL=2.4.19 export LD_ASSUME_KERNEL THREADS_FLAG=native export THREADS_FLAG TMP=/tmp export TMP
NOW START runInstaller FROM THE CDROM Login as oracle Open a terminal Insert the CD into CDROM it will auto mount.
$/mnt/cdrom/runInstaller -Welcome Screen : Click Next -Inventory Location : Click Ok -Unix Group Name : Use dba and Click next -When asked to run /tmp/orainstRoot.sh, run it from a separate terminal before you click. Open another terminal $su root password # ./tmp/orainstRoot.sh -File Location : Use by default -Available Product : Select Oracle9i Database 9.2.0.1.0 -Installation Types : Select Standard Edition -Database Configuration: select General Purpose Set Database name same as SID Set Character set AL32UTF8 -Summery Screen : Start the install
Patching If required as per HK S/W we have to install the following patches for database migration. Login as oracle $cp /mnt/cdrom/p2617419_220_GENERIC.zip /tmp $cd /tmp $unzip p2617419_220_GENERIC.zip $cd 2617419
Sqlplus:
Login as oracle
$sqlplus /nolog SQL> CREATE PFILE $ORACLE_HOME/dbs/initbankdb.ora FROM SPFILE; SQL> exit
IF you face any problem to run above command then
FOR AUTORUN ORACLE #vi /etc/rc.d/rc.local add flowing lines su l oracle c /oracle/product/9.2.0/bin/lsnrctl start su l oracle c /oracle/product/9.2.0/bin/dbstart save & exit from vi editor
#vi /etc/oratab change the line : bankdb:/oracle/product/9.2.0 : N put Y in place of N save & exit #vi .bash_profile Add this line in PATH variable :/oracle/product/jre/1.3.1/bin Save & Exit Now Restart the box # init 6 Apply fix for Export error Login as oracle $sqlplus SQL> connect / as sysdba SQL>@$ORACLE_HOME/rdbms/admin/catmeta.sql
Exit from sqlplus and restart the box Verify fix for Export error Login as oracle Run export utility