Environment to RPAS Server 14.1

After losing time to prepare a Virtual Machine (VM) for using the RPAS Server 14.1; I am here to writing this post to help all those who need to install an environment for this new version, as with me!

This post is detailing a simple environment you can use to install RPAS Server 14.1 and Fusion Client 14.1; I’m preparing the steps of RPAS and Fusion and I will deliver ASAP.

Understanding the changes

Oracle WebLogic Server 12c (Release 12.1.3)

Keeping the efforts to increasingly use solutions in cloud, Oracle released the 12c version for Oracle WebLogic Server. This new version has significant improvements that will help increasing the use of applications, inclusive to Fusion Client.

Hybrid Storage Architecture – HSA

One of the major changes we have in RPAS environment refers to the Hybrid Storage Architecture (HSA). This architecture is designed to have a Database works with Oracle WebLogic Server; The idea is use Database to manage information of error or occurrences within the Weblogic.

Oracle Database 12c

This is the new version of the most famous database, Oracle Database 12c. One of the changes what we need in our environment is about “Container Databases” (CDB) and “Pluggable Databases” (PDB).

An important point is that need of the Oracle Database is only for the use of Weblogic 12c; there isn’t relationship with the RPAS Server and domains.

Repository Creation Utility (RCU)

To meet the need of HSA, we have to use the Repository Creation Utility (RCU) in our environment. Although RCU is not new, but this moment it’s request for use in conjunction within our environment.

Starting the works

Installation is not a difficult task, but we must be careful with some details to avoid having to redo a few steps later. (I had this problem!)

Below it’s a way I did to install all the tools in my VM with Oracle Linux 6.6. So if you will work with different environment, you might find other problems and maybe you need to undestand more about each step.

Downloading all packages

To begin we need to download all the packages we need to build the environment. Some of these are large and might take a time to finish the download. The packages we need are:

  1. Java 1.7.0.67 (JDK/JRE)
  2. Oracle Database 12c
  3. Oracle Weblogic Server 12.1.3
  4. Oracle ADF Runtime 12.1.3
  5. Patch 18886249 and 19473060 (Support Oracle)
  6. RPAS Server 14.1 (Oracle EDelivery)

After we have all files, we can begin the installation just follow the steps below.

Install JAVA 1.7.0.67

The first step is install is Java. This moment appears the first question: “Why we will use an old version of Java?” The answer is that the new versions of Java have problems with the safety standard of new version of RPAS Server and Fusion Client.

Seems that Oracle will work to resolve this problem in version RPAS 15 along with JAVA 1.8, but we don’t have more information about this.

#######################################
### Install JAVA JRE/JDK jdk1.7.0_XX
#######################################
### Do it as ROOT user

export DIR_INSTALL=<Directory where the files are available>
export DIR_JAVA=<Directory where JAVA packages will be installed>
export NAME_JDK_FILE=jdk-7u67-linux-x67.gz
export NAME_JRE_FILE=jre-7u67-linux-x67.gz

mkdir -p ${DIR_JAVA}

cp ${DIR_INSTALL}/${NAME_JDK_FILE} ${DIR_JAVA}
cp ${DIR_INSTALL}/${NAME_JRE_FILE} ${DIR_JAVA}

cd ${DIR_JAVA}

tar xvzf ${DIR_JAVA}/${NAME_JDK_FILE}
tar xvzf ${DIR_JAVA}/${NAME_JRE_FILE}

rm -rf ${DIR_JAVA}/${NAME_JDK_FILE}
rm -rf ${DIR_JAVA}/${NAME_JRE_FILE}

### Set JAVA symbolic links
cd /usr/bin

rm /usr/bin/java
rm /usr/bin/jre

ln -s ${DIR_JAVA}/jdk1.7.0_67/bin/java java
ln -s ${DIR_JAVA}/jdk1.7.0_67/bin/java jre

 Install Oracle Database 12c

This point I had to learn more about because I had never installed an Oracle Database. So after understand some points, I decided to install the default minimum setting to avoid more problems and keep the simple solution.

But if you are a SYSDBA and/or have to install on the Oracle Database in production environment is likely you need to spend more time to set various parameters of the Database that are not defined below.

