13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Connecting the <strong>Data</strong><strong>Server</strong><br />

6–32<br />

Using the $UNIQUE_DSLOG environment variable<br />

You can use the $UNIQUE_DSLOG environment variable to isolate the log output of a given<br />

server instance and prevent the sharing of log files resources. When the $UNIQUE_DSLOG<br />

variable is set, the designated <strong>Data</strong><strong>Server</strong> log file name becomes a root name. Specifically, it<br />

becomes the prefix of a log file name that is followed by the process id of the running<br />

server process – which is then suffixed with the familiar .lg extension if the server name is<br />

dataserv. This feature can be disabled by unsetting the UNIQUELOG environment variable.<br />

With a unique name, the server executable can manage its own log file copy. However, the<br />

DSLOG-MANAGER system handle continues to disallow changes to the log file name or closing of<br />

the file at run-time. This restriction ensures that the <strong>Data</strong><strong>Server</strong> always has an open log file to<br />

which it can write in<strong>for</strong>mation. The legacy qt_debug logging mechanism relies on this being<br />

the case.<br />

For in<strong>for</strong>mation on managing log settings, see the “Analyzing per<strong>for</strong>mance with the Enhanced<br />

Logger” section on page 6–18.<br />

To obtain access to the <strong>Data</strong><strong>Server</strong> log file using the host machine:<br />

1. Be<strong>for</strong>e starting up the broker process, set the DSLOGDIR environment variable to the name<br />

of the directory where you want to place the log file.<br />

If you set the environment variable, <strong>OpenEdge</strong> writes the in<strong>for</strong>mation to the dataserv.lg<br />

file. If <strong>OpenEdge</strong> cannot open this file or %DSLOGDIR% is unset, it writes the in<strong>for</strong>mation to<br />

the dataserv.lg file in the process’ current directory, and appends to it with each<br />

subsequent process that uses it.<br />

2. Open the dataserv.lg file to read the <strong>Data</strong><strong>Server</strong> log.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!