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

Fix ‘The application “SQLDeveloper.app” can’t be opened.’

If you just installed SQL Developer on a Mac, but you’re getting an error when trying to launch it, try the steps below to fix it.

The error reads “The application “SQLDeveloper.app” can’t be opened because Apple cannot check it for malicious software“. It also mentions that “This software needs to be updated. Contact the developer for more information“.

Below are the steps I used to overcome this issue, and launch SQL Developer.

Continue reading

How to Delete MongoDB Documents by Importing a File

As of mongoimport version 100.0.0, you can delete documents in MongoDB based on an imported file. To do this, use delete mode.

When you use delete mode, if an imported document has the same _id value as an existing one in the collection that you’re importing into, the existing document will be deleted.

You can also specify another field or fields (other than the _id field) to be the matching field if required.

Continue reading