There are countless ways of understanding how long PostgreSQL has been turned on. In this article we will talk about 3 methods. 1)Using …
Read More »SQL Server Storage Concepts (Page, Extents, GAM, SGAM, PFS, IAM, BCM, DCM)
Page is the most basic unit of SQL Server on storage. Each page consists of 8 KB. The mdf or ndf files that allocate …
Read More »How to Catch Ctrl-C in Shell Script
To trap Ctrl-C in a shell script, we will need to use the trap shell builtin command. When a user sends a Ctrl-C interrupt …
Read More »How To Install PostgreSQL 9.6 on Debian 8.x (Jessie)
As you know, at the end of September 2016, PostgreSQL version 9.6 was released. In this article you will find the installation steps of …
Read More »Column Level Encryption With pgcrypto On PostgreSQL
Create Extension First, if the extension is not present, it is created with the following command. [crayon-6768409a65706125431690/] The functions we will use; [crayon-6768409a6570a068970460/] Example: We …
Read More »SQL Server Service Is Not Starting Due to Tempdb
SQL Server re-creates tempdb on predefined folders each time sql server service starts. In the article “How To Move The Tempdb Database To Another …
Read More »POSTGRESQL DATABASE MONITORING
In this article I will share some monitoring scripts about postgresql. To Check if the Postgresql service is running via OS(linux): [crayon-6768409a65b02740860588/] …
Read More »How To Delete an ASM Diskgroup
There are several methods to delete the disk group from an ASM. It is possible to do this operation with “Enterprise Manager”, asmca and …
Read More »Mysql Incremental Backup using Percona Xtrabackup
Previously i just shared the full backup script. Now we will take incremental backups using last_checkpoints. Basically, what this script will do is that …
Read More »Mysql Database Backup Using Percona Xtrabackup (Automated Bash Script)
Below is the simple script for taking non-blocking Mysql physical backup using percona xtrabackup toolkit. This backup is encrypted using AES256 algorithm. [crayon-6768409a6618f047749535/] –extra-lsndir: save …
Read More »