Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

2 - OrACLE Database Installation

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

ORACLE Database Installation

1. In this case the files are contained in Oracle folder and there are 7 zip files in it,
copy it from the windows machine to the linux machine in any preferred folder.
In this case they are copied to /opt/Oracle

2. Use xstart orxshell to connect to the linux machine


3. Create the group oinstall and Create the user oracle with group oinstall
[root@testsrv1 ~]# groupadd oinstall
[root@testsrv1 ~]# groupadd dba
[root@testsrv1 ~]# groupadd oper
[root@testsrv1 ~]# useradd -g oinstall -d /home/oracle -m -G dba,oper -
s/bin/bash oracle
4. Give full ownership of Oracle directory to oracle user
[root@testsrv1 opt]# chown –R oracle:oinstall /opt/Oracle
5. Login as oracle user
su – oracle
6. Change directory to /opt/Oracle
cd /opt/Oracle
7. Unzip all zipped files

unzip p10404530_112030_Linux-x86-64_1of7.zip

unzip p10404530_112030_Linux-x86-64_2of7.zip

unzip p10404530_112030_Linux-x86-64_3of7.zip

unzip p10404530_112030_Linux-x86-64_4of7.zip

unzip p10404530_112030_Linux-x86-64_5of7.zip
unzip p10404530_112030_Linux-x86-64_6of7.zip
unzip p10404530_112030_Linux-x86-64_7of7.zip

8. Make sure the hostname is set in /etc/hosts file and using the command
9. hostname

If not set , login as root, edit the file /etc/hosts and add the entry

- vi /etc/hosts

{ip address} {hostname}

Also edit the /etc/sysconfig/network file and modify the line for HOSTNAME

◼ vi /etc/sysconfig/network

NETWORKING=yes

HOSTNAME={servername}

Issue the command hostname {hostname}

10. Login as oracle

Edit the user profile

vi .bash_profile

Add the following lines, amend as necessary

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3/db_home1

PATH=$PATH:$ORACLE_HOME/bin:/usr/sbin

CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export PATH ORACLE_HOME LD_LIBRARY_PATH ORACLE_BASE


CLASSPATH

login as root and Create the following directories

mkdir –p /u01/app/oracle/product/11.2.0.3/db_home1

chown –R oracle:oinstall /u01

11. Change directory to the database folder


cd /opt/Oracle/database

12. You need to change the text in


/opt/ORACLE/database/stage/cvu/cv/admin/cvu_config

vi /opt/Oracle/database/stage/cvu/cv/admin/cvu_config

Change OEL4 to OEL6 in the line

CV_ASSUME_DISTID=OEL6

13. Log off and login by oracle user


14. cd /opt/Oracle/database
15. Issue this command to start installation
16.

./runInstaller

(if no dialog box appears…..by root user root# set $ DISPLAY=:0.0 ; export DISPLAY)
and after dialog box appears if it just display your host name…then go and check your /etc/hosts have
ipadress and hostname matched…example 127.0.01 mylinux)
17. Fill in email id and tick in the box if you have the Oracle support ,

Leave the email blank and untick th e box if not and click Next

Click Yes if it informs you that you haven’t provided an email address

18. Configure the download of software updates as appropriate or you can skip
software updates and click Next
19. Choose to install database software only and click Next
20. Choose single instance database installation and click Next
21. Choose the language as Eglish (default) and click Next
22. Choose Enterprise Edition and click Next
23. Check and amend Oracle Base and Software Location as needed, Click Next
24. Check and amend Inventory Directory as needed, Click Next
25. Check and amend the Database Administrator and Operator groups and click
Next
26. On this page are shown the system requirements that are not met. These
requirements include the kernel parameters which can be fixed by clicking on ‘fix
and check again’ which suggests a command to execute as shown below
27. Here if it asks for soft limit login by root and edit these lines in the file limits.conf
in /etc/security/limits.conf
#* soft core 0
#* hard rss 10000

Give 2000 for the soft core and 8000 for the hard rss

#* soft core 2000

#* hard rss 8000


28. Do as the instructions and click OK
29. They also include packages that are not installed which need to be added using
the following procedure.

Mount the Redhat OS DVD to /mnt


From the virtual machine settings go to storage and mount the host drive
corresponding to the linux image onto the CD drive or insert the DVD disk to the
DVD drive

Open a new sshsession to the linux machine

Login as root

Issue the command

Mount ( to see the available mounted file systems, check for the DVD , if
mounted unmount it usingThe command umount /dev/sr0)

Mount to mnt folder

mount /dev/sr0 /mnt

vi /etc/yum.repos.d/dvd.repo

Add these lines


[dvd]

name=RHEL6.3

baseurl=file:///mnt

gpgcheck=0

enabled=1

Now start installing the missing packages using the commands as below

yum install libaio-devel*

yum install ksh-20100621*

Click on check prerequisites again and again after installing the required
packages until a ll are fixed

(just incase there are some packages that are not installed and have the status not
fixable…. Yum install (pakagename) like yum install gcc*( *any package starting
by the name gcc)
30. Review the summary page and click install
31. Installation will take some time and finally it will ask for the execution of these
scripts
32. Do as the instruction, accept the default if the scripts ask for paths , and click OK
33. The installation is done, Clcik on Close

You might also like