on 2010 Jun 10 7:11 PM
I have a -o parameter on dbsrv9.exe.. that spins the console log to a text file.
The file gets pretty big over time, and I'd like to start a new log file every couple days or so.
Is there a way to do that?
I'm running 9.0.2.3850
Ron
Request clarification before answering.
If you simply want to keep the console log file at a reasonable size and have the server automatically start a new file when it reaches a certain size then using the -os command line option is a solution (as pointed out by Zote). This is the only solution available in SA 9 if the server is not to be restarted.
Starting in SQL Anywhere 10, you can also change the console log file by using the SQL statement:
call sa_server_option( 'ConsoleLogFile', 'new-file-name.txt' );
This statement starts a new console log file named 'new-file-name.txt'. Setting the value to '' (empty string) turns off recording the console messages to file.
A similar option - 'ConsoleLogMaxSize' - may be used (starting in v10) to set the size at which a new log file is automatically started.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this looks like a great solution...I can program this to set a new file name via a scheduled event. Every time a new file name comes along, the file will be restarted.... if I understand this correctly.
@Ron: Correct. But note that the ConsoleLogFile server option is not available in 9.0.2. If you are going to stay at 9.0.2 (which has been EOLed since January 2010) you will need to use the -os command line option to have the console log file automatically start a new file as a preset fixed size.
use -os option
See more in SA help at
ASA Database Administration Guide
The Database Server
The database server
Database server options
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it renames the current file and starts a new one. The old files remain until you delete them.
User | Count |
---|---|
76 | |
30 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.