On Unix, you can redirect database server messages to a file that is available to the system administrators.
Prerequisites
There are no prerequisites for this task.
Context and remarks
The following steps explain how to redirect messages on Solaris, but you can also do this on Linux, IBM AIX, and Mac OS X. On other platforms, such as HP-UX, the syslog.conf file is found in a different location. You can place the /var/adm/sqlanywhere file in whatever location you want.
Choose a unique facility identifier that is not already being used by another application that is running on your system.
You can do this by looking in the /etc/syslog.conf file to see of any of the localn facilities are referenced.
Edit the /etc/syslog.conf file and add the following line, where localn is the facility identifier you chose in step 1:
localn.err;localn.info;localn.notice /var/adm/sqlanywhere |
Create the /var/adm/sqlanywhere file:
touch /var/adm/sqlanywhere |
Tell the syslogd process that you have modified the syslog.conf file by finding the process ID of syslogd:
ps -ef | grep syslogd |
and then running the following command where pid is the process ID of syslogd:
kill -HEAP pid |
Start your database server with the following command, where localn is the facility identifier you chose in step 1:
dbsrv16 -s localn ... |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |