cinqict

Friday, August 14, 2015

Coherence Warning on Oracle Weblogic 12c

 

The error

This was seen on a Oracle Weblogic 12.1.3 server on AIX

PreferredUnicastUdpSocket failed to set receive buffer size to 1444 packets (2MB); actual size is 42%, 609 packets (864KB). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.>

The fix

To fix this issue, configure your OS to allow for larger buffers.

On Linux execute (as root):

sysctl -w net.core.rmem_max=2096304
sysctl -w net.core.wmem_max=2096304

On AIX execute (as root):

no -op rfc1323=1
no -op sb_max=4194304
no -op udp_recvspace=4194304
no -op udp_sendspace=65536

(Note that AIX only supports specifying receive buffer sizes of 1MB, 4MB, and 8MB)

Wednesday, August 12, 2015

Oracle Weblogic 12.1.3 Infrastructure + Webtier 12.1.3 Install

 

Introduction

In Oracle Fusion Middleware 12c, things have changed, compared to 11g.

One of the differences is the Weblogic Server installation. In 11g you could extend your already existing, plain Weblogic Domain with FMW Products like Webtier 11g. In 12c this has changed a bit. There is the Weblogic Server 12.1 Server which you can use for java EE deployments. But there is also a FusionMiddeware Inftastructure installer, which should be used as a base for other Fusion Middleware components like SOA, OSB, Webtier etc.

You should think about this, when designing a Fusion Middleware environment. When installing the ‘plain’ Weblogic Server, you are not able to extend this with, let’s say, Webtier 12c. When installing, Webtier won’t take the Weblogic12 as a valid Oracle Home directory!

So, with that in mind, we are going to install the Fusion Middleware Infrastructure 12.1 3 and, on top of that, the Oracle Webtier 12.1.3.

Ingredients

The software used in this example:

  • A Oracle jdk 1.7 installed at /w001/app/jdk
  • fmw_12.1.3.0.0_infrastructure.zip (FusionMiddleware Infrastructure, Generic)
  • fmw_12.1.3.0.0_ohs_linux64_Disk1_1of1.zip (Webtier, specific for Linux 64)
  • Oracle Linux 6, 64 bits
  • Oracle Database 12c

Installing the Fusion Middleware Infrastructure 12.1.3

Unzip the fmw_12.1.3.0.0_infrastructure.zip file. This will unpack a file called fmw_12.1.3.0.0_infrastructure_Disk1_1of1.jar

Run the following command to open the installer

$JAVA_HOME/bin/java –jar fmw_12.1.3.0.0_infrastructure_Disk1_1of1.jar

This will open the inventory setup screen, in which you have to provide a valid directory for the oraInventory

Screenshot_8

Next, the Welcome screen appears. Press Next to continue

Screenshot_1

Enter a valid Oracle Home directory. In 11g, this was called a Middleware Home

Screenshot_2

Select Fusion Middleware Infrastructure in the next screen and press Next

Screenshot_3

OS and Java checks are run

Screenshot_4

A summary screen appears. Press Install to begin the installation.

Screenshot_5

If all goes well, press Next if the installation completes

Screenshot_6

And finally press Finish

Screenshot_7

That’s all for the installation. Next step is the installation of the Oracle Webtier.

Installing the Oracle Webtier 12.1.3

We are now going to install the Webtier component onto the Infrastructure

Unzip the fmw_12.1.3.0.0_ohs_linux64_Disk1_1of1.zip file, which will unpack a single file called fmw_12.1.3.0.0_ohs_linux64.bin

This file is the actual installer which can be directly run. Make sure the file has execute rights, though.

./fmw_12.1.3.0.0_ohs_linux64.bin

The Inventory setup screen appears. Enter a valid inventory directory and press OK

Screenshot_8

Press Next in the Welcome screen to begin the installation

Screenshot_9

Select the Oracle Home which we created during the Infrastructure installation

Screenshot_10

Select Collocated HTTP PServer in the next screen. We want to be able to manage the OHS server through weblogic

Screenshot_11

Some checks are done. Make sure all are successful and press Next.

Screenshot_12

A summary is shown. Press Install to begin the installation

Screenshot_13

Watch the installation progress and press Next.

Screenshot_14

Press Finish to end the installation.

Screenshot_15

RCU

The Fusion Middleware Infrastructure needs a few database schema’s to run. These can be crreated with the RCU utility, which is included in the Oracle Home

Run the following command to open RCU

$ORACLE_HOME/oracle_common/bin/rcu

Press Next in the Welcome Screen

Screenshot_17

Select Create Repository > System Load and Product Load

Screenshot_18

Enter the data to connect to your database

Screenshot_19

Select all AS Common Schemas and provide a prefix. This will prepend the schema owners.

