Followers

Saturday, December 24, 2016

Setting up a XI52 Datapower appliance

Configure the Datapower appliance

when COM port connected we will connected to Datapower appliance and first time it will ask us password.By default password is admin, later we can change to our own password.


login: admin
password: admin


Enter Disaster Recovery mode [yes/no]: no
Enter Common Criteria Compatibility mode? [yes/no]: no
Please enter new password: provide-password
Do you want to run the Install Wizard? [y:n]: y

Step 1 – Do you want to configure network interfaces? [y]: y
Do you have this information? [y]: y
Do you want to configure the eth0 interface? [y]: y
Do you want to enable DHCP? [y]: n
Enter the IP address  for interface in CIDR notation: 192.168.11.19/24
Note:
whichever is appropriate for your network, check ip address for your machine]
for home network /24 would be ideal network address.
Enter the IP Address for default IPv4 gateway []: 192.168.11.19
Note: Provide same address as earlier.

Enter n for question to configure eth1, eth2 and eh3 interfaces.

Step 2:
Do you want to configure network services? [y]: y
Do you want to configure DNS? [y]: n
Step 3:
Do you want to define unique system identifier for the appliance? [y] :
Note: Give any appropriate unique system identifier

Step 4:
Do you want to configure remote management access? [y]: y
These configuration require the IP address of the local interface that manage the appliance.
Do you have this information? [y]: y
Do you want to enable SSH? [y]: y
Enter the local IP address [0 for all] : 192.168.11.19
Note: Provide same IP as provided earlier.

Enter the port number [22]:
Note: Just enter to accept default
Do you want to enable WebGUI access [y]: y

Enter the local IP address [0 for all] : 192.168.11.19
Note: Provide same IP as provided earlier.

Enter the port number [9090]:
Note: Just enter to accept default

Step 5: Do you want to configure a user account that can reset passwords [y]: y
Note: This is optional, but you can provide userid and password ( keep note of this detail)

Step 6: Do you want to configure the hard disk array? [y]: y

Do you want to continue? [y]:
Enter name for the file system [ondisk]: dparray
Note: Provide any appropriate name

Step 7 – Do you want to review the current configuration? [y]:
Do you want to save current configuration? [y]: y
Overwrite previously saved configuration? [y/n]: y




DataPower Domain Creation

1) Login into DataPower console 
















2) Search for Application Domain and Click on the highlighted Object

















3) Click on Add button 















5) Provide the required information as per the below screenshot.



















6) Click on Apply and Save Config

Sunday, August 21, 2016

Weblogic 12c installation script

This script we can use to Install WLS Infra for 12c FMW versions.

 silent_install_WLS.rsp

