Install Latest JDK current 7up4

Downloads:

Although jdk7up4 is certified in certification matrix's found the oracle has many bugs with 7 after working with support rolled back to 6up33 and worked fine follow same steps just use 6up33

 

JDK 7 update 4 Download

64bit rpm jdk-7u4-linux-x64.rpm

Save file on shared server or local disk in directory

<JDK save directory> = /software/oracle11gappserver/jdk

cd <JDK save directory>

chmod 775 jdk-7u4-linux-x64.rpm
rpm -Uvh jdk-7u4-linux-x64.rpm

cd /usr/bin
ls -l | grep java
unlink java
ln -s /usr/java/jdk1.7.0_04/bin/java java
which java
java -version

Oracle 6 Update 2 Post Install scripts

I normally keep these scripts organized in different directories but for the use of this tutorial they can all be dropped in the same directory and ran.

<File Server> = A shared file server where software is kept
<File Server Share Directory> = The share directory on the file server where software and scripts live.

mkdir /software
chmod 775 /software
mount <File Server>: <File Server Share Directory>/software /software
mkdir /software/ossupport/configs/oel6up2 –p
mkdir /software/ossupport/scripts/new_install_scripts –p
cd /software/ossupport/scripts/


Install the below scripts

./oel6up2_appserver_postinstall.sh

 

vi oel6up2_appserver_postinstall.sh

dt_cmd=`/bin/date +%Y%m%d%H%M`

# Start Configuration Section Here #
backup_path=/appbackup
backup_location=$backup_path/backup.$dt_cmd
ntp[1]='server 192.168.0.211’ config_file_dir=/software/ossupport/configs/oel6up2
# End Configuration Section #

# Check to make sure the script is running as root.
source check_user.sh

# Check to make sure the latest patches have been applied.
source install_os_updates.sh

# Verify the hostname is set correctly.
source check_hostname.sh

# Back up Base OS files
source backup_system_config_files.sh

# Configure Mount points not in /etc/fstab these mounts will load after os
#source check_etc_rc.local.sh

# Configure the clock server
source check_ntp.sh

# Replace static os files
source replace_os_files.sh

# Create password history file
source setup_password_file.sh

# Install resolv.conf
#source install_resolv.conf

# Create application monitoring account
#source create-dbosmon-user.sh

# Create oracle account
source create-oracle-account-yum.sh

vi new_install_scripts/check_user.sh

USER=`whoami`
# Check to make sure the account is root
if [ $USER != root ]; then
  echo "Must be root to run this script, please login as root and re-try"
  exit
fi

vi new_install_scripts/install_os_updates.sh

echo "Installing OS Updates";
yum install sendmail tigervnc tigervnc-server tigervnc-server-module firefox
yum list updates
yum update exclude=kernel*

vi new_install_scripts/check_hostname.sh

HOSTNAME=`hostname`
echo "Verify Hostname"
echo "When using dhcp the dhcp server may assign an invalid hostname verify the correct hostname is set."
echo "Hostname: "$HOSTNAME
echo "Is "$HOSTNAME" the correct hostname? (y/n)"
read response
if [ $response != "y" ]; then
  echo "Please enter the correct hostname"
  read response
  hostname $response
  HOSTNAME=`hostname`
  echo "Replacing hostname in /etc/sysconfig/network file."
  old_hostname=`cat /etc/sysconfig/network | grep HOSTNAME`
  echo "Old Hostname setting: "$old_hostname
  if [ "$old_hostname" == "" ]; then
    echo "HOSTNAME=$HOSTNAME" >> /etc/sysconfig/network
  else
    sed -ie "s/$old_hostname/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network
  fi
  new_hostname=`cat /etc/sysconfig/network | grep HOSTNAME`
  echo "New Hostname setting: "$new_hostname
fi

vi new_install_scripts/backup_system_config_files.sh

# Do not recover sysctl edit this file by hand

alias cp='cp'

echo "Back Up Location: "$backup_location
echo "Creating Initial Backup"