Screenshot_20

Prerequisites are checked.

Screenshot_21

Provide a password for the schemas, or specifiy different passwords for each schema.

Screenshot_22

Accept the default tablespaces and press Next.

Screenshot_23

Tablespaces are created. Press OK to continue

Screenshot_24

Press Create in the next screen to actually create the schemas.

Screenshot_25

If all is successful, press Close in the last screen.

Screenshot_26

 

We are now ready to create a domain!

Creating the Domain

 

Screenshot_27

Screenshot_28

Screenshot_29

Screenshot_30

Screenshot_31

Screenshot_32

Screenshot_33

Screenshot_34

Screenshot_35

Screenshot_36

Screenshot_37

Screenshot_38

Screenshot_39

Screenshot_40

Screenshot_41

Screenshot_42

Screenshot_43

Screenshot_44

Screenshot_45

Screenshot_46

Screenshot_47

Screenshot_48

Screenshot_49

Monday, August 10, 2015

Basic Weblogic Installation 12.1.3 silent mode

In this article we are going to install (not configure) a basic installation of the Oracle Weblogic 12.1.3 server.

The software can be downloaded from oracle.com and is the generic installer file called fmw_12.1.3.0.0_wls.jar

We are using an Oracle Linux 6 server with a java 7 jdk running in /w001/app/jdk

Create a oraInst.loc file

vi /w001/app/oraInst.loc

with the following content:

inventory_loc=/w001/app/oraInventory
inst_group=oraoas

Run the following command to start the silent installer:

java -jar fmw_12.1.3.0.0_wls.jar -invPtrLoc /w001/app/oraInst.loc -silent -responseFile /w001/software/oracle_fusion/weblogic/generic/wl1213_responsefile

In this command, the invPrtLoc points to the created oraInst.loc file.

Make sure you use the full path to the response file in the responseFile option, otherwise it will not find the responsefile.

The output will show something like this

Reading response file..
Starting check : CertifiedVersions
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11
Actual Result: enterprise-6
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.7.0_51
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Validations are enabled for this session.
Verifying data......
Copying Files...
You can find the log of this install session at:
/tmp/OraInstall2015-08-10_05-13-44PM/install2015-08-10_05-13-44PM.log
-----------20%----------40%----------60%----------80%--------100%

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.1.3.0.0 completed successfully.
Logs successfully copied to /w001/app/oraInventory/logs.

The response file that was used in this example is listed below and installs the same Oracle Home as the gui installation which found elsewhere on this blog

 

[ENGINE]

#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0

[GENERIC]

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/w001/app/mwhome_01

#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server

#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=

#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>

#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#Provide the Proxy Host
PROXY_HOST=

#Provide the Proxy Port
PROXY_PORT=

#Provide the Proxy Username
PROXY_USER=

#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>

#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=

Basic Weblogic Installation 12.1.3 gui mode

In this article we are going to install (not configure) a basic installation of the Oracle Weblogic 12.1.3 server.

The software can be downloaded from oracle.com and is the generic installer file called fmw_12.1.3.0.0_wls.jar

We are using an Oracle Linux 6 server with a java 7 jdk running in /w001/app/jdk

Run the following command to start the installer:

/w001/app/jdk/bin/java –jar /path/to/fmw_12.1.3.0.0_wls.jar

This will open the Installation Inventory Setup screen

Enter /w001/app/oraInventory as the Inventory Directory

Selection_001

Press Ok

The Welcome screen appears

Selection_002

Click Next to continue

In the next screen, you have to enter the Oracle Home direcory. This is different from earlier 11g Weblogic versions, where this directory was called the Middleware Home direcory.

Enter /w001/app/mwhome_01 as the Oracle Home directory. Make sure not to use any version numbers for this directory. This server might be installed a very long time and with upgrades, the actual version might change. That will prevent confusion if you have a Oracle Home directory called mwhome1213, by the time you are running 14.6.2.5 or something…

Selection_003

 

In the next screen, select Weblogic Server and press Next.

Make sure NOT to select Complete with Examples in production environments! This will install example software wich might be unsafe!

Selection_004

In the next screen, some tests for java and os certification are run

Selection_005

In the next screen, you can submit your mail address if you want to receive security updates. Deselect this option for this example installation.

Selection_006

An Installation Summary is shown. Press Install to begin the actual installation

Selection_007

If all goes well, the installation finished without any errors. Press Finish.

Selection_008

Now, deselect the option to Launch the Configuration Wizard and press Finish.

Selection_009

The screen will close.

You now have the Oracle Weblogic 12.1.3 server software installed and created an Oracle Home directory in /w001/app/mwhome_01

From this Oracle Home you can configure one or more Weblogic Domains. This will be described in a separate article on this blog.