Index on Database Tables- Performance Benefits and Costs

Why Indexes?

Basic use of index is to find data in a table more quickly by speeding up the query searches. Consider an employees table with 1 million records. If I query the table to extract data for 1 employee based on emp_id, all the records are compared for the emp_id. This approach will be very time taking in real time when many queries are searching for records. Thus we should use indexes to speed up the searching process.

Continue reading
  2571 Hits
  0 Comments

CASE statement and expressions: usage in PL/SQL

CASE statement is used to select one out of many set of statements to execute.

Types of CASE statements:

Continue reading
  3357 Hits
  0 Comments

Installing RHEL 7.1 (Maipo) on Oracle VM VirtualBox

InstallingRHEL01
InstallingRHEL02
InstallingRHEL03
InstallingRHEL04
InstallingRHEL05
InstallingRHEL06
InstallingRHEL07
InstallingRHEL08
InstallingRHEL09
InstallingRHEL10
InstallingRHEL11
InstallingRHEL12

The purpose of the following guide will be to provide a simple step by step guide on how to install RedHat Enterprise Linux 7.1 over an Oracle VirtualBox VM.

You will need to meet the following pre requisites before you can folow this guide.

Continue reading
  10068 Hits
  0 Comments

Difference between DETETE, DROP and TRUNCATE Commands in SQL

I had some difficulty working with these 3 commands back when I was learning SQL particularly when deciding which one to use. SO, I've dedicated this blog to differentiating the three of them.

DELETE: used to remove rows selectively from a table. Delete is a DML command, so it will cause any delete triggers on the table to fire. You may need to explicitly commit after deleting from a table to make changes permanent.

Continue reading
  3344 Hits
  0 Comments

A Brief Description about INSTEAD OF Triggers

So folks, I’m not going to explain the trigger syntax here as its same for all types of triggers. I’ll start off with INSTEAD OF trigger straight away.

INSTEAD OF triggers hold a special functionality as they can be used to update views which are normally not updateable and perform insert, update, delete, merge operations on them.

Continue reading
  2683 Hits
  0 Comments

Module Overloading in Oracle PL/SQL

Introduction

Module overloading is a concept used across many programming languages mainly because it’s a very powerful feature which improves the usability of your software.

Continue reading
  3294 Hits
  0 Comments

Oracle SOA/BPM Suite 11.1.1.7 HA, EDG-based installation - Part I

Introduction

Installing and configuring most of the Oracle Fusion Middleware products in single instance is usually a very straightforward affair.

Continue reading
  5287 Hits
  0 Comments

When to use PL/SQL Autonomous Transactions?

Another cool and powerful feature that gives us the independence of carrying out a specific task as a separate transaction while inside the main transaction. The main transaction merely suspends for the duration the autonomous transaction runs.

It has great applications and uses while writing pl/sql code.

Continue reading
  3242 Hits
  0 Comments

DYNAMIC SQL - an introduction

What is the difference between dynamic sql and static sql?

Dynamic sql refers to statements that are constructed and executed at runtime. Whereas static sql statements are constructed when the pl/sql block containing the statement is compiled.

Continue reading
  2816 Hits
  0 Comments