Oracle: Show Databases – SQL*Plus

Oracle has no databases but schemas and users (that are essentially the same thing).

The schema/user in Oracle can be considered as an equivalent to a “database” concept in MySQL, PostgreSQL or MS SQL.

In this note i will show how to list all Oracle “databases” (equivalent to SHOW DATABASES command in MySQL), get the current schema name and how to switch to a different schemas using the command-line interface of SQL*Plus. (more…)

PowerShell Commands History File Location

The Get-History command in PowerShell lists only the commands entered during the current session, unlike the history command in Linux or MacOS, that returns the full commands history across all sessions.

To get the history of all the previously executed commands in PowerShell it is required to locate the file where these commands are stored.

In this note I’ll show how to locate the history file and get the history of all the previously executed commands in PowerShell. (more…)

Git: Create Tag & Push Tag to Remote

Tags in Git are used to label specific commits (to mark releases, for example).

In this note i will show how to create a Git tag and push it remote repository using the git tag and git push commands.

I will also show how to find out the most recent tag name and how many commits ago it has been created. (more…)

Keytool: Import Certificate – Java Certs

If you use a self-signed SSL certificate or a certificate that has been issued by unknown CA (certificate authority), Java client will raise an exception:

SunCertPathBuilderException: unable to find valid certification path to requested target

To resolve this issue the self-signed certificate or the CA certificate should be imported into Java keystore using a keytool command.

In this note i will show how to import a certificate into Java keystore using the keytool command in a non-interactive way.

I will also show an example of how to import a CA certificate into Java keystore cacerts. (more…)