How to Create a login.sql File for SQLcl

When using SQLcl (Oracle’s command line interface), you can create a login.sql file, and have it run each time you run SQLcl.

This allows you to have commands executed each time you run SQLcl. For example, you can specify your formatting preferences in the login.sql file, set up aliases, etc.

Here I show you how to create a login.sql file and how to make it run each time you run SQLcl.

Read more

ABS() Function in Oracle

In Oracle, the ABS() function returns the absolute value of its argument.

The absolute value is the non-negative value of a real number without regard to its sign. It describes the distance from zero that a number is on the number line, without considering direction.

Read more

How to Install Oracle on a Mac

Here’s a quick and easy way to install Oracle Database on a Mac.

First up, Oracle isn’t available natively on the Mac. But don’t let that stop you!

If you’re a developer, and you just want to have Oracle Database running on your local machine, there are ways to do it. In fact, Oracle provides us with a virtual appliance precisely for that purpose.

Read more