AWS EC2 Create Swap File

Smart Panda - AWS

AWS EC2 Create Swap File

While creating PeopleSoft Upgrade Maintenance (PUM) environments using the DPK’s from Oracle, they require that you have a swapfile in order to complete the install.  Sometimes it will warning you and sometimes it won’t. We run the DPK’s using the OEL 7.3 OS, and these instructions will create a swapfile.

1. Login to EC2 using SSH (switch to root user)

2. Create a file for the swapfile:
fallocate -l 2G /placewithspace/swapfile

3. Change the permissions on the swapfile:
chmod 600 /placewithspace/swapfile

4. Allocate the file as a swap file:
mkswap /placewithspace/swapfile -f

5. Turn the swap file on:
swapon /placewithspace/swapfile

6. Check swap file is active:
swapon -s

Enjoy DPK installing.

AWS EC2 Update Java

Smart Panda - Java

AWS EC2 Update Java

While working on a new Amazon EC2 Instance the default java that shows up is an openJDK version which may not necessarily be the right java for certain enterprise applications. This is a nice clean way of installing and changing to a new version of Java. In this example we are installing Oracle JDK 1.8.0 update 141. So here we go:

1. Go to Oracle’s Java Download Page and find the right rpm that you want to install: Java Download Page

2. Log into your EC2 Instance and switch to the root account

3. Execute the command: wget –no-check-certificate –no-cookies –header “Cookie:oraclelicense=accept-securebackup-cooke” {URL FROM Step 1}
– This is the command I used for Linux x64 rpm download:

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" {URL}

In order to get the URL, go to the Oracle Java Download page at: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, accept the license agreement, and then right click on the file you wish to download and select copy link address. This will give you the {URL} you need as it will have the random key in it. For example the URL I just used was:

http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.rpm

4. Install the new Java RPM: rpm -i jdk-8u141-linux-x64.rpm

5. Check your Java Version: java -version (Will most likely show a different version than you just installed)

6. Switch to an alternate version: alternatives –config java (Select the version you just installed for me: /usr/java/jdk1.8.0_141/jre/bin/java)

7. If the version you want is not there you may need to install it as an alternative: alternatives –install /usr/java/jdk1.8.0_141/bin/java 2000

8. Check your Java Version again: java -version (It should be pointing correctly now).

Go have some fun with your newly install version of Java!

Oracle Database 12c: Installation Guide

Smart Panda - Oracle DevelopmentOracle Database 12c: Installation Guide

I was working on a new server the other day and I wanted to make sure that all the correct repositories were in place, this install guide was excellent.

>> Install Guide <<<

I was doing this in AWS, and found a nice guide to setting up an OEL 7 Image: >>> Install AWS Image Guide <<<

The primary element that I was looking for was the Repositories for Oracle Enterprise Linux 7:

binutils-2.23.52.0.1-12.el7.x86_64 
compat-libcap1-1.10-3.el7.x86_64 
compat-libstdc++-33-3.2.3-71.el7.i686
compat-libstdc++-33-3.2.3-71.el7.x86_64
gcc-4.8.2-3.el7.x86_64 
gcc-c++-4.8.2-3.el7.x86_64 
glibc-2.17-36.el7.i686 
glibc-2.17-36.el7.x86_64 
glibc-devel-2.17-36.el7.i686 
glibc-devel-2.17-36.el7.x86_64 
ksh
libaio-0.3.109-9.el7.i686 
libaio-0.3.109-9.el7.x86_64 
libaio-devel-0.3.109-9.el7.i686 
libaio-devel-0.3.109-9.el7.x86_64 
libgcc-4.8.2-3.el7.i686 
libgcc-4.8.2-3.el7.x86_64 
libstdc++-4.8.2-3.el7.i686 
libstdc++-4.8.2-3.el7.x86_64 
libstdc++-devel-4.8.2-3.el7.i686 
libstdc++-devel-4.8.2-3.el7.x86_64 
libXi-1.7.2-1.el7.i686 
libXi-1.7.2-1.el7.x86_64 
libXtst-1.2.2-1.el7.i686 
libXtst-1.2.2-1.el7.x86_64 
make-3.82-19.el7.x86_64 
sysstat-10.1.5-1.el7.x86_64 


PeopleBooks Guides: Install & Upgrade

PeopleBooks Guides: The Search for Install & Upgrade Guides

Smart Panda - PeopleBooks GuidesAlmost on a daily bases questions arise as to what upgrade paths are supported and often the answer to that question changes.  My Oracle Support (MOS) has the answer, however, that answer can be extremely difficult to find.

A little hidden gem of the PeopleBooks Online Reference homepage is they have a link to the current PeopleBooks Guides for Install and Upgrade pages.

Simply expand the category you want and it will link you to the MOS support page associated the guide you are looking for.

PeopleBooks Guides Install Upgrade Guides