gqlplus does not read login.sql, SQL*Plus does. SQL*Plus
looks for all SQL scripts, including login.sql, in the list
of directories in the environment variable SQLPATH. If
SQLPATH isn't set, then SQL*Plus looks in the current
directory. If you want your login.sql read from $HOME, set
$SQLPATH to the same thing as is found in $HOME before
starting SQL*Plus (perhaps in .profile or equivalent.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
OS: SunOS 5.8
Logged In: YES
user_id=24619
gqlplus does not read login.sql, SQL*Plus does. SQL*Plus
looks for all SQL scripts, including login.sql, in the list
of directories in the environment variable SQLPATH. If
SQLPATH isn't set, then SQL*Plus looks in the current
directory. If you want your login.sql read from $HOME, set
$SQLPATH to the same thing as is found in $HOME before
starting SQL*Plus (perhaps in .profile or equivalent.)