Posts

Get SSL Certificates expiration dates using Simple Java Code

Image
I have been looking for neat solution to find out the expiration dates for WebLogic Server using SSL Certificates in a given Java KeyStore, The limitation with Unix and Python scripts would be that we will end up working with the string value that Java keytool Utility returns. After several trials to be more effective, I believe it is better to do this using Java Code. So below snippet would be of some help to those who are looking for similar thing. import java.io.FileInputStream; import java.security.KeyStore; import java.util.Enumeration; import java.io.IOException; import java.security.cert.X509Certificate; import java.security.*; import java.util.Date; import java.text.SimpleDateFormat; import java.util.*; public class sslcertsExpirydates_2 { public static void main(String[] argv) throws Exception { try { KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType()); keystore.load(new FileInputStream("/u01/app/oracle/product/fmw/wlserver/serve...

Installing Latest JDK for Oracle Fusion products

Image
Welcome to learning Fusion Middleware Administration. You need to know about your installation machine details first accordingly you can select the platform, architecture specific JDK. Download JDK1.8[latest version] Install JDK 1.8.0_65 tar.gz on Linux platforms cd [[where you wish to install Java]] tar -zxvf /vagrant_data/jdk-8u65-linux-x64.gz This will extract and also runs the libraries paths related to that architecture x86 or x64. Though there are many other options for JDK installations, This procedure is more generic you can do it any Linux OS -linux-x64.gz file end side. set the JAVA_HOME After installation of JDK you need to setup the the JAVA_HOME environment variable in the profile and relogin to the box. This relogin is required to reflect the JAVA_HOME value into the PATH. Add the following lines into your .bashrc or .bash_profile. export JAVA_HOME=/home/vagrant/jdk1.8.0_65 export PATH=$PATH:$JAVA_HOME/bin JDK rpm installation Go to the Oracle Technical Ne...

Creating the Oracle Traffic Director Domain using WLST

Image
This is a continuation of Oracle Fusion learnings, out the list OTD, In the previous post we had Oracle Traffic Director installation was discussed. In front end technologies of Oracle come with a great set of the stack after Oracle Fusion Middleware 12c, one of them is Oracle Traffic Director. Here in this post would like to discuss how we can automate the process of OTD domain creation. Oracle came up with this tool when the market is occupied with CISCO and BIGIP load balancer, which are expensive and when you take the whole stack then you will be get benefited in license cost. OTD main functionality is to  load balancing the HTTP requests can be handled with different balancing strategies such as : Active- Active Active-Passive Prerequisites for OTD Domain There must be at least two similar sites which can be routed with OHS or any proxy webservers. Each proxy or WebGate pointing to a WebLogic based domain it could be SOA domain as well. Example ohs1 pointing to SO...

Oracle Managed File Transfer [MFT] installation

Prerequisites The following software must be installed on the machine Certified JDK must be installed SOA 12c [in my experiment used 12.1.3.0.0] Download the Oracle MFT software from OTN or e-delivery.oracle.com fmw_12.1.3.0.0_mft.jar Installing MFT in silent mode Sample silent mode response file: mft_install.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=/u01/app/oracle/SOA12c Generally I do follow that define the environment variables such as JAVA_HOME, MW_HOME, ORACLE_HOME in the .bashrc or .bash_profile scripts, which makes life easy! Feature readings Create repository for MFT Extending SOA domain with MFT Clustered domain Validating the MFT working

Configuring Security store for Oracle IAM environment - IDM domain

Preparing for configuration of secure store export IAM_HOME=/u01/app/Middleware/Oracle_IDM1 Lets see the help for configuresecuritystore.py oracle_common/common/bin/wlst.sh IDM_HOME/common/tools/configuresecuritystore.py -h --help Prints usage message. -d --domaindir The directory of domain. -s --datasource The data source of security store configured in domain. It is optional, default value is "opss-DBDS". -f --farmname The security store farm name. It is optional, default value is the domain name. -t --servertype The policy store type, using "DB_ORACLE", "DB_DERBY", or "OID". It is optional, default value is "DB_ORACLE". -j --jpsroot The distinguished name of jpsroot. It is optional, default value is "cn=jpsroot". -m Option to control domain configuration and data migration. It...

Deinstalling Oracle DB 12c software

There are some situations that demands us to uninstall the installed software. same thing happen for me today I was trying to install the Oracle Database 12c in silent mode the logs tells that there is some prerequisites not matched. Hence the installation log retured with non zero value that is 6 . When should I need to Deinstall ? To re-install my target Oracle Database 12c software, I need to uninstall the existing installation. If you need to go for higher version of Database then take proper backup of your data then proceed for this deinstallation. Steps to Deinstall Oracle  To uninstall Oracle Database 12c: First navigate to the ORACLE_HOME  Then find deinstall directory that is containing the deinstall command script. Execute like shell script use ./deinstall without any parameters to procced to uninstall the Oracle Database - Keep observing the terminal where it shows all that is doing in background to remove the software.  Note that deinstall command automatic...

Oracle HTTP Server 12c starting component with Nodemanager

Image
Welcome back OHS 12c Using alternate Node managr port configuring the OHS 12 domain using the Configuration Wizard, there does not seem to be an option to specify a different Node manager port. It uses the default 5556, where it is already used by FMW Domain[SOA Domain or WebLogic Domain]. Following steps are used to modify and use alternative Nodemanager port in a standalone OHS domain. Open the nodemanager.properties, change the Node Manager port (default 5556) to a port that is currently not in use. change port here from 5556 to 5566 and then   Save this file.  Modify the OHS domain's config.xml.  This is a new step for 12c environments!  Node Manager properties for OHS Domain Navigate to as shown below: cd  $OHS_DOMAIN/config Edit the config.xml file Look for the following node-manager tag block localmachine localhost {AES}/TU+/JiP22JJzuRa7Rqpp1xQkgPTmQ4Sb/VvBHJWPhg= Change this code block it by adding lis...