Monday May 30, 2016

Steps to create partitions in WLS 12.2.1

Below are the steps to create partitions in Weblogic Server 12.2.1 :

Step 1 :

- Create a weblogic domain (say Partition_From_Windows_Domain)

FMW control is the recommended console for Partition management, so it is good to enable it at the time of  domain creation.  

To enable FMW control select "Oracle Enterprise Manager-Restricted JRF - 12.2.1 [em]" template in the configuration wizard, as shown below :

To access FMW control access : http://<host>:<port>/em

NOTE : We will continue using Weblogic Admin console to create partitions in this example.

Partition names : coke-partition and pepsi-partition

Partition specific realms : coke_realm and pepsi_realm

Partition specific Admin Users : coke_admin and pepsi_admin

Virtual Targets for these partitions : coke-vt and pepsi-vt

Partition Specific Resource Groups : coke-rg1 and pepsi-rg1

Step 2 :

Before creating a partition, you need to create a security realm (then create an Admin user inside this realm, say coke_admin and pepsi_admin) and virtual target for this partition :

To create a new security realm :

Login to console -> Security Realms -> new (say 'coke_realm' and 'pepsi_realm') -> "create default providers within this new realm" (check)

Now create a Virtual target :

Login to console -> + Environment -> Virtual Targets -> new (say coke-vt) and target it to Weblogic Server (say Admin Server) -> specify a URI Prefix

Step 3 :

Lets create a partition now :

Login to console -> Domain Partitions -> new (say coke-partition)-> then target it to a Virtual target (say coke-vt) -> select the security realm for this partition from the drop down menu (say coke_realm)

 Step 4 :

Create a Resource Group inside domain partition

 Step 5 : 

Check the Identity Domains of the partitions :

Step 6 :

You can now deploy applications to Global scope / to a resource group of a partition

To access the application deployed to your partition use the following URL :

http://<host>:<port>/coke/Weblogic_SP_sample_App/login.jsp  ==> Try to login with the coke Admin and also test the login using weblogic user.

Perform similar tests with application deployed on pepsi-partition and global scoped deployment.

Friday Feb 05, 2016

How to store database credentials in Oracle Wallet (for WLS datasource definitions)

Oracle Wallet provides an simple and easy method to manage database credentials across multiple domains. It allows you to update database credentials by updating the Wallet instead of having to change individual data source definitions.

This is accomplished by using a database connection string in the data source definition that is resolved by an entry in the wallet.

The wallet can be used to have common credentials between different domains. That includes two different WebLogic Server domains or sharing credentials between WebLogic Server and the database. When used correctly, it makes having passwords in the data source configuration unnecessary.

In this post we will see, how to create a datasource which uses the database credentials stored in a wallet to connect to a database.....

[Read More]

Sunday Nov 15, 2015

