Setting The ISC_USER
And ISC_PASSWORD
Environment Variables
An environment variable is a named object that contains information used by one or more applications.They are global to their specific operating systems.The Firebird server recognises and uses certain environment variables configured in Windows, Linux and other Unix systems.
The ISC_USER
and ISC_PASSWORD
environment variables in Firebird allow you to login without having to explicitly specify a username and password in the commandline utilities and client applications.
Caution
|
When running commandline utilities like For security reasons, it is not advisable to specify the SYSDBA username and password using these two environment variables, especially on an insecure computer. |
The ISC_USER
and ISC_PASSWORD
environment variables may be set to start isql
locally.To set the environment variables:
-
In Windows, this is done in the Control Panel → System → Advanced → Environment Variables, or through Windows Explorer → right-click on This PC → Properties → Advanced System Settings → Environment Variables.Any changes made here will be permanent.You may also define these variables in a command window prior to running any of the Firebird utilities, such as
isql
.For example:C:\> set ISC_USER=sysdba C:\> set ISC_PASSWORD=secret C:\> isql my_employee SQL>
-
In Linux and Unix platforms, this depends on the type of shell being used and how the desktop is configured.Please refer to your operating system documentation to set environmental variables.For the bash shell, the following example shows the process:
$ export ISC_USER=sysdba $ export ISC_PASSWORD=secret $ /opt/firebird/bin/isql my_employee SQL>