#######################################
### Install Oracle Database 12c
#######################################

### Do it as ROOT user

yum install oracle-rdbms-server-12cR1-preinstall

### Do it as ORACLE user

export DIR_INSTALL=<Directory where the files are available>
export ORACLE_BASE=<Directory where the database will be installed>
export ORACLE_HOME=$ORACLE_BASE/Product/12.1.3/dbhome_1
export INVENTORY_LOC=$ORACLE_BASE/oraInventory
export NLS_LANG="AMERICAN_AMERICA.AL32UTF8"

cd $DIR_INSTALL
unzip $DIR_INSTALL/linuxamd64_12102_database_1of2.zip
unzip $DIR_INSTALL/linuxamd64_12102_database_2of2.zip

$DIR_INSTALL/database/runInstaller
###
### Step by Step of Installation
###

### 1) Configure Security Updates
### 2) My Oracle Support Credentials
### 3) Select Installation Type
### --- Tick "Create and configure database"
### 4) System Class
### --- Tick use "Desktop Class"
### 5) Typical Install Configuration
### --- Check "Unicode (ALT32UTF8)" in Character Set
### --- Check "DBA" in OSDBA Group
### --- Tick "Create as Container Database"
### ------ Define "Pluggable database name"
### 6) Prerequisite Checks
### --- Ignore "Swap Size Warning"
### 7) Summary
### --- Check "Database character set" is "AL32UTF8"
### 8) Install Product
### 9) Finish
###
### Post-Installation steps
###

### Start LISTENER
lsnrctl start LISTENER

### Connecting in Database
sqlplus / as sysdba

### Execute these commands below
SQL> startup
SQL> alter pluggable database all open;


Install Oracle Weblogic Server 12.1.3

After the database installed, we can start the steps about WebLogic Server. The steps are simple for those who have already installed Weblogic sometime and this moment we won’t create the Weblogic Domain because we need to apply some patches before.

Important: In Weblogic Server is necessary have KSH installed

#######################################
### Install Oracle Weblogic Server 12.1.3
#######################################

### Do it as WLS user

export DIR_TEMP=<Directory to temporary files (Default: /tmp)>
export DIR_INSTALL=<Directory where the files are available>
export ORACLE_HOME=<Directory where Weblogic Server will be installed>

export DIR_JAVA=<Directory where JAVA has installed>
export JAVA_HOME=${DIR_JAVA}/jdk1.7.0_67
export JRE_HOME=${DIR_JAVA}/jre1.7.0_67
export INVENTORY_LOC=$ORACLE_HOME/oraInventory

### Create INVENTORY_LOC
mkdir -p $INVENTORY_LOC

export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin

### Weblogic Server 12.1.3
cd ${DIR_INSTALL}
${JAVA_HOME}/bin/java -Djava.io.tmpdir=${DIR_TEMP} -jar ${DIR_INSTALL}/fmw_12.1.3.0.0_wls.jar
###
### Step by Step of Installation
###

### 1) Welcome
### 2) Installation Location
### --- Check if Oracle Home is $ORACLE_HOME
### 3) Installation Type
### --- Tick "Weblogic Server"
### 4) Prerequisite Checks
### 5) Security Updates
### 6) Installation Summary
### 7) Installation Progress
### 8) Installation Complete
### --- Untick "Automatically Launch..."
### 9) Finish

Install Oracle ADF Runtime 12.1.3

After installing Weblogic, we need to install the ADF libraries. ADF will be responsible for managing/working with Fusion Client within the Weblogic. In this new version of Weblogic, Oracle calls ADF as Weblogic Infrastructure.

#######################################
### Install Oracle ADF Runtime 12.1.3
#######################################

### Do it as WLS user

export DIR_TEMP=<Directory to temporary files (Default: /tmp)>
export DIR_INSTALL=<Directory where the files are available>
export ORACLE_BASE=<Directory where Weblogic Server will be installed>

export DIR_JAVA=<Directory where JAVA has installed>
export JAVA_HOME=${DIR_JAVA}/jdk1.7.0_67
export JRE_HOME=${DIR_JAVA}/jre1.7.0_67