Steps to modify analytics application ( OBIEE to work with SSO

In this post we will see how to modify the analaytics application (OBIEE to work with Single Sign-On (Kerberos / SAML etc.).....!!

[Read More]

Tuesday Aug 18, 2015

Steps to create a self-signed certificate using OpenSSL

OpenSSL tool can be used to create a certificate / keystore.

You can download the latest version from the link below :

Before running OpenSSL make sure you set the following :

export OPENSSL_CONF=/tmp/package-root/usr/local/ssl/openssl.cnf

 If you want to install OpenSSL with a non-root user :

- $ ./config

- $ make

- $ make test

- $ make INSTALL_PREFIX=/tmp/package-root install

In this post we will see how to create a self-signed certificate/keystore using OpenSSL. 

[Read More]

Saturday Aug 24, 2013

Steps to create a self-signed certificate and configure Custom Identity and Custom Trust with Weblogic Server using Keytool...

 What are self signed certificates and how to create them ?

A self-signed certificate is an identity certificate that is signed by the same entity whose identity it certifies.

 This term has nothing to do with the identity of the person or organization that actually performed the signing procedure. In technical terms a self-signed certificate is one signed with its own private key.
 Note :
 Identity keystores must contain a private key entry
 Trust store must contain all trusted key entries
 Below are few default values when using keytool command on JDK 1.6 :
 -alias "mykey"
    "DSA" (when using -genkeypair)
    "DES" (when using -genseckey)
    1024 (when using -genkeypair)
    56 (when using -genseckey and -keyalg is "DES")
    168 (when using -genseckey and -keyalg is "DESede")
-validity 90

Note :

-genkey is used in the example here. This was an old name used in previous releases. This old name is still supported in this release and will be supported in future releases, but for clarify the new name, -genkeypair, is preferred going forward.

Changes in keytool in Java 1.6 :

keytool no longer displays password input when entered by users. Since password input can no longer be viewed when entered, users will be prompted to re-enter passwords any time a password is being set or changed (for example, when setting the initial keystore password, or when changing a key password).

Some commands have simply been renamed, and other commands deemed obsolete are no longer listed in this document. All previous commands (both renamed and obsolete) are still supported in this release and will continue to be supported in future releases. The following summarizes all of the changes made to the keytool command interface:

Renamed commands:

-export, renamed to -exportcert
-genkey, renamed to -genkeypair
-import, renamed to -importcert
Commands deemed obsolete and no longer documented:



In this post we will see how to create self-signed cretificates and configure it Weblogic Server 10.3.6 ( CustomIdentityandCustomTrust ).

[Read More]

Saturday Aug 17, 2013

Steps to DeInstall Oracle Weblogic Server

How to DeInstall Oracle Weblogic Server ? 

- Oracle Weblogic Server 12.1.2 can be Deinstalled in two ways :

* GUI mode

* Silent Mode 

- For GUI mode go to " ORACLE_HOME\oui\bin " directory and run deinstall script.

- For Silent mode use the following command :

Go to " ORACLE_HOME\oui\bin " directory

./ -silent -response <deinstaller_response_file> 

- The deinstaller does not remove the JDK or any user-created data such as WebLogic domains or custom application data. Only the components that were installed by the installation program are removed by the deinstaller. 

- Make sure you have stopped all the servers / processes running before starting the DeInstaller.

In this post we will see how to DeInstall Oracle Weblogic Server

[Read More]

Steps to create a new domain on Weblogic Server

Weblogic Server Domain Configuration Wizard - Points to remember :

- Adding " " in Unix/Linux decreases the amount of time it takes for the Configuration Wizard to create or update a domain.

- Quick Start Configuration Wizard can be used only to configure the various sample domains, such as MedRec and the Examples Server, in your WebLogic Server installation.

- You can start Quick Start Configuration Wizard in two ways :

1. Select the Automatically Launch Quick Start Configuration Wizard option on the Installation Complete screen of the WebLogic Server installer.

2. Run the config.cmd / script located in ORACLE_HOME/oracle_common/common/bin as follows : " config.cmd -target=config-oneclick " in windows and " -target=config-oneclick " in Linux.

- Prior to manually running the Configuration Wizard in Quick Start mode, you must set the CONFIG_JVM_ARGS environment variable to specify the full path and JAR file name for each template that you want to use for the domain.

- To set CONFIG_JVM_ARGS on a Windows system:

set CONFIG_JVM_ARGS="-DuserTemplates=C:/Oracle/Middleware/wlserver/common/


export CONFIG_JVM_ARGS="-DuserTemplates=/Oracle/Middleware/wlserver/common/

- Domain can be created using GUI mode or using WLST.

- There is silent mode installation only for WLS 12.1.2 installation and not for WLS 12.1.2 domain creation.

- Nodemanager can now be configured in domain configuration wizard.

In this post we will see how to create a new Weblogic Server domain using DomainConfigurationWizard.

[Read More]

Thursday Aug 15, 2013

Steps to install Oracle Weblogic Server

What's new in Weblogic Server :

- JDK is no longer bundled with Weblogic Server Installers

- There are two types of installers :

1. generic installers
2. zip distribution ( intended for development use only ) Remember - this is not patchable..!!

- New GUI ( Graphical User Interface )

- No console mode installation for weblogic.

- SmartUpdate / bsu is deprecated. We need to use OPatch to install patches from now on.

 - Nodemanager can now be configured at domain level / host(machine) level.

- You can install Weblogic Server in silent mode, but there is no option to create a domain using silent mode.

- WLS installer GUI works fine in Unix environment when connected via VNC, however there are few issues seen when using other third party X-Windows clients. 

- Only 64bit machines are supported with WLS 12.1.2.

- WLS 12.1.2 is certified for use only with JDK 1.7

- Server Templates and Dynamic Clusters are introduced in this release. 

and many more..... 

In this post we will see how to install Weblogic Server 

[Read More]

Oracle Fussion Middleware - WebLogic


« July 2016