fnBackUpFile()
{
  if [ -f "$1" ]; then
        cp $1 $backup_location
        echo "Backing Up "$1
  fi
}

fnBackUpFile /etc/samba/smb.conf
fnBackUpFile /etc/selinux/config
fnBackUpFile /etc/pam.d/system-auth
fnBackUpFile /etc/bashrc
fnBackUpFile /etc/pam.d/login
fnBackUpFile /etc/pam.d/halt
fnBackUpFile /etc/pam.d/reboot
fnBackUpFile /etc/pam.d/poweroff
fnBackUpFile /etc/csh.login
fnBackUpFile /etc/passwd
fnBackUpFile /etc/group
fnBackUpFile /etc/shadow
fnBackUpFile /etc/profile
fnBackUpFile /etc/rc.d/rc.local
fnBackUpFile /etc/pam.d/login
fnBackUpFile /etc/security/limits.conf
fnBackUpFile /etc/csh.login
fnBackUpFile /etc/sysctl.conf
fnBackUpFile /etc/sysconfig/network-scripts/ifcfg-eth0
fnBackUpFile /etc/sysconfig/network
fnBackUpFile /etc/resolv.conf
fnBackUpFile /etc/hosts
fnBackUpFile /etc/sysctl/sysconfig/nfs
fnBackUpFile /etc/rc.d/rc.local
fnBackUpFile /etc/sudoers
fnBackUpFile /etc/inittab
fnBackUpFile /etc/ntp.conf
fnBackUpFile /etc/init/control-alt-delete.conf
# Only required for oracle databases with asm
fnBackUpFile /etc/oracle/ocr.loc
fnBackUpFile /etc/oratab
fnBackUpFile /etc/oraInst.loc

alias cp='cp -i'

vi new_install_scripts/check_ntp.sh

echo "Configuring ntp server"

for ((count = 1;count <= 1;count++ ))
  do
    defaultntp=`grep "${ntp[count]}" /etc/ntp.conf`
    if [ "$defaultntp" = "" ]; then
        echo "Adding ${ntp[count]} to /etc/ntp.conf...."
        sed "1i ${ntp[count]}" /etc/ntp.conf >> /etc/ntp.conf.new
        mv -f /etc/ntp.conf.new /etc/ntp.conf
      else
        echo "${ntp[count]} already configured in ntp.conf...."
    fi
done

echo ${ntp[1]} > /etc/ntp/step-tickers

hwclock --systohc

chkconfig ntpd on

service ntpd stop
service ntpd start

vi new_install_scripts/replace_os_files.sh


fnReplaceOSFile()
{
  if [ -f "$1" ]; then
        cp $1 $2
        echo "Copying $1 to $2."
  fi
}

fnReplaceOSFile $config_file_dir/inittab /etc/inittab
fnReplaceOSFile $config_file_dir/halt /etc/pam.d/halt
fnReplaceOSFile $config_file_dir/reboot /etc/pam.d/reboot
fnReplaceOSFile $config_file_dir/poweroff /etc/pam.d/poweroff
fnReplaceOSFile $config_file_dir/sudoers /etc/sudoers
fnReplaceOSFile $config_file_dir/bashrc /etc/bashrc
fnReplaceOSFile $config_file_dir/system-auth /etc/pam.d/system-auth
fnReplaceOSFile $config_file_dir/opasswd /etc/security/opasswd
fnReplaceOSFile $config_file_dir/smb.conf /etc/samba/smb.conf
fnReplaceOSFile $config_file_dir/control-alt-delete.conf /etc/init/control-alt-delete.conf

vi new_install_scripts/setup_password_file.sh

chown root:root /etc/security/opasswd
chmod 600 /etc/security/opasswd

vi new_install_scripts/create-oracle-account-yum.sh

