Dear readers of our blog, we'd like to recommend you to visit the main page of our website, where you can learn about our product SQLS*Plus and its advantages.
 
SQLS*Plus - best SQL Server command line reporting and automation tool! SQLS*Plus is several orders of magnitude better than SQL Server sqlcmd and osql command line tools.
 

REQUEST COMPLIMENTARY SQLS*PLUS LICENCE

Enteros UpBeat offers a patented database performance management SaaS platform. It proactively identifies root causes of complex revenue-impacting database performance issues across a growing number of RDBMS, NoSQL, and deep/machine learning database platforms. We support Oracle, SQL Server, IBM DB2, MongoDB, Casandra, MySQL, Amazon Aurora, and other database systems.

Install and Configure SQL*Plus Instant Client on Windows

28 May 2020

INSTALL AND CONFIGURE SQL*PLUS INSTANT CLIENT ON WINDOWS

GUI tools like TOAD and SQL Developer are all fine, but those who have cut their teeth on SQL*Plus will not do without good old command-line interface. And so, a message like the one below makes one want to set things right immediately…

GUI tools like TOAD and SQL DeveloperHere’s a step-by-step guide for doing away with this error, by installing SQL*Plus Instant Client on Windows.

First things first: What is SQL*Plus Instant Client?

From the Oracle documentation:

SQL*Plus Instant Client is a standalone product with all the functionality of SQL*Plus command-line. It connects to existing remote Oracle databases, but does not include its own database. It is easy to install and uses significantly less disk space than the full Oracle Database Client installation required to use SQL*Plus command-line.

If all you want is a simple command-line interface to connect to remote Oracle databases, Instant Client meets your purpose well.

On to the installation…

1. Download the installers from OTN: Basic OCI + SQL*Plus

SQL*Plus Instant Client package needs OCI Instant Client as a pre-requisite. For things to work, the two must be (i) of the same version, and (ii) installed in the same directory.

To download:

Go to OTN’s Instant Client Downloads for MS Windows.

Accept the license agreement.

Choose the packages you want to install – in this case:

  • Basic Light Package – Smaller version of the Basic OCI package, with only English error messages
  • SQL*Plus Package – The SQL*Plus command line tool for SQL and PL/SQL queries

Versions used: SQL*Plus 12.2.0.1.0, for a Windows 64-bit environment.

Versions used: SQL*Plus 12.2.0.1.0, for a Windows 64-bit environment

Click on the hyperlinks to start download – this will download the ZIP files to your local machine.

Click on the hyperlinks to start download

2. Extract the downloads

Extract both the ZIPs to the same local folder, say D:\Tools\sqlplus. A new subfolder (instantclient_12_2 in this case) will get created.

Extract the downloads

3. Edit the PATH variable to include the SQL*Plus Instant Client directory

Add the directory containing the Instant Client files to the PATH environment variable. Make sure this addition does not have a conflict with another existing Oracle path – if it does, either remove the existing value or move the new value to the front of the PATH variable.

Install and Configure SQL*Plus Instant Client

We now have the SQL*Plus Instant Client ready to connect to remote databases.

4. Connect to a Database with SQL*Plus Instant Client via Oracle Net connection identifier

To connect to a database, first open a command prompt window.

Enter the Easy Connection identifier to connect to the database. For example, the Easy Connection identifier for the HR schema in an XE database, running on host sales-server, port 1521 is:

sqlplus hr/your_password@\”//sales-server:1521/XE\”

Once entered, SQL*Plus Instant Client will establish the database connection and you will see the SQL prompt.

SQL*Plus Instant Client will establish the database connection

You can now run your SQL commands through SQL*Plus Instant Client’s easy command-line interface.

Other than Easy Connection identifiers, Net Service Names can be used for making database connections via Instant Client. Net Service Names may come from sources such as LDAP or a tnsnames.ora file. For more details on connection options, see the user’s guide and reference.

Notes:

Remember that the error in the first screenshot (‘sqlplus’ is not recognized as an internal or external command) could be because of a misconfigured PATH – see step 3. Before you proceed to install SQL*Plus, verify that SQL*Plus is actually absent!

 
Tags: ,

MORE NEWS

 

Preamble​​NoSql is not a replacement for SQL databases but is a valid alternative for many situations where standard SQL is not the best approach for...

Preamble​​MongoDB Conditional operators specify a condition to which the value of the document field shall correspond.Comparison Query Operators $eq...

5 Database management trends impacting database administrationIn the realm of database management systems, moreover half (52%) of your competitors feel...

The data type is defined as the type of data that any column or variable can store in MS SQL Server. What is the data type? When you create any table or...

Preamble​​MS SQL Server is a client-server architecture. MS SQL Server process starts with the client application sending a query.SQL Server accepts,...

First the basics: what is the master/slave?One database server (“master”) responds and can do anything. A lot of other database servers store copies of all...

Preamble​​Atom Hopper (based on Apache Abdera) for those who may not know is an open-source project sponsored by Rackspace. Today we will figure out how to...

Preamble​​MongoDB recently introduced its new aggregation structure. This structure provides a simpler solution for calculating aggregated values rather...

FlexibilityOne of the most advertised features of MongoDB is its flexibility.  Flexibility, however, is a double-edged sword. More flexibility means more...

Preamble​​SQLShell is a cross-platform command-line tool for SQL, similar to psql for PostgreSQL or MySQL command-line tool for MySQL.Why use it?If you...

Preamble​​Writing an application on top of the framework on top of the driver on top of the database is a bit like a game on the phone: you say “insert...

Preamble​​Oracle Coherence is a distributed cache that is functionally comparable with Memcached. In addition to the basic function of the API cache, it...

Preamble​​IBM pureXML, a proprietary XML database built on a relational mechanism (designed for puns) that offers both relational ( SQL / XML ) and...

  What is PostgreSQL array? In PostgreSQL we can define a column as an array of valid data types. The data type can be built-in, custom or enumerated....

Preamble​​If you are a Linux sysadmin or developer, there comes a time when you need to manage an Oracle database that can work in your environment.In this...

Preamble​​Starting with Microsoft SQL Server 2008, by default, the group of local administrators is no longer added to SQL Server administrators during the...