Oracle 11g and 12c Installation


 Oracle 11g R2 Software Installation and DB Creation

  • Create the group for the user

# groupadd  oinstall
# groupadd dba

  • Create the user for oracle product

# useradd  oracle –G oinstall  –g dba

  • Extract the software file

$ unzip linux_11gR2_database_1of2.zip
$ unzip linux_11gR2_database_2of2.zip

  • Switch the user to before created oracle user
  • Create the bash profile

$ cd /home/oracle
$ vi .bash_profile

  • Add the following lines in the bash profile

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0
export PATH=$ORACLE_HOME/bin:$PATH

  • Give execute permissions for .bash_profile

$ chmod  777 –R  /home/oracle/.bash_profile

  • Execute the bash profile using (in oracle user)

$ ./.bash_profile

  • Change the ownership of installation path

# chown oracle.oinstall  -R /u01

  • Give the read, write & execute permissions for your database software file

$ chmod  777 –R  /u01/database
# xhost +

  • Run the runinstaller file from your software file location

$ ./runinstaller

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

37

#/u01/app/oracle/product/11.2.4/root.sh

36

 

Oracle 12c R2 Software Installation and DB Creation:

  • Create the group for the user

# groupadd  oinstall
# groupadd dba

  • Create the user for oracle product

# useradd  oracle –G oinstall  –g dba

  • Extract the software file

$ Unzip linuxam64_12c_database_1of2.zip
$ Unzip linuxam64_12c_database_2of2.zip

  • Switch the user to before created oracle user
  • Create the bash profile

$ cd /home/oracle
$ vi .bash_profile

  • Add the following lines in the bash profile

export  ORACLE_BASE=/u01/app/oracle
export  ORACLE_HOME=$ORACLE_BASE/product/12.0.0
export PATH=$ORACLE_HOME/bin:$PATH

  • Give execute permissions for .bash_profile

$ chmod  777 –R  /home/oracle/.bash_profile

  • Execute the bash profile using (in oracle user)

$ ./.bash_profile

  • Change the ownership of installation path

# chown oracle.oinstall  -R /u01

  • Give the read, write & execute permissions for your database software file

$ chmod  777 –R  /u01/database
# xhost +

  • Run the runinstaller file from your software file location

$ ./runinstaller

10

12

13

14

15

16

17

18

19

20

22

26

27

28

29

30

31

32

33

34

35

36

37

38

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *