



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Once a data warehouse begins its operation, you need to regularly feed new data from the source to your data warehouse, as discussed in Chapter 8, “Regular Population.” To ensure a steady stream of data, you schedule regular population using the job scheduler available on your platform. This chapter, the last in Part II, shows you how to set up a regular population as a scheduled task in Windows. The scheduler will call a batch file that in turn invokes the script discussed in Chapter 8.
Chapter 8 discussed the dw_regular.sql script to load new data. This script needs to be run daily. Listing 9.1 presents a batch file that should be invoked to run the dw_regular.sql script.
Listing 9.1: DW regular population batch mysql.exe -udwid uuserid -ppw -D dw < c:\mysql\scripts\dw_regular.sql
You must call the mysql.exe command with the correct user id and password and specify the database name and the full path to the dw_regular.sql script.
Now that you have a batch file that calls the regular_dw.sql script, you can proceed with scheduling it with Windows Scheduled Task. The following provides step-by-step instructions on how to do it.
10.. Click the Set password button and you will see the Set Account Information box similar to Figure 9.8. Type in your user name and password and click OK.
The daily scheduled task of your data warehouse regular load is now set up. It will start to run at the date and time you specified. You can see a new icon in the Scheduled Tasks window, as shown in Figure 9.9.
In this chapter you learned to set up a regular population job as a Windows scheduled task. Having done the ETL process and the various types of population, including the regular population scheduling, you are now ready to get your starter data warehouse up and running.