I don't know whether it's possible to retrieve SQL_DBNAME using &$@~SQL_DBNAME, but if it isn't the following Oracle SQL may help.SELECT sys_context('USERENV','DB_NAME') FROM DUAL;
Other parameters for sys_context are listed at: http://www.techonthe...sys_context.php
Hope this helps.
SQL_DBNAME works for me, as does :
$BOOTS = &$@~PROPATH
$DATA = &$@~PRODATA
$DB = &$@~SQL_DBTYPE
$SQL_USER = &$@~SQL_USERNAME