NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
Z-16
Considerations—=_SQL_EXE_USE_SWAPVOL
Considerations—=_SQL_EXE_USE_SWAPVOL
You can use the =_SQL_EXE_USE_SWAPVOL DEFINE to change the location of
temporary tables from serial plans that might require more space than available on
the volumes where the temporary tables would normally be located, causing file-
system error 122.
NonStop SQL/MP normally places temporary tables on the same volume as the
outermost table in a join. See Temporary Tables
on page T-3 for more information
about temporary table placement.
If ServerWare SMF is installed on your node and the swap volume is a virtual
volume, SQL places temporary tables on the virtual volume when you specify
=_SQL_EXE_USE_SWAPVOL.
=_SQL_EXE_USE_SWAPVOL has no effect on the location of temporary tables
for parallel plans or on the SYNCDEPTH of temporary tables, both of which can
also lead to error 122.
Another DEFINE, =_SQL_TM_node_vol, allows you to redirect temporary tables
from both serial or parallel plans from a specific volume to another specific volume
and also allows you to specify SYNCDEPTH 1 instead of SYNCDEPTH 0 for the
temporary tables. If both DEFINEs exist, =_SQL_TM_node_vol overrides the
effect of =_SQL_EXE_USE_SWAPVOL for temporary files on the specified system
and volume.
Note that the kernel-managed swap facility manages process swap files.
Examples—=_SQL_EXE_USE_SWAPVOL
The following TACL command directs SQL to allocate temporary tables for serial
plans on process swap volumes:
32> ADD DEFINE =_SQL_EXE_USE_SWAPVOL, FILE NOFILE
To direct SQL to resume allocating temporary tables at the normal location, delete
the DEFINE as shown:
34> DELETE DEFINE =_SQL_EXE_USE_SWAPVOL
=_SQL_MSG_node DEFINE
=_SQL_MSG_node is a system DEFINE that directs SQL to use an alternate message
file. It allows you to specify message files that provide SQL messages in languages
other than English.
node
is the name of the node running the SQL software that is to use the alternate
message file. Specify the node name without the leading backslash (\).
ADD DEFINE =_SQL_MSG_node, CLASS MAP, FILE msg-file