echo "Is this install for oracle database or oracle application server? (y/n)"
read response
if [ "$response" == "y" ]; then
  oracle_exists=`cat /etc/passwd | grep oracle`
  echo "ORACLE ACCOUNT: "$oracle_exists
  if [ "$oracle_exists" == "" ]; then
    mkdir -p /app/oracle/product
    chmod -R 775 /app
    groupadd -g 501 oracle
    groupadd -g 503 dba
    groupadd -g 504 oinstall
    useradd -u 501 -g oinstall -G dba oracle
    passwd oracle
    chown -R oracle:oinstall /app
  else
    echo "Oracle account already exists"
  fi
  echo "Is this insatll for an oracle database? (y/n)"
  read response
  if [ "$response" == "y" ]; then
    yum install oracle-rdbms-server-11gR2-preinstall   
    yum install oracleasm-support
  fi
cat /etc/group | egrep -i 'dba|oinstall'
cat /etc/passwd | grep oracle
fi

Install Weblogic standalone for 11g Fusion Middleware Control


Date: May 29th 2012

Level: 2

Purpose: This tutorial will walk you through the steps of installing and configuring Oracle Weblogic on Oracle Linux 6 to be used as a 11g Enterprise Manager Fusion Middleware Control Server. This server will provide Fusion Middleware Control and Weblogic Administrator. When you run multiple servers it is a good idea to separate your management server and run it on a separate node to manage all of your instances from one location. You will still have different ips for different domains but you can manage many servers in one domain. A domain is a logic grouping of servers performing similar tasks IE Development Web Servers, Production Web Servers. Weblogic 10.3.6 is the latest currently supported Weblogic server for 11.1.1.6 Fusion Middleware on Oracle Linux 6.

  1. Create VMware Instance
  2. Install Oracle Linux 6 Update 2
  3. Disable Firewall and SELinux
  4. Disable Network Manager
  5. VMware Copy Issue Fix
  6. Configure Oracle Yum Repository
  7. Create Oracle User
  8. Install Weblogic required packages
  9. Configure limits.conf
  10. Create Personal User Accounts
  11. Install Latest JDK currently 7up4
  12. Create OFM11g Home
  13. Create OFM11g Application Set Up Scripts
  14. Install Weblogic 10.3.6
  15. Install Application Development Framework 11.1.1.6 for Enterprise Manager
  16. Create Weblogic Domain for Fusion Enterprise Manager
  17. Configure Weblogic boot.properties to be not require password on start or stop
  18. Create Weblogic Start Script with nohup and log

 

Disable Firewall and SELinux Oracle Linux 6


Video Demo:

Disable firewall and SElinux prior to Oracle 11g Database install

Steps:

chkconfig iptables off
chkconfig ip6tables off
service iptables stop
service ip6tables stop

vi /etc/selinux/config
change SELinux=enforcing to SELinux=disabled

reboot

Oracle System Administrator

 

Current Working Tutorial. 

I’m currently working on a tutorial on installing Oracle Linux on VMware Server. Although VMware Server is no longer a released product many people still use this product to perform testing. These tutorials will work the same in virtual box and I’m planning on having some additional video tutorials on virtual box soon after completing these installs.

The Video Tutorial series follows Oracle’s 2 day dba Guide with a hands on demo of installing in VMware. Day 1 of the 2 day dba guide explains the steps for an install so these tutorials should go hand in hand. If you looking for a simple guide to follow to get you started with out issues follow below.

Day 3 Install Oracle 11g on Oracle Linux 6

Create VMware Instance for Oracle Linux 6

 

Video Demo:

Create VMware Instance for Oracle Linux 6

Install Oracle 11g on Oracle Linux 6 VMware Server 2


Date: May 29th 2012