export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$JRE_HOME/binexport ORACLE_MIDDLEWARE_HOME=$ORACLE_BASE
export INVENTORY_LOC=$ORACLE_BASE/oraInventory
export ADF_INSTALL_FILE=${DIR_INSTALL}/ADF/fmw_12.1.3.0.0_infrastructure_Disk1_1of1.zip

### Unzip the file to install the package
cd ${DIR_INSTALL}
unzip -d ${DIR_INSTALL}/ADF ${ADF_INSTALL_FILE}

cd ${DIR_INSTALL}/ADF
${JAVA_HOME}/bin/java -Djava.io.tmpdir=${DIR_TEMP} -jar ${ADF_INSTALL_FILE}
###
### Step by Step of Installation
###

### 1) Installation Inventory Setup
### --- Check if Inventory Directory is $INVENTORY_LOC
### --- Using Operation Group as oinstall
### 2) Welcome
### 3) Installation Location
### --- Check if Oracle Home is $ORACLE_HOME
### 4) Installation Type
### --- Tick "Fusion Middleware Infrastructure"
### 5) Prerequisite Checks
### 6) Installation Summary
### 7) Installation Progress
### 8) Installation Complete

Install Patch 18886249 and 19473060

According to Oracle installation documents you need to install these patches to use the Fusion Client on Weblogic. These patches are available within Oracle Support.

It’s very important to understand that other patches may be required for other requirements and/or Oracle may request others to be installed in the future. So it’s important to check the documentation before this installation.

####################################### 
### Install Patches 18886249 and 19473060 
####################################### 

### Do it as WLS user 

export DIR_INSTALL=<Directory where the files are available> 
export ORACLE_HOME=<Directory where Weblogic Server has installed> 

export ORACLE_MIDDLEWARE_HOME=$ORACLE_HOME 
export OPATCH_HOME=$ORACLE_HOME/OPatch 

export DIR_JAVA=<Directory where JAVA has installed> 
export JAVA_HOME=${DIR_JAVA}/jdk1.7.0_67 
export JRE_HOME=${DIR_JAVA}/jre1.7.0_67 

export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin 
export PATH=$PATH:$ORACLE_HOME/bin:$OPATCH_HOME 

### Apply patch 18886249 
export PATCH_INSTALL_FILE=p18886249_121300_Generic.zip 

### Unzip the patch file cd ${DIR_INSTALL} 
unzip -d ${DIR_INSTALL}/patch ${DIR_INSTALL}/${PATCH_INSTALL_FILE}

