Oracle weblogic installation from console

the -silent mode is actually console installation without gui. Create 2 files 1 responseFile.properties [ENGINE] Response File Version=1.0.0.0.0 [GENERIC] ORACLE_HOME=/path-to-install-to INSTALL_TYPE=WebLogic Server MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= DECLINE_SECURITY_UPDATES=true SECURITY_UPDATES_VIA_MYORACLESUPPORT=false PROXY_HOST= PROXY_PORT= PROXY_USER= PROXY_PWD=<SECURE VALUE> COLLECTOR_SUPPORTHUB_URL= oraInst.loc inventory_loc=/inventory/ inst_group=users Run this command in shell java -jar fmw_12.2.1.1.0_wls.jar -silent -invPtrLoc /fullpath/oraInst.loc -responseFile /fullpath/responseFile.properties for windows java -jar fmw_12.2.1.1.0_wls.jar -silent -invPtrLoc c:\oracle\oraInst.loc -responseFile c:\oracle\responseFile.properties in responseFile.properties change ORACLE_HOME=c:\\some-path-to-install

July 1, 2016 · 1 min · Özkan Pakdil

different loops in two dimensional array

I was trying to solve hackerrank questions. it has been long time I write anything directly related to arrays. mostly coding after some point is db related and mostly used lists there. anyway here is how you can solve https://www.hackerrank.com/challenges/diagonal-difference this question in O(n square) and O(n). import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); final int n = stdin.nextInt(); long sum = 0; long sum1 = 0; long[][] matris = new long[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { matris[i][j] = stdin.nextLong(); } } for (int i = 0; i < n; i++) { // System.out.println(matris[i][i]); sum += matris[i][i]; } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (i + j == n - 1) { // System.out.println(matris[i][j]); sum1 += matris[i][j]; } } } for (int i = n - 1; i >= 0; i--) { System.out.println(matris[i][n - 1 - i]); } System.out.println(Math.abs(sum - sum1)); } }

February 11, 2016 · 1 min · Özkan Pakdil

How to use opatch in windows

Oracle has opatch utility for applying weblogic patches. you just need to unzip the patch package and run the command like this C:\Oracle\wls12.1.3\OPatch>opatch apply C:\Oracle\wls12.1.3\OPatch\utils\patches\20741228 Oracle Interim Patch Installer version 13.2.0.0.0 Copyright (c) 2014, Oracle Corporation. All rights reserved. Oracle Home : C:\Oracle\WLS121~1.3 Central Inventory : C:\Program Files\Oracle\Inventory from : n/a OPatch version : 13.2.0.0.0 OUI version : 13.2.0.0.0 Log file location : C:\Oracle\WLS121~1.3\cfgtoollogs\opatch\20741228_Feb_01_2016_10_10_23\appl OPatch detects the Middleware Home as "C:\Oracle\wls12.1.3" Feb 01, 2016 10:10:24 AM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl INFO: Install area Control created with access level 0 Applying interim patch '20741228' to OH 'C:\Oracle\WLS121~1.3' Verifying environment and performing prerequisite checks... All checks passed. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = 'C:\Oracle\WLS121~1.3') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files... Patching component oracle.javavm.jrf, 12.1.0.2.0... Verifying the update... Patch 20741228 successfully applied Log file location: C:\Oracle\WLS121~1.3\cfgtoollogs\opatch\20741228_Feb_01_2016_10_10_23\apply OPatch succeeded. for listing patches already applid in the system ...

February 2, 2016 · 2 min · Özkan Pakdil

How to find which process uses some port in windows

How to find which process uses some port in windows netstat -ano | find ":8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 26924 TCP [::]:8080 [::]:0 LISTENING 26924 At right column you can see the process ID.

January 9, 2016 · 1 min · Özkan Pakdil

jms jsp xa and non xa examples

sometime you may need to configure jms messaging queue and when you need that you will configure jndi too. writing a jsp to test them is a good idea. or you may just got find a huge ear project like 200mbs and you need to see if this jndi and jms still works there. you can use these jsps for those. in weblogic there is XA enabled jms. which uses JTA user-transactions. and in my case I needed to test both nonXA and XA enabled jmsses. ...

January 5, 2016 · 3 min · Özkan Pakdil