Table of Contents

unixODBC - isql

About

An unixODBC client

Syntax

isql DSN [UID [PWD]] [options]

where Options:

Commands

Examples

Basic

isql -v WebDB MyID MyPWD
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+

Execute a query

With an extern file

isql WebDB MyID MyPWD -w < My.sql

Each line in My.sql must contain exactly 1 SQL command except for the last line which must be blank (unless -n option specified).

With a sql

Type the SQL in one line and after that the go statement.

select 1 from dummy
go
+------------+
| 1          |
+------------+
| 1          |
+------------+
SQLRowCount returns 1
1 rows fetched

Support

Verbose

isql -v WebDB MyID MyPWD
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect

ODBCINI and ODBCSYSINI variable

$ echo $ODBCINI
/u01/app/oracle/product/fmw/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup/odbc.ini