Sudipta Bhaskar Sudipta.bhaskar@gmail.
com
Installation Document
• VM Creation with VirtualBox
• Oracle Linux 7.6 Installation
• Oracle 12.2 Grid & Database Installation
1
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
1. Install virtualbox from https://www.virtualbox.org/
2
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
1. Install Virtualbox. Final screen will look like something below
3
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
2. Go to https://edelivery.oracle.com/osdc/faces/SoftwareDelivery
3. You will need an oracle account to proceed. Create and login in to your account.
4. Select Release in first dropdown like the following and search 7.6
4
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
5. Click on Oracle Linux 7.6.0.0.0
6. The item will be added to cart. Click on Checkout in top right.
7. Select x86-64 in Platform/Languages drop down. Click on Continue
8. Accept the Terms and Conditions and Click Continue
5
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
9. Following page will come.
10. Only Select this.
V980739-01.iso Oracle Linux Release 7 Update 6 for x86 (64 bit), 4.3 GB
6
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
11. Click on Download. One exe file will download, run it. Your download will start like the
following.
12. Come back to Virtualbox page.
7
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
13. Click on the Blue New Button
14. Give a name to the Machine, Select Type and Select Version. Check the following screenshot
for reference.
15. Click Next
8
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
16. Give required Virtual Machine Memory Size and Click Next.
17. Select the following option and click create.
9
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Follow the following steps.
10
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
11
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
18. Now Following Screen Will Appear.
12
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
19. Now Click on Settings
13
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
14
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
15
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
16
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
17
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Select the ISO file we downloaded.
18
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
20. After clicking on OK, following screen will appear.
19
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
21. Now Click on Green Start Button.
22. Click on Install Oracle Linux 7.6
Following screen will appear.
20
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Follow the following steps.
21
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Date & Time and select India Map and click Done.
22
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Software Selection.
23
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Select Server With GUI and on the right side select the options which I will discuss in Class.
24
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Now click on Installation Destination
25
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
26
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on + Button.
27
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
28
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
29
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
30
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
31
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
32
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
33
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
34
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Accept Changes.
35
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Network.
36
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Edit Hostname as you desired and click on Apply.
37
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on the button on the right side of Ethernet to make it on.
38
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Configure.
39
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
40
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
41
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
23. Click on Begin Installation
42
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
24. Next Screen is like this.
25. Next pages.
43
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
26. Select root password
27. After login to VM. Open Terminal and Run “yum update -y”
28. https://www.oracle.com/database/technologies/oracle12c-linux-12201-downloads.html
Download linuxx64_12201_database.zip and linuxx64_12201_grid_home.zip files.
29. Run this in server terminal.
Yum install oracle-rdbms-server-12c*
30. Open terminal and run ifconfig
Check the ip address in enps0s3
31. Download winscp and install.
32. In terminal, logon to root.
Run “passwd oracle”
Give the desired oracle user’s password
33. Connect to putty using root
44
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
34. Create the following structure
mkdir -p /oracle/app/oracle/12.2/grid
chown -R oracle:dba /oracle/app/oracle/12.2/grid
35. Connect to the server using winscp
45
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Transfer the oracle and grid binaries to this location.
36. Install the following packages
yum install oracleasmlib-2.0.12-1.el7.x86_64.rpm
yum install kmod-oracleasm*
yum install oracleasm*
46
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
37. Power off the Virtual Machine
38. Go the VM Settings
39. Click on the mentioned area as shown in screenshot.
40. Create on Add Harddisk. Click on Create New Disk.
47
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
41. This page will come.
48
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Fixed Size.
49
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Create a 10GB Hard Disk.
50
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Add another one of 5GB.
42. After two Disk addition, it will look like this.
51
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
43. Start Virtual Machine.
44. Now we can see two new disks has been added. Run lsblk command and fdisk -l command.
52
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
45. Let’s partition the disks one by one. Follow the screenshot.
53
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
46. After partition the partitions will look like this.
54
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
47. Now from oracle user run the following steps to configure ASM.
55
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
48. Download MobaXterm Personal edition.
49. Click on Session.
56
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
50. Click on SSH
51. After log in.
57
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
52. cd /oracle/app/oracle/12.2/grid/
ls -ltr
unzip linuxx64_12201_grid_home.zip
53. There will be a file named “gridSetup.sh”
Run it like ./ gridSetup.sh
It will open the installation wizard.
58
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Follow the following Steps
59
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
60
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
61
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
62
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
63
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
64
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
65
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
66
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
67
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
68
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Fix and check again.
69
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Run that Script to fix the issues.
Click on IGNORE ALL if something is not fixable.
70
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
71
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
72
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
It will ask the scripts to run using root user
73
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Grid Installation is now Complete.
74
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Oracle Software Installation
1. unzip linuxx64_12201_database.zip
2. cd database
3. ./runInstaller -- This will start the installation wizard
4. This wizard will start. Follow the following steps to complete the oracle software installation
process.
75
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Next then click on Yes in next screen to proceed.
76
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
77
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
78
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
79
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
80
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
81
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
82
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Click on Install and Installation screen will appear.
83
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
This screen will appear. Execute from root user.
Oracle Database Software Installation is now complete.
84
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Oracle Database Installation
1. Go to $ORACLE_HOME i.e. /oracle/app/oracle/product/12.2.0/dbhome_1
2. Cd bin
3. ./dbca
4. This will start the installation wizard.
85
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
86
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
87
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
88
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Drop Database Silently
Create Database Silently
We need to add more disk to diskgroups for the required size of recovery area.
1. Add a disk in virtual box.
2. Partition that
3. Follow the following instructions to add the disks to diskgroup.
89
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
90
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
91
Monday, 23 December 2019
Sudipta Bhaskar [email protected]
Few Silly Steps for Interviews
Mandatory Processes in Oracle
1. Kill the pmon process, database terminates but automatically started up.
2. Kill the smon process, database terminates but automatically started up.
3. Kill the lgwr process, database terminates but not automatically starts up.
4. Kill the ckpt process, database terminates and automatically starts up.
92
Monday, 23 December 2019