Oracle Database 12c on Oracle Linux 6 – Step 5: Disable the Firewall, iptables and SELINUX

Part of this series of posts: Oracle 12c on Oracle Linux 6

05-01

Click Other….

05-02

Enter root as the username and click Log In.

05-03

Enter rootroot as the password (or the password you used earlier) and click Log In.

05-04

Check Do not show me this again and click Close.

Note:

Or don’t check Do not show me this again if you want to see this warning each time you log in to the X-Windows GUI as root. In general you shouldn’t be logging into the GUI as root. We’re going to do so because it will be easier to use some of the system tools (no pop-ups to log in again as root) to configure our system.

05-05

Select System -> Administration -> Firewall from the menu bar.

05-06

Click Close.

05-07

Click Disable.

05-08

Click Apply.

05-09

Click Yes.

05-10

Select File -> Quit to close the Firewall Configuration.

05-11

Select System -> Administration -> Services from the menu bar.

05-12

Select the ip6tables service and click Disable.

05-13

Select the iptables service and click Disable.

05-14

Select Program -> Quit to close the Services Configuration.

05-15

Right-click the desktop and select Open in Terminal to open a terminal window.

05-16

Type the following command and press Enter.

gedit /etc/sysconfig/selinux

Note:

You can use Ctrl-Shift + (the plus key) to change the font size of your terminal windows. I also resize my windows to fill the whole screen. Between major command groupings I’ll also type clear to remove the previous commands from the window and start fresh.

05-17

Change SELINUX=enforcing to SELINUX=disabled.

Note:

Why disable SELINUX? According to user 546612 on the Oracle.com forums:

Depending on what pieces of Oracle you are using, there are setuid/setgid issues, there are network interactions, there is fork/exec permission stuff, shared memory, etc. Some stuff in Oracle runs as root, especially if you do RAC. There is a whole whack of IPC.

Note that Redhat recently published a paper that describes how to make SELINUX work with Oracle 11g R2 on Redhat which should work on Oracle Linux too. Since this is a test system, disabling was easier…
http://www.redhat.com/resourcelibrary/reference-architectures/deploying-oracle-11gr2-on-rhel-6

05-18

Make sure your SELINUX line reads SELINUX=disabled and Click Save.

05-19

Select File -> Quit from the menu to close gedit.

Oracle Database 12c on Oracle Linux 6 – Step 4: Install Oracle Linux in the Virtual Machine < Previous Post – Next Post > Oracle Database 12c on Oracle Linux 6 – Step 6: Reset the root user password

Advertisements

3 responses to “Oracle Database 12c on Oracle Linux 6 – Step 5: Disable the Firewall, iptables and SELINUX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: