Updated: Feb 20
Oracle Linux 6.8 Installation
This article provides a pictorial guide for performing a default installation of Oracle Linux 6.8 to install the Oracle 12c database and forms reports application on the Linux platform.
* Basic Installation
* Network setup
* Firewall Setting
* Group Creation
* User Creation
* Yum configuration
1. Boot from the DVD. At the boot screen, press the "Enter" key.
2. Press the "tab" key to move focus to the "Skip" key, then press the "Enter" key to continue.
3. On the "Welcome" screen, click the "Next" button.
4. Select the appropriate language, then click the "Next" button.
5. Select the relevant keyboard setting, then click the "Next" button.
6. Select the storage option necessary for the installation, then click the "Next" button.
7. Click the "Yes, discard any data" button on the disk initialization warning dialog.
8. Enter a fully qualified hostname and click next.
9. Select the relevant time zone by clicking on your nearest city on the map. Click on the "Next" button to proceed.
10. Enter a root password for the server, then click the "Next" button to proceed.
11. Click on use Anyway and then click on the "Next" button.
12. Select “create a custom Layout” and click on the Next button.
13. Create partition Select standard partition and click on create button.
14. Click on create and choose standard partition.
15. create all partitions as per requirement.
16. click on format.
17. click on Write changes to disk
18. check on install boot loader on /dev/sda and click on the Next button
19. mark check on all in the desktop group.
20. choose the required packages as shown in the above screenshot.
Click on Next
21. Click on reboot.
22. after reboot select date and set time.
23. Do not create a user without a group so click forward.
24. Click on Forward to finish the setup.
25. Choose to connect later.
26. Choose NO, I prefer to register at a later time. And click on forward.
27. Choose Yes, I agree to the License Agreement and click on forward.
28. Click on forward to complete the os installation.
We will use GUI for network setup
Right-click on the network icon in the top right corner.
You may delete and recreate connections or edit the connection.
Click on delete
Now click on Add and choose wired and click on create
Select IPV4 Setting and choose Method MANUAL and change connection name it is optional.
Click on Add and enter the details ip details.
After entering details click on apply
Click on Close
Now left-click on the network icon and click on the connection name to connect.
You may check ip details using ifconfig command
To check firewall status run below command
service iptables status
To stop firewall use below command
service iptables stop
After every restart firewall will automatically get enabled to restrict this use below command.
chkconfig iptables off
GROUP AND USER CREATION
Create a group using the below commands.
Groupadd -g 511 oinstall
Groupadd -g 512 dba
Groupadd -g 513 oper
After creating groups create a user for database oracle and for forms reports application weblogic
Use the below commands to add a user to the above-created groups.
Useradd -u 511 -g oinstall -G dba, oper weblogic
Useradd -g oinstall -G dba, oper oracle
Set password for created users using the command (passwd username)
Set SELinux to "permissive" by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
Once the change is complete, either restart the server or run the following command as "root".
# setenforce Permissive
Login as root
cd /media/Ole....or Rhel../Packages
Type below import rpm commands that will help us to create a repo and configure the repos.
rpm -ivh vsftpd* (click tab then enter)
rpm -ivh deltarpm (click tab then enter)
rpm -ivh python-deltarpm-3 (click tab then enter)
rpm -ivh createrepo-0 (click tab then enter)
Then copy Packages directory to /var/ftp/pub
cp -rp /Packages /var/ftp/pub
then go the copied directory in Packages
Then go to the directory for creating repo file
Then rename the public-yum-ol6.repo to public-yum-ol6.repo.d using below command.
mv public-yum-ol6.repo public-yum-ol6.repo.d
Then type vi yum.repo
It will create a file we have to enter below lines in this file and then save this file with :wq
copy below lines in yum.repo
Then create repo using below command
createrepo -v /var/ftp/pub/Packages
Now install the required packages of yum for database or for the application using the root user.
Document Created by – Abhishek Jha