Purpose: This tutorial will walk you through the steps of Installing Oracle 11g Database on an Oracle Linux 6 OS running inside of VMware server.

  1. Create VMware Instance
  2. Install Oracle Linux 6 Update 2
  3. VMware Copy Issue Fix
  4. Disable Firewall and SELinux
  5. Disable Network Manager
  6. Configure Oracle Yum Repository
  7. Post OS Install Script to prep for database
  8. Download 11.2.0.3 from metalink.oracle.com patch 10404530
  9. mkdir -p /app/oracle/product/11.2.0/db_1
  10. chown -R oracle:oinstall /app
  11. chmod -R 775 /app
  12. groupadd osoper --gid 505
  13. copy to bash_profile for oracle
  14. # Oracle Settings
  15. TMP=/tmp; export TMP
  16. TMPDIR=$TMP; export TMPDIR
  17. ORACLE_HOSTNAME=oradb01.snapdedo.com; export ORACLE_HOSTNAME ORACLE_UNQNAME=db11g; export ORACLE_UNQNAME
  18. ORACLE_BASE=/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME ORACLE_SID=db11g; export ORACLE_SID
  19. PATH=/usr/sbin:$PATH; export PATH
  20. PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
  21. Install Database Software
  22. create database listener
  23. $ORACLE_HOME/bin

    .netca - to create a listener accept defaults

         Listener configuration

         Add

         LISTENER

         TCP

    run

    .dbca - to create database accept defaults

    Install autostart steps see note

  1. Post Database Install Scripts

 

  • Post OS Install scripts
  • Post Database Install scripts
  • VMware Server no longer supported
  • VMware License issues with Oracle

Day 3 Tutorials

This is a list of my oracle training tutorials. Oracle provides excellent 2 day guides for most products. These tutorials and lessons start on day 3. Always start with the 2 day tutorial from Oracle and then continue here.

Oracle Database

Day 1-2 2 Day Dba Guide
Day 3 Install Oracle 11g on Oracle Linux 6

Oracle 11g App Server

Day 1 Install WebLogic for Standalone Fusion Middleware Control
Day 2 Install Web Tier connected to Fusion Middleware Control
Day 4 Install SSL Certificates in Web Cache
Day 5 Create dads.

Oracle Apex

Day 1-2 2 Day Developer Guide
Day 3 Modify Pages for Table Changes
Day 4 Create a Blog Application Part 1.

Copy VMware breaks Ethernet Linux


One of the great things about VMware is it’s simple approach to managing copies. Snapshots are great but what if you want to just copy a instance and run many different instances from one base install. This is simple of course you can simply copy the base directory and all files. Once you have made the copy you add the new VMware directory into VMware server the VMware server software asks you if you “moved it” or “copied it”. If you choose “moved it” your Mac address and all items are the same. If you say “copied it” a new mac address is created. In Linux this causes a small issue, when the server boots it sees the new address and enables the second Ethernet device.
Video Demo
Quick Fix:
1. Verify this is your issue.

Disable Network Manager Oracle Linux 6


(Optional Step) This step is more related to issues when using Network Manager and VMware then issues with Network Manager on Oracle Linux. For a local test machine to test server software the NetworkManager provides little to no value. For my purposes I will disable it. Feel free to play with this feature and your network to see if it provides you value on your servers.
Video Demo

Replace the following keys with the correct

Oracle Linux 6 set up yum repository

Video Demo:

Oracle Linux has multiple ways for you to download the latest packages. One of the easiest ways to get the updates and packages you require from Oracle is the Oracle Linux yum repository. This repository has the latest patches oracle-asm libs and ocfs2 libs available and is freely available.

Oracle Admins competing in the job market.


My outlook on our changing times in respect to Oracle Jobs.
I started working with Oracle as a PL/SQL developer over 12 years ago. When I started like most people I had no idea of the strengths of this development language and it was not one of the offered courses at any college that I had seen. My college courses primarily revolved around Java, C++ and VB.
The company I started working for had a very small development staff and had not truly tapped into a web experience for it’s customers. The job role consisted of handling everything from the server, OS, database, application server to the code writing and deployment. Of course then the entire

Install Oracle Linux 6 for Oracle Products


Video Demo:



Downloads:
Oracle Linux 6 Update 2 – This download is a free download but you must first register with oracle, if you already have an single sign on account with oracle just logon and accept license.
Prelude:
To perform this install I tested on VMware server 2, running on top of a windows vista machine. The