Loading...

Blog

A Journey of a Thousand Miles Begins with a Single Step

Parse user agent strings into structured data based on BrowserScope data with logstash

The Apache HTTP Server logs user agent strings. The user agent string contains information like family, operating system, version, and device. Logstash offers a filter plugin to parse this information.

Read more

Logrotate Java Application Logs

Running a professional Java EE application with JBoss EAP/Wildfly or any other application server involves a good housekeeping strategy for log files. Pay attention that most developers make the mistake to log information twice, hence in most scenarios the default texturation is kept. So the log information will be written into the console.log and server.log. Furthermore if you don’t use a files size rotator, the server.log will be rotated daily. The potential threat is, if you write the logs to separate SAN partition with limited disk space, you might crash the application, if he has no disk space left. To prevent this, one possibility is to use logrotate on Linux for the job.

Read more

Delete zero byte files

If you the situation, that a lot of zero byte files exists in your current directory a simple find command, helps you to get rid of it.

Read more

Disable auto formatting in vim

vim has the behaviour, if you paste a beginning line with comment, the following lines get also commented and indented. To disable this behaviour switch to the paste mode.

Read more

Change client session language in sqlplus

If you are working with Oracle you may experience unexpected behaviors considering your Oracle’s National Language Support (NLS). Some SQL statements to setup properly for your working session.

Read more

Create a new pluggable database in Oracle DB

Create (admin) user for new pdb. Set password expiration to none.

Read more

Drop pluggable databases in Oracle DB

Why use PDBs? In a multitenant environment, each customer has their own PDB which is isolated from other customers’ PDBs. A clean (domain) separation. This post covers how to get rid of one. A quick example how to drop PDBs (pluggable databases) in the multi-database architecture of Oracle DB (since v12c).

Read more

Create user in Oracle DB 12c

A new option for Oracle Database 12c, Oracle Multitenant delivers a new architecture that allows a multitenant container database (CDB) to hold many pluggable databases (PDB). An existing database can simply be adopted with no application changes required. Sadly some old sql scripts won’t work anymore. This post describes the basic changes.

Read more

Running a Heartbeat Service in RiskShield

RiskShield is a fraud detection and prevention software, which is highly configurable on the server components. I got the desire to provide a stateless service, that any monitoring solution can poll and check if the RiskShield server is still available. Following configuration was done on Version 4.34a. The configuration options are provided by the manufacturer the Inform Software and described in their manual. It is an easy and straightforward example to demonstrate the configuration capability e.g. RiskShield Decision Server.

Read more