Scheduling pbvcon
Scheduling events with pbvcon requires the use of the Windows NT Task Scheduler. The task scheduler is installed with Internet Explorer 7.0 or above. The task scheduler supports recurring tasks on a daily, weekly, monthly, reboot, once only, or login basis. You can use the scheduler to make pbvcon back up your databases, run imports and exports, precalculate data or hierarchies, and verify and compact a database. To perform these tasks, create a batch file instructing pbvcon to carry out the tasks on your databases.
You can set many different tasks to run at different frequencies. Some recommended best practices are:
*Back up every night.
*Verify and compact monthly.
DOS batch files run sequentially, but if you schedule multiple batches to run at similar times, you might encounter conflicts between different pbvcon commands. For this reason, Actuate recommends scheduling the tasks far apart, or chaining dependant batch files into a single sequential batch file.
How to set up a recurring task to run a pbvcon batch file
After creating and testing a pbvcon batch file, perform the following steps to set up the recurring task:
1 Choose StartSettingsControl PanelScheduled Tasks.
2 From the Scheduled Tasks window, as shown in Figure 11‑3, double-click Add Scheduled Task.
Figure 11‑3 The Scheduled Tasks window
3 In the Scheduled Task Wizard window, shown in Figure 11‑4, choose Next.
Figure 11‑4 The Scheduled Task wizard
4 Choose Browse, as shown in Figure 11‑5, and select the pbvcon batch file that you created earlier for the task to schedule. Then, choose Open.
Figure 11‑5 Locating the pbvcon batch file
5 At the scheduler, provide the name of the task and the frequency of the recurrence, as shown in Figure 11‑6. Then, choose Next.
Figure 11‑6 Naming the task and setting the task frequency
6 Provide the Start time, as shown in Figure 11‑7. Then, choose Next.
Figure 11‑7 Defining the task start date
7 Set the User and password for this task, as shown in Figure 11‑8. Actuate recommends that this user is the same as the one running the Metrics Management server. This user must have the right to run batch processes. Then, choose Next.
Figure 11‑8 Setting the user name and password for a task
8 Choose Finish to create the task, as shown in Figure 11‑9.
Figure 11‑9 Confirming and creating the task
The new task is added to the Task scheduler. The scheduler window displays all the scheduled tasks, as shown in Figure 11‑10.
Figure 11‑10 The Scheduled Tasks window, displaying all scheduled tasks