Linux Oracle Java Rotating Header Image

InnoDB ve MySQL Replikasyonu

MySQL’de replikasyon MyISAM tabloları için yapılabildiği gibi InnoDB tabloları için de yapılabilir. Aynı zamanda master sunucu ile slave sunucuda kullanılan veri motoru farklı olsa bile replikasyon gerçekleştirilebilir. Örneğin, InnoDB yapıdaki bir master sunucuda bulunan tabloda yapılan değişiklikleri MyISAM yapıya sahip slave sunucuya replike edebiliriz. Devamı →

When listener log file grows

When the listener.log file grows, it is getting harder to tail logs. The log file must be reopened. There is no need to close listener service to reset the log file. After setting the logging state off just rename the log file, then set the logging state on again. Just three commands and it is done. Devamı →

If OEM SSL certificate is expired

When i tried to start EM dbconsole got this “ERROR http: 14: Unable to initialize ssl connection with server, aborting connection attempt” in emagent.trc file. Then i realized that EM certificate is expired. You can check EM certificate state from any browser’s (IE, Mozilla etc.) security report. All you need is just “emctl secure dbconsole” command. Devamı →

Getting IP Address information in Java

Java.net class must be used in order to learn ip address of the computer. Simply cast all information of the network interfaces  to an enumeration, then pass the enumeration through a collection. Devamı →

Bash script ile günleri türkçeye çevirin

Bakmakla yükümlü olduğum linux sunucularda genellikle en çok yaptığım işlerden biri yedekleme scriptleri yazmaktır. Aldığım günlük yedeklerin isimlerini türkçe vermek için aşağıdaki bash scripti kullanıyorum. Sizin için de faydası olacaktır. Devamı →

Linux Commands in Java

You can use getRuntime method to run linux shell commands from java. Try this example to get memory statistics: Devamı →

Running java program as a linux service

Recently, I was wondering about how the programs are running as a service in Linux. After a little googling,  i learned it is very simple. All we have to do is just write a script that starts, stops and restarts the program and register this script as a Linux service. Let me tell the scenario; Devamı →

sed aracı ile bul ve değiştir

Metin editörlerinde bul ve değiştir fonksiyonu her zaman işimize yaramıştır. Metnin içerisinde birçok yerde geçen ve değiştirmemiz gereken sabit bir string olduğunda aynı değişikliği tek tek yapmak zorunda kalmak bazen işkenceye dönüşebilir. Linux içerisinde bu işi yapmamızı sağlayan kullanışlı bir editör var. sed kullanarak metnin içerisine girip işlemleri oradan yapamadığımız için editör demek tam olarak doğru değil. sed sadece metnin dışından find&replace yapmamızı sağlayan bir araç. Devamı →

Extending a logical volume at LVM

Suppose that we have a volume group named VG-TEST and It contains a logical volume named LV-TEST. After adding new physical disk /dev/sdx , we want to give additional 100G space to the LV-TEST logical volume. Following procedure is applied to the server. Devamı →