Jul 292014
 
 Posted by on July 29, 2014 at 4:36 pm bash, Scripting Languages, Shell Scripting Tagged with: ,  No Responses »
Shell-Scripting

Many times as a system administrator you will be requiring the need to check few db details time to time or need to update,insert or simply execute a sql file automatically. For all these requirements a simple solution is to script the execution of sql files. here in this example we will see how to run sql files from a folder to oracle DB using bash shell script.

For this pre-requisites is sqlplus client shall already be installed on the machine and shall be available. you can just run below command to make sure sqlplus client is installed. “sqlplus /nolog”. Make sure your tns entry is setup correctly and you are able to login to the database with the username and password.

Having said that below are the script details:

In this script we have kept all the sql files in a folder i.e. /home/oracle/sqls
Continue reading “How to run sql files using bash script | Shell Scripting” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

Jul 272014
 
Shell-Scripting

If you are trying to learn bash scripting and want to learn arithmetic operations and arrays in bash then this example will be helpful to you.

Here we are using bash scripting to calculate average, minimum and maximum grade and its subsequent letter grade using bubble sorting. Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. If you are sorting the data in Ascending order, at the end of the first pass, the  “heaviest” element has move to bottom. In the second pass, the comparisons are made till the last but one position and now second largest element is placed at the last but one position. And so forth.
Continue reading “Calculating Average Minimum And Maximum Grade Using Bubble Sort | Shell Scripting” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

Jul 242014
 
 Posted by on July 24, 2014 at 3:14 am Application Servers, Java App Servers, Jboss/WildFly Tagged with: , ,  No Responses »
JBoss

A Picket Fence is a secure system of pickets joined together via some type of links. Basically, the Pickets by themselves do not offer any security. But when they are brought together by linking them, they provide the necessary security. This project is that link for other security systems or systems to bring together or join, to finally provide the necessary secure system. PicketLink is an umbrella project for security and identity management for Java Applications. PicketLink is an important project under the security offerings from JBoss.
Continue reading “PicketLink Federation Module with Wildfly” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

Jul 242014
 
 Posted by on July 24, 2014 at 3:07 am Application Servers, Java App Servers, Jboss/WildFly Tagged with: , ,  No Responses »
JBoss

PicketLink Identity Management is a fundamental module of PicketLink, with all other modules building on top of the IDM component to implement their extended features.

  • It provides API’s for managing the identities like users, groups and roles of your application and services.
  • Supports flexibility of partitioning of identity
  • Provides a code Identity Model API classes on which an applications identity classes are built to provide the application a robust security structure.

Continue reading “PicketLink Identity Management Fundamentals” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

Jul 212014
 
 Posted by on July 21, 2014 at 6:22 pm Application Servers, Java App Servers, Oracle/BEA WebLogic Tagged with: , ,  No Responses »
Oracle-Weblogic-Server

While doing load testing on application hosted in weblogic server with OHS as front end we saw after sometime of load test we use to see frequent “Failure of server Apache Bridge” errors from OHS when we checked in the ohs access logs we saw entries like below

127.0.0.1 – - [21/Jul/2014:08:08:16 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:08:48 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:09:20 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:09:52 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:10:24 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:10:56 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:11:28 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:12:00 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:12:32 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:13:04 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:13:36 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:14:08 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:14:40 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:15:12 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:15:44 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:16:16 -0500] “HEAD /index.html HTTP/1.1″ 503 -
127.0.0.1 – - [21/Jul/2014:08:16:48 -0500] “HEAD /index.html HTTP/1.1″ 503 -

 
Continue reading “Frequent Failure of server Apache Bridge Error in OHS | Weblogic” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

Jul 082014
 
 Posted by on July 8, 2014 at 7:07 pm FAQ, Java, JVM Tuning, Must Know, Performance Tagged with: , , ,  No Responses »
Must-Know

The highest level divisions of the JVM memory are the most well known areas, such as heap and non heap. The heap area is used to store the objects instantiated from the classes, which means when an object is created from the constructor of the class it is allocated in heap memory.

Heap memory

The heap memory is subdivided into three areas as follows:
The Eden generation: This area is also known as the new generation. It is the area of memory used to, as its name already states, create new objects, except very ones. This area is constantly swept by a type of GC, the GC minor, which eliminates the short-lived objects that are the majority of the objects created. To scale this particular area of the heap memory, it is necessary to use the -XX:NewSize and -XX:MaxNewSize parameters. Continue reading “Understanding Heap And Non Heap Memory In HotSpot JDK” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

Jul 082014
 
JBoss

WildFly has several configuration options and ways to deploy applications. For both administrators and developers, the CLI and management console offer several options. Here we have used the standalone mode of wildfly for the same. Here we will discuss about two types of deployment techniques

 

  1. Standalone mode
  2. Domain mode

 

Standalone mode:

Deploying Through CLI

Installation of applications using the CLI provides advantages of owning a single command-line interface that allows us to run installation scripts for specific scenarios. You can manage the status of the deployment of a single server or all servers that make up the domain.
Continue reading “Steps To Deploy WAR file to Jboss WildFly using CLI and Management Console” »

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!



Stats