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.

Continue reading