Search This Blog

Thursday, November 30, 2017

Setting kernel parameters for CentOS 7

Oracle Database 12c install should be installed on CentOS 7 not 6
For CentOS 6, to set kernel parameters, change the file /etc/sysctl.conf and then run:

# sysctl -p

For CentOS 7, add the parameters to a new file called:

/usr/lib/sysctl.d/70-oracledb.conf

Contents:

# Settings for oracle 12c database
# instead of using /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
#kernel.shmall = 2097152
#kernel.shmmax = 4294967295
#kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

Only activate the kernel.shm arguments if the existing values are lower.

Then reboot.

Tuesday, October 18, 2016

Installing Java JDK - example latest JDK7 version.

Just some notes on installing JDKs

Download the JDKs from Oracle Support:
Search on document 1439822.1 and find the version you wish to install.
Do not use the MSI Installers.  Be sure to download the version for your architecture.

For Windows versions you will download a zip file
For example for JDK 1.7.0_111 the windows file is: p24558841_170111_MSWIN-x86-64.zip
For Linux versions you will also download a zip file
For example for JDK 1.7.0_111 the Linux file is: p24558841_170111_Linux-x86-64.zip

For both windows or linux installs, start on your PC and unzip the zip file to a folder - usually the same as the filename (if you are using 7-Zip).  You will find inside objects for JDK and objects for JRE.

For windows JDK1.7.0_111 you will see the following:
jdk-7u111-windows-x64.exe
jre-7u111-windows-x64.exe
readme.txt
server-jre-7u111-windows-x64.tar.gz

I always use the JDK version.  When I install on Windows I always install onto the C:\Java folder so I will get C:\Java\jdk1.7.0_111 folder as my JAVA_HOME.  I don't ever install the public JRE.  To download the browser JRE always go to java.com and do it from there.

For Linux, the folder expands to:
jdk-7u111-linux-x64.rpm
jdk-7u111-linux-x64.tar.gz
jre-7u111-linux-x64.rpm
jre-7u111-linux-x64.tar.gz
readme.txt
server-jre-7u111-linux-x64.tar.gz

Some versions are .gz and not .tar.gz.  For all versions use the .tar.gz install, I always use the JDK version:

Change directory to the place where you want to create JAVA_HOME and use:
$ tar xvzf jdk-7u111-linux-x64.tar.gz
The folder will be created with all of the associated assets

To install the JCE Unlimited Strength download them from the oracle site (search on JCE 1.7) and download to your box.  The file name is UnlimitedJCEPolicyJDK7.zip

Then cd to $JAVA_HOME/jre/lib/security and type

$ unzip -j <path-to-your-file>/UnlimitedJCEPolicyJDK7.zip

That should do it.