Sie sind auf Seite 1von 60

Oracle_11g_R2_installation on 25TH OCTOBER 2012 MOUNTING SOFTWARES FROM MOUNT SERVER 172.16.12.40 # mkdir -p /mnt/softwares #mount -t nfs -o rw 172.16.12.

40:/mnt/softwares /mnt/softwares # cd /mnt/softwares # ls # cd \ MOUNTING RPM PACKAGES #mkdir dvd #df -kl (to check the partitions)

#mount /dev/hdc dvd/ # cd dvd/Server #ls #cd / DISABLING THE FIREWALL SETTINGS #service iptables stop #vi /etc/selinux/config

PREPARED BY RAVI KUMAR LANKE

Page 1

NOTE: CHANGE 6TH LINE SELINUX= enforcing to SELINUX=disabled by pressing ''i'' (insertion mode) and after change press esc and type '':wq'' and press enter. #xhost + {to disable the access control so that clients can connect from any host} PREREQUISITES CHECK We have to create two groups i.e., oinstall and dba and make oinstall is the primary group and dba is the secondary group for the user Oracle as shown below

PREPARED BY RAVI KUMAR LANKE

Page 2

CHANGING KERNEL PARAMETERS FOR DB-INSTALLATION goto /etc/sysctl.conf and modify the parameters #vi /etc/sysctl.conf

PREPARED BY RAVI KUMAR LANKE

Page 3

PREPARED BY RAVI KUMAR LANKE

Page 4

change the above configuration file as below

PREPARED BY RAVI KUMAR LANKE

Page 5

press esc and type " :wq" and press enter #sysctl -p

PREPARED BY RAVI KUMAR LANKE

Page 6

Modify the file etc/pam.d/login by adding the line #vi /etc/pam.d/login

PREPARED BY RAVI KUMAR LANKE

Page 7

PREPARED BY RAVI KUMAR LANKE

Page 8

now add line session required pam_limits.so at the bottom of the configuration file

PREPARED BY RAVI KUMAR LANKE

Page 9

save it and exit Modify the /etc/security/limits.conf

#vi /etc/security/limits.conf

PREPARED BY RAVI KUMAR LANKE

Page 10

PREPARED BY RAVI KUMAR LANKE

Page 11

add some lines at end of this config file as shown below

PREPARED BY RAVI KUMAR LANKE

Page 12

save it and exit now make the directory structure as shown below in which the Oracle Home will be takes place. and make changes in the ownership for the /u01 as shown below #mkdir -p /u01/app/oracle/product/11.2.0/db_1 #chown -R oracle:oinstall /u01

PREPARED BY RAVI KUMAR LANKE

Page 13

Changing the bash_profile with adding the lines of ORACLE_HOME,PATH..etc #vi .bash_profile

PREPARED BY RAVI KUMAR LANKE

Page 14

PREPARED BY RAVI KUMAR LANKE

Page 15

now add the following lines at the bottom of the config file

PREPARED BY RAVI KUMAR LANKE

Page 16

now we have to change from root user to the oracle user #su oracle

PREPARED BY RAVI KUMAR LANKE

Page 17

now we have to install java here $cd /mnt/softwares $ls

PREPARED BY RAVI KUMAR LANKE

Page 18

identify the java software and install it

PREPARED BY RAVI KUMAR LANKE

Page 19

PREPARED BY RAVI KUMAR LANKE

Page 20

PREPARED BY RAVI KUMAR LANKE

Page 21

next next and finish now we have to set the java path $export JAVA_HOME=/home/oracle/jrockit-jdk1.6.0_22-R28.1.1-4.0.1/ $ export PATH=$PATH:/home/oracle/jrockit-jdk1.6.0_22-R28.1.1-4.0.1/bin

PREPARED BY RAVI KUMAR LANKE

Page 22

INSTALLING DATABASE ORACLE 11g

PREPARED BY RAVI KUMAR LANKE

Page 23

PREPARED BY RAVI KUMAR LANKE

Page 24

PREPARED BY RAVI KUMAR LANKE

Page 25

We will get the screen like above if u are not intrested to give E-mail ..just uncheck the I wish to...box Then click Next which is not shown in the screen

PREPARED BY RAVI KUMAR LANKE

Page 26

PREPARED BY RAVI KUMAR LANKE

Page 27

click yes and go to next page

PREPARED BY RAVI KUMAR LANKE

Page 28

select first option and click next

PREPARED BY RAVI KUMAR LANKE

Page 29

if you are using client side system select desktop class and click next

PREPARED BY RAVI KUMAR LANKE

Page 30

provide the administrative password and click next

PREPARED BY RAVI KUMAR LANKE

Page 31

click yes and continue

PREPARED BY RAVI KUMAR LANKE

Page 32

click next

PREPARED BY RAVI KUMAR LANKE

Page 33

PREPARED BY RAVI KUMAR LANKE

Page 34

RESOLVING THE ERRORS OCCURED WHILE INSTALLATION swap size error this error occurs due to the less space of the swap file than the expected value to resolve this error we have to increase the size of the swap file The following dd command example creates a swap file with the name myswapfile under /root directory with required size #free -k {to see the current swap size}

# dd if=/dev/zero of=/root/myswapfile bs=1M count=1024

PREPARED BY RAVI KUMAR LANKE

Page 35

PREPARED BY RAVI KUMAR LANKE

Page 36

PREPARED BY RAVI KUMAR LANKE

Page 37

PREPARED BY RAVI KUMAR LANKE

Page 38

cahnge last line into /root/myswapfile swap swap defaults 0 0 ; save it and exit then in installation screen click check again

PREPARED BY RAVI KUMAR LANKE

Page 39

resolving kernel parameters


The solution to this is to edit the file /etc/sysctl.conf and add the (or change a existing line #vi /etc/sysctl.conf

PREPARED BY RAVI KUMAR LANKE

Page 40

# sysctl -p /etc/sysctl.conf

then in installation screen click check again

PREPARED BY RAVI KUMAR LANKE

Page 41

resolving the rpm packages go to the following location to get rpm packages

PREPARED BY RAVI KUMAR LANKE

Page 42

#ls - packagename -* :- to list the package

PREPARED BY RAVI KUMAR LANKE

Page 43

PREPARED BY RAVI KUMAR LANKE

Page 44

PREPARED BY RAVI KUMAR LANKE

Page 45

PREPARED BY RAVI KUMAR LANKE

Page 46

PREPARED BY RAVI KUMAR LANKE

Page 47

PREPARED BY RAVI KUMAR LANKE

Page 48

PREPARED BY RAVI KUMAR LANKE

Page 49

PREPARED BY RAVI KUMAR LANKE

Page 50

PREPARED BY RAVI KUMAR LANKE

Page 51

PREPARED BY RAVI KUMAR LANKE

Page 52

PREPARED BY RAVI KUMAR LANKE

Page 53

PREPARED BY RAVI KUMAR LANKE

Page 54

PREPARED BY RAVI KUMAR LANKE

Page 55

sql>startup

PREPARED BY RAVI KUMAR LANKE

Page 56

PREPARED BY RAVI KUMAR LANKE

Page 57

PREPARED BY RAVI KUMAR LANKE

Page 58

PREPARED BY RAVI KUMAR LANKE

Page 59

PREPARED BY RAVI KUMAR LANKE

Page 60

Das könnte Ihnen auch gefallen