Posts

Showing posts from 2017

Oracle Database 12c Client installation in Silent Mode

Image
Namaste!! Welcome to 'My   OFMW   Experiments' blog! In this post, I would like to share my experiment that worked out for cooked recipes for those who are looking for silent mode installation of Oracle Client . where the applications need to use the connectivity to the Database and to execute SQL commands.   How to Download the Oracle Database 12c client? Most of the Oracle Utilities projects using the Oracle Client. Where Oracle database uses 12c then in the application software stack uses same version of Oracle Client. Choosing the right platform specific downloads is important. Which are available on OTN and also on e-delivery. Here I've worked on Oracle 12.1.0.2 database and client then again on Oracle 12.2.0.1 database and client combinations. Using VNC viewer we can install the software media but if you don't have that service available that alternative is silent mode installation. Make sure your OS have the unzip command for uncompressed. Now, unzip the do...

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...