Once you have set up a scheduled task, you can click on right mouse - Run to make sure the backup task runs ok.
Here's where the backups are stored on Windows XP:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1\backup\generation1 (the oldest)
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1\backup\generation2
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1\backup\generation3 (the latest)
and on Vista and Windows 7:
C:\ProgramData\RisingRoad\Foxhound1\backup\generation1 (the oldest)
C:\ProgramData\RisingRoad\Foxhound1\backup\generation2
C:\ProgramData\RisingRoad\Foxhound1\backup\generation3 (the latest)
Caution: If you are using the Windows Vista or Windows 7 Task Scheduler to take regular backups of your Foxhound database using
the technique described here, be careful not to accidentally create two copies of the same scheduled task; see
Why doesn't the Foxhound backup process create the generation2 subfolder?
Question: How do I figure out what went wrong during an installation?
Answer: If the problem occurred during the post-setup part of the Foxhound installation, a complete
record of everything that happened may be found in the post_setup_trace.txt file
located here on Windows XP:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1\setup\post_setup_trace.txt
A registration key can be purchased, or obtained for free, as follows:
Basic Edition registration key $195.00
Extended Edition registration key $395.00
If you already have the Basic Edition installed, you can upgrade by purchasing an
Upgrade Basic To Extended Edition registration key for $200.00
Evaluation Edition - ask
Breck.Carter@gmail.com
for a free registration key.
If you're in a hurry, you can buy a registration key for $4.95
It is also possible to renew an expired Evaluation Edition; ask
Breck.Carter@gmail.com.
The Beta Edition of Foxhound will be available from time to time, and when that
happens you can ask
Breck.Carter@gmail.com
for a free registration key.
A simple bulk purchase involves the purchase of multiple registration keys where each registration key is used to activate a separate copy of Foxhound, and each resulting copy meets the definition of "one copy of Foxhound" given earlier. This is analogous to the bulk purchase of multiple copies of a book. Simple bulk purchases are covered by this License Agreement; they do not require a Multiple-Copy License.
Multiple-Copy License
A Multiple-Copy License involves the purchase of the right to make a limited number of identical copies after one original copy of Foxhound has been activated with one registration key, and to run these identical copies on different computers at the same time. This is analogous to making multiple photocopies of a book, an operation that is normally forbidden by the book's copyright terms. A Multiple-Copy License requires express written permission from RisingRoad, separate from this License Agreement.
Question: How do I get something to show up in the Last Statement column?
Answer: When starting a SQL Anywhere Version 8 or later target database, turn on the capturing of the most recently-prepared SQL statement for each connection:
Specify the -zl server command line option, or
call sa_server_option() to turn on 'RememberLastStatement' (Version 9 or later):
If that doesn't work, try this (see the explanation below):
SET TEMPORARY OPTION MAX_CLIENT_STATEMENTS_CACHED = '0';
or this:
SET OPTION PUBLIC.MAX_CLIENT_STATEMENTS_CACHED = '0';
The Last Statement column may be empty after ISQL displays the result set from a SELECT statement,
even if 'RememberLastStatement' is turned on.
Another reason the Last Statement column may be empty is that SQL Anywhere
is reusing a previously-prepared SQL statement. This may happen even if the
application code is using dynamic SQL; here is an example:
A PowerBuilder 10.5 application repeatedly executes the following embedded
SQL statement written in PowerScript, using an ODBC connection to a
SQL Anywhere 10.0.1 database:
UPDATE inventory
SET item_count = item_count + 1
WHERE item_id = :ll_pkey
USING itr_sql;
Each execution provides a different value for the ll_pkey host variable
(420001, 680001, 350001, ...) but otherwise the SQL remains the same.
Nothing shows up in the LastStatement connection property even though
dbsrv10 -zl (capture most recently-prepared SQL statement) is specified.
Request-level logging shows that the statement is prepared twice, but after
the second PREPARE it starts doing CACHED_DROP_STMT and VALIDATE_STMT operations...
no more DROP_STMT or PREPARE operations. This has the side-effect of causing
the original SQL statement to no longer show up in the LastStatement connection property.
This optimization isn't done by PowerBuilder, it's done by SQL Anywhere itself.
It is a new feature in SQL Anywhere Version 10, called client statement caching,
and it is done by these client interfaces:
ODBC, OLE DB, ADO.NET, embedded SQL and the iAnywhere JDBC driver.
It is not done for Open Client, jConnect, or HTTP connections.
A really crude workaround is to use PowerBuilder's own EXECUTE IMMEDIATE feature
to stop this optimization, which in turn will force the SQL to show up in the
LastStatement connection property.
A better workaround is to just turn off the client statement caching feature:
SET TEMPORARY OPTION MAX_CLIENT_STATEMENTS_CACHED = '0'; -- 0 to 100, default 10
These workarounds have a dark side: the performance penalty that results from turning
off the optimization. In the long run, it may be better to live without seeing
Last Statement.
Question: How do I install a new version of Foxhound?
Answer: Here's how to preserve all of your existing Foxhound settings and sample data while installing a new version:
Run the Foxhound "unsetup" process: start - All Programs - Foxhound1 - Tools - Unsetup Foxhound
This will reverse the actions of the original Foxhound InstallShield setup process, but it will not remove the Foxhound database from your system; see
Why is it called "unsetup" instead of "uninstall"?
The post-setup process will copy and upgrade the data stored in your existing Foxhound database before overwriting it,
and you won't need to provide a registration key when you start Foxhound.
If you want to preserve your existing settings but not all of your old sample data, try running the Foxhound Options - Purge process
to delete old data before running the steps above.
If you don't want to preserve either your existing settings or any of your old sample data, you will first have to
remove Foxhound from your system
before
installing the new copy.
In this case you will need to provide your registration key when you start Foxhound.
Caution: A successful installation overwrites existing files. It is your responsibility to
make a backup of your existing Foxhound installation if you want one. The simplest way to make a complete
backup is to stop the Foxhound engine, then make a copy of the entire Foxhound1 folder and subfolders...
do this before installing the new version of Foxhound.
By default, Foxhound is installed in this location on Windows XP:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1
and on Vista and Windows 7 it is here:
C:\ProgramData\RisingRoad\Foxhound1
Note: Before overwriting the current foxhound.db and log files, the post-setup process will
move them to the backup\previous_build subfolder under the locations listed above.
Caution: If you are running Foxhound as a service, stop the service before installing the new version.
The installation process needs to stop and restart the existing Foxhound database, and it probably won't be
able to do that if it's already running as a service.
Answer: Just run the Foxhound InstallShield setup you have received. You should see this dialog box:
When the InstallShield process reaches the end, click on the Post-Setup button to continue the installation.
This part is critical; if you don't let the post-setup process run, Foxhound won't be fully installed:
This is what the post-setup process for a new installation looks like:
Step 5: Start the Foxhound engine and launch Foxhound in your browser:
start - All Programs - Foxhound1 - Start Foxhound via Firefox
or
start - All Programs - Foxhound1 - Start Foxhound via IE
Step 6: Copy and paste (or type) your registration key on the "Activate Foxhound" web page when it appears,
and click on the "Activate Foxhound" button.
An initial configuration page will then appear; click on the "Help" button for more information.
For upgrading from the Evaluation edition only...
Step 7: Open the Foxhound "About" page.
Step 8: Copy and paste (or type) your registration key in the "... enter it here:" field,
and click on the "Upgrade Foxhound" button.
Context-sensitive Help buttons and icons appear throughout Foxhound. The same information
is available
on the web, here,
and even more can be found in the
Frequently Asked Questions.
Note: Your Basic copy of Foxhound can be upgraded to the Extended edition at any time, without losing any of your data or
even interrupting a Database Monitor session; just purchase an Extended key and enter it on the About page.
Step 4: Start the Foxhound engine and launch Foxhound in your browser:
start - All Programs - Foxhound1 - Start Foxhound via Firefox
or
start - All Programs - Foxhound1 - Start Foxhound via IE
Step 5: Copy and paste (or type) your registration key on the "Activate Foxhound" web page when it appears,
and click on the "Activate Foxhound" button.
An initial configuration page will then appear; click on the "Help" button for more information.
Context-sensitive Help buttons and icons appear throughout Foxhound. The same information
is available
on the web, here,
and even more can be found in the
Frequently Asked Questions.
Note: The Evaluation edition of Foxhound will expire 30 days after it is installed.
It be upgraded to the Basic or Extended edition at any time, before or after it expires, without losing any of your data or
even interrupting a Database Monitor session; just purchase a Basic or Extended key and enter it on the About page.
Step 5: Start the Foxhound engine and launch Foxhound in your browser:
start - All Programs - Foxhound1 - Start Foxhound via Firefox
or
start - All Programs - Foxhound1 - Start Foxhound via IE
Step 6: Copy and paste (or type) your registration key on the "Activate Foxhound" web page when it appears,
and click on the "Activate Foxhound" button.
An initial configuration page will then appear; click on the "Help" button for more information.
For upgrading from the Evaluation or Basic edition only...
Step 7: Open the Foxhound "About" page.
Step 8: Copy and paste (or type) your registration key in the "... enter it here:" field,
and click on the "Upgrade Foxhound" button.
Context-sensitive Help buttons and icons appear throughout Foxhound. The same information
is available
on the web, here,
and even more can be found in the
Frequently Asked Questions.
Question: How do I install version 11 of SQL Anywhere on the same machine used to run an earlier version of SQL Anywhere?
Answer: Follow the normal process for installing SQL Anywhere 11; version 11 of SQL Anywhere can coexist on the same
computer as all earlier versions from 5.5 through 10.
There is one caveat, however: The SQL Anywhere 11 installation modifies the Windows PATH environment variable.
If you have been relying on the PATH to determine
where SQL Anywhere utilities such as dbbackup.exe and dbvalid.exe are located, your Windows command lines and batch
files may start executing the version 11 copies of those utilities instead of the version you want. Either change the
PATH variable, or modify your Windows command lines to explicitly specify the folder containing the utilities.
Each version of SQL Anywhere comes with its own environment variable that makes it easier to code commands; here's an
example of how to use the SQLANY10 environment variable to execute the version 10 copy of dbvalid.exe:
Question: How do I keep the Foxhound log file from growing so large?
Answer: The easiest way is to regularly use the Foxhound1 - Tools - Backup Foxhound Database shortcut which will
backup and restart the active Foxhound transaction log file, keeping only the three most
recent backups and discarding older copies.
Another way to limit the transaction log size is to specify the dbsrv11 -m option in the following command files,
to tell SQL Anywhere to truncate the transaction log whenever a checkpoint is performed:
Question: How do I reinstall an earlier build of Foxhound?
Answer: The
regular re-installation process
will work for an earlier build. HOWEVER, the post-upgrade process
will NOT copy the data from your current Foxhound database to the one that's being installed when the
current installed build number is later than the one that's being installed. That means you lose your
sample data and option settings, and it means you will have to activate Foxhound as if it were a brand
new installation.
You can preserve some of your data if you plan ahead and
take a backup of your current Foxhound database
before installing a new version. Then, if you decide to re-install the old version, you can
do a restore
rather than run another installation process. You will lose all the sample data recorded
while the new version was running, plus all the changes you made to option settings... but you will
get your old data back and you won't have to activate Foxhound again.
Note: A successful installation overwrites existing files. It is your responsibility to
make a backup of your existing Foxhound installation if you want one. The simplest way to make a complete
backup is to stop the Foxhound engine, then make a copy of the entire Foxhound1 folder and subfolders...
do this BEFORE installing the new version of Foxhound.
By default, Foxhound is installed in this location on Windows XP:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1
and on Vista and Windows 7 it is here:
C:\ProgramData\RisingRoad\Foxhound1
To reinstall Foxhound, just run the InstallShield setup you have received. What you do next depends on which dialog box appears...
If you see this dialog box, you can proceed with the reinstallation:
When the InstallShield process reaches the end, click on the Post-Setup button to continue the installation.
This part is critical; if you don't let the post-setup process run, the old installation of Foxhound will not
be replaced:
This is what the post-setup process looks like. The registration status (Beta, Evaluation, Full) of your
current Foxhound database is copied over to the new one, as well as other settings and all the Monitor
samples that have been gathered:
If you see this dialog box, you have to run the Foxhound "unsetup" process first
and then run the Foxhound InstallShield setup:
If you see this dialog box, click on Remove to run the Foxhound "unsetup" process, and then run the Foxhound InstallShield setup.
Do not click on Modify or Repair; they won't damage anything, but nothing will happen when you click on the Post-Setup
button at the end of Modify or Repair process:
Question: How do I restore the old build of Foxhound after installing a new build?
Answer: Foxhound's executable code is stored together with Foxhound data inside the Foxhound database,
so "restoring the old build of Foxhound" is the same as "restoring the old Foxhound database".
The post-setup process creates a backup copy of your existing Foxhound database, and
you can restore that copy by copying the foxhound.db and foxhound.log files as follows:
On Windows XP, copy the foxhound.db and foxhound.log files from:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1\backup\previous_build
to:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1
On Windows Vista or Windows 7, copy the foxhound.db and foxhound.log files from:
Wait until the background purge process has had enough time to increase
the amount of free space to the level you want; for example, from 2% to 75%.
This may take a few hours or even days if you have a lot of data to delete;
watch the amount of free space displayed by the
Foxhound Options - Purge sample data
feature.
Question: How do I specify the HTTPS transport-layer security for Foxhound?
Answer: You can modify the Foxhound startup command line to specify RSA encryption and the HTTPS protocol as follows:
Obtain an identity certificate and the associated private key for your Foxhound installation.
Store the identity certificate file in a known location.
Change the -xs option to specify https on the dbsrv11.exe command line used to start Foxhound.
Specify the identity certificate file and private key in the -xs https identity= and identity_password= parameters.
Note that the default port for HTTPS is 443.
Here is an example of a dbsrv11.exe command line modified to allow only HTTPS
access to Foxhound data using the sample certificate that comes with SQL Anywhere 11:
Answer: Starting Foxhound is a two-step process: Starting the Foxhound database in a SQL Anywhere engine, and
connecting to the Foxhound HTTP server from your browser.
Method 1:
The following desktop shortcut does both steps:
Start - All Programs - Foxhound1 - Start Foxhound via Firefox
So does this shortcut:
Start - All Programs - Foxhound1 - Start Foxhound via IE
The shortcuts above work even if the SQL Anywhere engine is already running; they just ignore the error message
produced because the engine's already running, and they press on connecting to Foxhound from the browser.
Method 2:
You can do the two steps separately, as follows:
Start - All Programs - Foxhound1 - Tools - Start Foxhound Engine
Specify http://localhost in your browser
Question: How do I start Foxhound in "debug mode"?
Answer: The following shortcuts help with debugging. Each one stops the SQL Anywhere engine if it's running,
starts it again with extra diagnostics turned on, and then connects to Foxhound from your browser:
Start - All Programs - Foxhound1 - Tools - Start Foxhound via Firefox - debug
Start - All Programs - Foxhound1 - Tools - Start Foxhound via IE - debug
Answer: Safe-mode startup, also known as safe startup, stops sampling of all target
databases by the Foxhound Monitor when Foxhound is started. This sometimes helps
if Foxhound is unresponsive when it starts.
To enable safe-mode startup, create a text file named startup.txt containing these exact 4 characters
safe
and place that file in the Foxhound installation folder.
By default, Foxhound is installed in this location on Windows XP:
C:\Documents and Settings\All Users\Application Data\RisingRoad\Foxhound1
Alternative:
The following shortcuts help with debugging. Each one stops the SQL Anywhere engine if it's running,
starts it again with extra diagnostics turned on, and then connects to Foxhound from your browser:
Start - All Programs - Foxhound1 - Tools - Start Foxhound via Firefox - debug
Start - All Programs - Foxhound1 - Tools - Start Foxhound via IE - debug
Method 2: Go to the Foxhound Options page, scroll to the bottom and click on the Stop Foxhound Engine button.
Method 3: Open the Processes tab in Task Manager, click on the "Image Name" column name to sort the process names alphabetically,
select the dbeng11.exe or dbsrv11.exe task that's running the Foxhound database and then click on the End Process button.
Caution: If you have two or more SQL Anywhere engines running it can be difficult to determine which one's running the
Foxhound database.
Question: How do I tell different databases apart in Alert emails?
Answer:
Specify a different DSN or Connection String name for each target database when starting
a Foxhound Monitor session for that database, or
set the GlobalDBId property to a different non-default value for each target database that uses
Version 7 or later of SQL Anywhere. If the target database GlobalDBId property is set to a non-default value, that value will
be shown in (parentheses) after the DSN or Connection String name in Alert emails.
This makes it easier to tell different remote databases apart
in a replicating or synchronizing environment.
Here's how to set the GlobalDBId option:
SET OPTION PUBLIC.global_database_id = '47';
Here's how to display the value after you've set it:
Question: How many target databases can one copy of Foxhound monitor?
Answer: A single copy of the
Basic edition of Foxhound
is limited to monitoring 10 target databases, and the
Extended edition
can monitor up to 100 target databases.
If you have many target databases running on different computers, you can use the following
techniques to monitor them all:
if desired, use the
network server dbsrv11.exe
to run Foxhound so that the monitor information for every target database is available over the internet.