[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=/home/soa/srinfo01/Oracle/Middleware/Oracle_Home


#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=

oraInst.loc

inventory_loc=/home/soa/srinfo01/app/oraInventory

inst_group=soa

installWLS.sh

#!/bin/sh


# Install WLS Infra

export JAVA_HOME=/home/soa/srinfo01/Oracle/Java/jdk1.8.0_71
export FMWJAR_HOME=/home/soa/srinfo01/app/softwares/FMW
export RESPONSEFILE_HOME=/home/soa/srinfo01/app/ResponseFiles
export INVENTORY_HOME=/home/soa/srinfo01/app/oraInventory


$JAVA_HOME/bin/java -jar $FMWJAR_HOME/fmw_12.2.1.1.0_wls.jar  -silent -responseFile $RESPONSEFILE_HOME/silent_install_WLS.rsp -invPtrLoc $INVENTORY_HOME/oraInst.loc


Weblogic 12.2.1.1 Install

Steps to install weblogic 12.2.1.1

step1: Create oraInst.loc

oraInst.loc
inst_group=soa
inventory_loc=/apps



step2 : Create .rsp file, Update the ORALCE_HOME Variable


WLS1221ResponseFile.rsp


#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=/apps/Oracle/1221/oracle_home
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=Complete with Examples

#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=
 

Step3:Run the below command

 java -Djava.io.tmpdir=/apps -jar /apps/fmw_12.2.1.1.0_wls.jar -silent -invPtrLoc /apps/oraInst.loc -responseFile /apps/WLS1221ResponseFile.rsp -logLevel severe -debug
 

o/p 






Wednesday, July 13, 2016

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

When we found java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment issue we have to specify.

-Djava.awt.headless=true in the setDomainEnv.sh and restart the servers.

Thursday, June 9, 2016

Implement the weblogic proxy plugin for the Apache web server.


Copy the mod_wl_20.so  to <APACHE_HOME>\modules. 

Modify the httpd.conf file located in <APACHE_HOME>\conf

LoadMoadule:

to load mod_wl_20.so and add the module specific configuration.


Cluster Configuration:

<IfModule mod_weblogic.c>

    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007

    MatchExpression /*

</IfModule>

<Location /weblogic>

    SetHandler weblogic-handler

    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007

    DebugConfigInfo ON

    PathTrim /weblogic

</Location>

Tuesday, June 7, 2016

No more weblogic.Admin utility in 12.2.1

weblogic.Admin

The weblogic.Admin utility has been removed from Oracle WebLogic Server 12.2.1.

Saturday, June 4, 2016

Apache http server Installation



Apache is one of the most popular web servers, and part of its charm is that it's free. It also has a lot of features that make it very extensible and useful for many different types of websites. It is a server that is used for everything from personal web pages to enterprise level sites.

This article will discuss how to install Apache on a Linux system.


Download Apache

ex: httpd-2.0.55.tar

setp1:

gunzip -d httpd-2_0_NN.tar.gz
tar xvf httpd-2_0_NN.tar







This creates a new directory under the current directory with the source files.
Configuring Your Server for Apache

Once you've got the files, you need to tell your machine where to find everything by configuring the source files. The easiest way is to accept all the defaults and just type:

setp2:

./configure --prefix=/home/soa/apache/apache2


   
To configure the source tree using all the default options, simply type ./configure. To change the default options, configure accepts a variety of variables and command line options.

The most important option is the location --prefix where Apache is to be installed later, because Apache has to be configured for this location to work correctly. More fine-tuned control of the location of files is possible with additional configure options.

As with any source installation, you'll then need to build the installation:

setp3:

make

make install

Customize Apache configuration

Assuming that there were no problems, you are ready to customize your Apache configuration. This really just amounts to editing the httpd.conf file. This file is located in the PREFIX/conf directory. I generally edit it with text editor.

vi PREFIX/conf/httpd.conf

setp4:

vi /home/soa/apache/apache2/bin/httpd.conf

by default we have 80 port.If we have custom port number we can change like below.





step5:

Navigate to apache_home/bin>

apache_home=/home/soa/apache/apache2

[soa@soa12c-12-1-3 bin]$ ./apachectl start



Open a web browser on the same machine and type http://192.168.0.21:8080/ in the address box. You should see a page similar to the one in the partial screen shot below. 




Thursday, June 2, 2016

Oracle 12c "Composite Lazy Loading"


In SOA 12c, Oracle has introduced a new feature known as 'Composite Lazy loading'. This is one of the nice features, in which any server initialization tasks such as loading components and resources like WSDLs and XSDs, are loaded later at first-request time when they are needed, which means that server will only create in-memory java models and MBeans. It improves server startup time when there is a large number of composites deployed on it.

Details:
Composite Lazy Loading can be configured at two levels

1) Domain 


2) Component Level



Lazy Loading at Domain Level:
This setting can be disabled/enabled from System MBean Browser in FMW EM console. Follow below steps:
1. Login to EM Console, right-click on the domain you want to tune and select System MBean Browser from the drop-down menu




2. In the System MBean Browser folder structure, navigate through: Application Defined MBeans --  oracle.as.soainfra.config -- Server: ServerName -- SoaInfraConfig -- soa-infra



3. When you click on soa-infra, its attributes will be listed in on the right. Look for the CompositeLazyLoading attribute and click on it. You can set the value to true to enable it or
false to disable it


4. Click Apply and restart the server for changes to take effect.