### Apply the patch 
cd ${DIR_INSTALL}/patch/* 
opatch apply -jre ${JAVA_HOME} 

### 1) Write "Y" - Is the local system ready for patching? [y|n] y 

### Clean Data 
cd ${DIR_INSTALL} ; rm -rf ${DIR_INSTALL}/patch 

### Apply patch 19473060 
export PATCH_INSTALL_FILE=p19473060_121300_Generic.zip 

### Unzip the patch file cd ${DIR_INSTALL} 
unzip -d ${DIR_INSTALL}/patch ${DIR_INSTALL}/${PATCH_INSTALL_FILE} 

### Apply the patch 
cd ${DIR_INSTALL}/patch/* 
opatch apply -jre ${JAVA_HOME} 

### 1) Write "Y" - Is the local system ready for patching? [y|n] y 

### Clean Data 
cd ${DIR_INSTALL} ; rm -rf ${DIR_INSTALL}/patch

Install Repository Creation Utility (RCU)

The Repository Creation Utility (RCU) is the great change that has occurred in this new version. Although RCU isn’t new, but this moment it’s request for use in conjunction within our environment

#######################################
### Install Repository Creation Utility - RCU
#######################################

### Do it as WLS user

export DIR_INSTALL=<Directory where the files are available>
export ORACLE_BASE=<Directory where Weblogic Server has installed>
export ORACLE_HOME=$ORACLE_BASE/oracle_common

export DIR_JAVA=<Directory where JAVA has installed>
export JAVA_HOME=${DIR_JAVA}/jdk1.7.0_67
export JRE_HOME=${DIR_JAVA}/jre1.7.0_67

$ORACLE_HOME/bin/rcu
###
### Step by Step of Installation
###

### 1) Welcome
### 2) Creation Repository
### --- Tick "System Load and Product Load"
### 3) Database Connection Details
### --- Set database information:
### ------ Service Name: need to be "Pluggable Database Name"
### ------ Username: "SYS"
### ------ Role: "SYSDBA"
### 4) Select Components
### --- Create new prefix: "DEV"
### 5) Database Configuration Type
### --- Enter de RCU information
### 6) Maps Tablespaces
### 7) Summary
### 8) Completion Summary

Create and Access Weblogic Domain

After all the installation, now we can create the domain within the Weblogic Server.

#######################################
### Create and Access Weblogic Domain
#######################################

### Do it as WLS user

export ORACLE_HOME=<Directory where Weblogic Server has installed>
export ORACLE_MIDDLEWARE_HOME=$ORACLE_BASE
export OPATCH_HOME=$ORACLE_MIDDLEWARE_HOME/OPatch

export DIR_JAVA=<Directory where JAVA has installed>
export JAVA_HOME=${DIR_JAVA}/jdk1.7.0_67
export JRE_HOME=${DIR_JAVA}/jre1.7.0_67
export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"

export PATH=$PATH:$ORACLE_HOME:$ORACLE_HOME/bin:$JAVA_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$OPATCH_HOME

### Run Configuration script
$ORACLE_MIDDLEWARE_HOME/wlserver/common/bin/config.sh
###
### Step by Step of Installation
###

### 1) Create Domain
### --- Tick "Create a new domain"
### --- Define "Domain Location"
### 2) Templates
### --- Tick "Oracle JRF 12.1.2.0 [oracle_common]"
### --- Tick "Weblogic Coherence Cluster Extension [oracle_common]"
### 3) Administrator Account
### 4) Domain Mode and JDK
### --- Tick "Development"
### --- Tick "JDK" correct
### 5) Database Configuration Type
### --- Enter de RCU information
### --- DBMS/Service as "Pluggable Database Name"
### 6) Component Datasources
### --- Tick all "Component Schema"
### 7) JDBC Test
### 8) Advanced Configuration
### --- Tick "Administration Server"
### --- Tick "Managed Servers, Clusters and Coherence"
### 9) Administration Server
### --- Define information of Admin Server
### 10) Managed Servers
### --- Add and configure Server Name
### 11) Clusters
### --- Doing nothing!
### 12) Coherence Clusters
### --- Doing nothing!
### 13) Machines
### --- Add and configure Machine or Unix Machine
### 14) Assign Servers to Machines
### --- Move all servers to right side, below the machine
### 15) Configuration Summary
### 16) Configuration Progress
### 17) End of Configuration
###
### Post-install steps
###

### Start the Node Manager of Server
export NAME_DOMAIN=<Name of Weblogic Domain>
export ORACLE_MIDDLEWARE_HOME=<Directory where Weblogic Server has installed>
export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
nohup $ORACLE_MIDDLEWARE_HOME/user_projects/domains/$NAME_DOMAIN/bin/startNodeManager.sh &

### Start Weblogic Server
export NAME_DOMAIN=<Name of Weblogic Domain>
export ORACLE_MIDDLEWARE_HOME=<Directory where Weblogic Server has installed>
export JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom"
nohup $ORACLE_MIDDLEWARE_HOME/user_projects/domains/$NAME_DOMAIN/startWebLogic.sh &

### Now you can access Weblogic Server:
### http://<Name of server>:<AdminServer port>/console

### After connecting in Weblogic Console, start all server and check if everything is OK

After completing the installation of environment, we can install Fusion Client 14.1, follow the steps in How to install Fusion Client 14.1

References

[1] Oracle Base – Weblogic installation on Oracle
[2] Oracle RPAS – Installation Guide

One thought on “Environment to RPAS Server 14.1

  1. Pingback: RPAS Consulting | How to install Fusion Client 14.1

Leave a Reply

Your email address will not be published. Required fields are marked *