The change will be reflected in the actual physical table. Ignore the message and continue changing the Create DDL statement.
The corrected version of this message for steps in development mode should read as follows: "Any change to the Create DDL SQL statement will not be reflected in the table definition. Do you want to continue?"
For steps in test or production mode, the message is correct. The Data Warehouse Center will not change the physical target table that was created when you promoted the step to test mode.
The output of the FormatDate function is of data type varchar(255). You cannot change the data type by selecting Date, Time, or Date/Time from the Category list on the Function Parameters - FormatDate page.
/usr/bin/ln -sf /usr/lpp/db2_07_01/msg/locale/flgnxolv.str
/usr/lpp/db2_07_01/bin/flgnxolv.str
/usr/bin/ln -sf /opt/IBMdb2/V7.1/msg/locale/flgnxolv.str
/opt/IBMdb2/V7.1/bin/flgnxolv.str
To avoid this problem, use one of the following approaches:
vwkernel 11000/tcp
To enable delimited identifier support for Sybase on UNIX, edit the Sybase data source in the .odbc.ini file to include the connect attribute EQI=1.
In Chapter 8. Information Catalog Manager object types, the directory where you can find the .TYP files, which include the tag language for defining an object type, has been changed to \SQLLIB\DGWIN\TYPES.
The Data Warehouse Center starts to create the target table, and displays a progress window.
"C:\IS\bin\olapicmd" < "C:\IS\Batch\my_script.script" > "C:\IS\Batch\my_script.log"The double quotation marks around "C:\IS\bin\olapicmd" are necessary if the name of a directory in the path contains a blank, such as Program Files.
Install the CROSS ACCESS ODBC driver by performing a custom install of the DB2 Warehouse Manager Version 7, and selecting the Classic Connect Drivers component. The driver is not installed as part of a typical installation of the DB2 Warehouse Manager. The CROSS ACCESS ODBC driver will be installed in the ODBC32 subdirectory of the SQLLIB directory. After the installation is complete, you must manually add the path for the driver (for example, C:\Program Files\SQLLIB\ODBC32) to the PATH system environment variable. If you have another version of the CROSS ACCESS ODBC driver already installed, place the ...\SQLLIB\ODBC32\ path before the path for the other version. The operating system will use the first directory in the path that contains the CROSS ACCESS ODBC driver.
Data Warehouse Center message DWC3778E should read as follows: "Cannot delete a Data Warehouse Center default Data Warehouse Center Program Group."
Data Warehouse Center message DWC3806E should read as follows: "Step being created or updated is not associated with either a source resource or Data Warehouse Center program for population."
Data Warehouse Center message DWC6119E should read as follows: "The warehouse client failed to receive a response from the warehouse server."
This section covers the following topics related to the management of warehouse control databases:
During a typical DB2 installation on Windows NT or Windows 2000, DB2 creates and initializes a default warehouse control database for the Data Warehouse Center if there is no active warehouse control database identified in the Windows NT registry. Initialization is the process in which the Data Warehouse Center creates the control tables that are required to store Data Warehouse Center metadata.
The default warehouse control database is named DWCTRLDB. When you log on, the Data Warehouse Center specifies DWCTRLDB as the warehouse control database by default. To see the name of the warehouse control database that will be used, click the Advanced button on the Data Warehouse Center Logon window.
The Warehouse Control Database Management window is installed during a typical DB2 installation on Windows NT or Windows 2000. You can use this window to change the active warehouse control database, create and initialize new warehouse control databases, and migrate warehouse control databases that have been used with IBM Visual Warehouse. The following sections discuss each of these activities.
Stop the warehouse server before using the Warehouse Control Database Management window.
If you want to use a warehouse control database other than the active warehouse control database, use the Warehouse Control Database Management window to register the database as the active control database. If you specify a name other than the active warehouse control database when you log on to the Data Warehouse Center, you will receive an error that states that the database that you specified does not match the database specified by the warehouse server.
To register the database:
The window remains open. The Messages field displays messages that indicate the status of the registration process.
If you want to create a warehouse control database other than the default, you can create it during the installation process or after installation by using the Warehouse Control Database Management window. You can use the installation process to create a database on the same workstation as the warehouse server or on a different workstation.
To change the name of the warehouse control database that is created during installation, you must perform a custom installation and change the name on the Define a Local Warehouse Control Database window. The installation process will create the database with the name that you specify, initialize the database for use with the Data Warehouse Center, and register the database as the active warehouse control database.
To create a warehouse control database during installation on a workstation other than where the warehouse server is installed, select Warehouse Local Control Database during a custom installation. The installation process will create the database. After installation, you must then use the Warehouse Control Database Management window on the warehouse server workstation by following the steps in 20.2.3, Changing the active warehouse control database. Specify the database name that you specified during installation. The database will be initialized for use with the Data Warehouse Center and registered as the active warehouse control database.
To create and initialize a warehouse control database after the installation process, use the Warehouse Control Database Management window on the warehouse server workstation. If the new warehouse control database is not on the warehouse server workstation, you must create the database first and catalog it on the warehouse server workstation. Then follow the steps in 20.2.3, Changing the active warehouse control database. Specify the database name that you specified during installation.
When you log on to the Data Warehouse Center, click the Advanced button and type the name of the active warehouse control database.
DB2 Universal Database Quick Beginnings for Windows provides information about how the active warehouse control database is migrated during a typical install of DB2 Universal Database Version 7.1 on Windows NT and Windows 2000. If you have more than one warehouse control database to be migrated, you must use the Warehouse Control Database Management window to migrate the additional databases. Only one warehouse control database can be active at a time. If the last database that you migrate is not the one that you intend to use when you next log on to the Data Warehouse Center, you must use the Warehouse Control Database Management window to register the database that you intend to use.
Replication requires that the Replication Control tables exist on both the Control and Target databases. The Replication Control tables are found in the ASN schema and they all start with IBMSNAP. The Replication Control tables are automatically created for you on a database when you define a Replication Source via the Control Center, if the Control tables do not already exist. Note that the Control tables must also exist on the Target DB. To get a set of Control tables created on the target DB you can either create a Replication Source using Control Center, then remove the Replication Source, just leaving the Control tables in place. Or you can use the DJRA, Data Joiner Replication Administration, product to define just the control tables.
If you want or need to use the DJRA to define the control tables, you will need to install it first. The DJRA ships as part of DB2. To install the DJRA, go to the d:\sqllib\djra directory (where your DB2 is installed) and click on the djra.exe package. This will install the DJRA on your system. To access the DJRA after that, on Windows NT, from the start menu, click on the DB2 for Windows NT selection, then select Replication, then select Replication Administration Tools. The DJRA interface is a bit different from usual NT applications. For each function that it performs, it creates a set of SQL to be run, but does not execute it. The user must manually save the generated SQL and then select the Execute SQL function to run the SQL.
For the system that you are testing on, see the Replication Guide and Reference Manual for instructions on configuring your system to run the Capture and Apply program. You must bind the Capture and Apply programs on each database where they will be used. Note that you do NOT need to create a password file. The Data Warehouse Center will automatically create a password file for the Replication subscription.
Use the Control Center to define a Replication Source. The Data Warehouse Center supports five types of replication: user copy, point-in-time, base aggregate, change aggregate, and staging tables (CCD tables). The types of User Copy, Point-in-Time, and Condensed Staging table require that the replication source table have a primary key. The other replication types do not. Keep this in mind when choosing an input table to be defined as a Replication Source. A Replication Source is actually the definition of the original source table and a created CD (Change Data) table to hold the data changes before they are moved to the target table. When you define a Replication Source in the Control Center, a record is written out to ASN.IBMSNAP_REGISTER to define the source and its CD table. The CD table is created at the same time, but initially it contains no data. When you define a Replication Source you can choose to include only the after-image columns or both the before and after-image columns. These choices are made via checkboxes in the Control Center Replication Source interface. Your selection of before and after image columns is then translated into columns created in the new CD table. In the CD table, after-image columns have the same name as their original source table column names. The after-image columns will have a 'X' as the first character in the column name.
Once you have created the Replication Source in the Control Center, you can import it into the Data Warehouse Center. When importing the source, be sure to click on the checkbox that says "Tables that can be replicated". This tells the Data Warehouse Center to look at the records in the ASN.IBMSNAP_REGISTER table to see what tables have been defined as Replication Sources.
On the process modeler, select one of the five Replication types: base aggregate, change aggregate, point-in-time, staging table, or user copy. If you want to define a base aggregate or change aggregate replication type, see the section below about How to setup a Base Aggregate or Change Aggregate replication in the Data Warehouse Center. Select an appropriate Replication Source for the Replication type. As mentioned above, the replication types of: user copy, point-in-time, and condensed staging tables require that the input source have a primary key. Connect the Replication Source to the Replication Step. Open the properties on the Replication Step. Go to the Parameters tab. Select the desired columns. Select the checkbox to have a target table created. Select a Warehouse target. Go to the Processing Options and fill in the parameters. Press OK.
In a DOS window, enter: ASNCCP source-database COLD PRUNE
The COLD parameter indicates a COLD start and will delete any existing data in the CD tables. The PRUNE parameter tells the capture program to maintain the IBMSNAP_PRUNCNTL table. Leave the Capture program running. When it comes time to quit, you can stop it with a Ctrl-Break in its DOS window. Be aware that you need to start the Capture program before you start the Apply program.
Back in the Data Warehouse Center, for the defined Replication Step, promote the step to Test mode. This causes the Replication Subscription information to be written out to the Replication Control tables. You will see records added to IBMSNAP_SUBS_SET, IBMSNAP_SUBS_MEMBR, IBMSNAP_SUBS_COLS, and IBMSNAP_SUBS_EVENT to support the subscription. The target table will also be created in the target database. If the replication type is user copy, point-in-time, or condensed staging table, a primary key is required on the target table. Go to the Control Center to create the Primary Key. Note that some replication target tables also require unique indexes on various columns. Code exists in the Data Warehouse Center to create these unique indexes when the table is created so that you do NOT have to create these yourself. Note though that if you define a primary key in the Control Center and a unique index already exists for that column then you will get a WARNING message when you create the primary key. Ignore this warning message.
No replication subscription changes are made during Promote-to-Production. This is strictly a Data Warehouse Center operation like any other step.
After a Replication Step has been promoted to Test mode, it can be run. Do an initial run before making any changes to the source table. Go to the Work-in-Progress (WIP) section and select the Replication Step. Run it. When the step is run, the event record in the IBMSNAP_SUBS_EVENT table is updated and the subscription record in IBMSNAP_SUBS_SET is posted to be active. The subscription should run immediately. When the subscription runs, the Apply program is called by the Agent to process the active subscriptions. If you update the original source table after that point, then the changed data will be moved into the CD table. If you run the replication step following that, such that the Apply program runs again, the changed data will be moved from the CD table to the target table.
No replication subscription changes are made during Demote-to-Test. This is strictly a Data Warehouse Center operation like any other step.
When you demote a Replication Step to development, the subscription information is removed from the Replication Control tables. No records will remain in the Replication Control tables for that particular subscription after the Demote-to-Development finishes. The target table will also be dropped at this point. The CD table remains in place since it belongs to the definition of the Replication Source.
If you don't see any data in the CD table, then most likely either the Capture program has not been started or you have not updated the original source table to create some changed data.
The online help for these utilities states that the table that you want to run statistics on, or that is to be reorganized, must be linked as both the source and the target. However, because the step writes to the source, you only need to link from the source to the step.
On the Notification page of the Warehouse Properties notebook, the statement:
The Sender entry field is initialized with the string <current user's logon ID>.
should be changed to:
The Sender entry field is initialized with the string <current logon user email address>.
On the Notification page of the Schedule notebook, the sender will be initialized to what is set in the Warehouse Properties notebook. If nothing is set, it is initialized to the current logon user e-mail address. If there is no e-mail address associated with the logon user, the sender is set to the logon user ID.
The Agent Module field in the Agent Sites notebook provides the name of the program that is run when the warehouse agent daemon spawns the warehouse agent. Do not change the name of the field unless IBM directs you to do so.
DB2 Version 7.1 warehouse agents, as configured by the DB2 Version 7.1 install process, will support access to DB2 Version 6 and DB2 Version 7.1 data. If you need to access DB2 Version 5 data, you must take one of the following two approaches:
DB2 Version 7.1 warehouse agents do not support access to data from DB2 Version 2 or any other previous versions.
For information about migrating DB2 Version 5 servers, see DB2 Universal Database Quick Beginnings for your operating system.
The following information describes how to change the agent configuration on each operating system. When you migrate the DB2 servers to DB2 Version 6 or later, remove the changes that you made to the configuration.
To set up a UNIX warehouse agent to access data from DB2 Version 5 with either CLI or ODBC access:
http://www.ibm.com/software/data/db2/udb/support
To set up a Microsoft NT, Windows 2000 or OS/2 warehouse agent to access data from DB2 Version 5:
DB2 Connect Enterprise Edition is included as part of DB2 Universal Database Enterprise Edition and DB2 Universal Database Enterprise Extended Edition. If Version 6 of either of these DB2 products is installed, you do not need to install DB2 Connect separately.
Restriction: | You cannot install multiple versions of DB2 on the same Windows NT or OS/2 workstation. You can install DB2 Connect on another Windows NT workstation or on an OS/2 or UNIX workstation. |
For information about cataloging databases, see the DB2 Universal Database Installation and Configuration Supplement.
The following DB2 commands give an example of binding to v5database, a hypothetical DB2 version 5 database. Use the DB2 Command Line Processor to issue the following commands. db2cli.lst and db2ajgrt are located in the \sqllib\bnd directory.
db2 connect to v5database user userid using password db2 bind db2ajgrt.bnd db2 bind @db2cli.lst blocking all grant public
where userid is the user ID for v5database and password is the password for the user ID.
An error occurs when db2cli.list is bound to the DB2 Version 5 database. This error occurs because large objects (LOBs) are not supported in this configuration. This error will not affect the warehouse agent's access to the DB2 Version 5 database.
Fixpak 14 for DB2 Universal Database Version 5, which is available in June, 2000, is required for accessing DB2 Version 5 data through DB2 Connect. Refer to APAR number JR14507 in that fixpak.
In a typical installation of DB2 Version 7.1 on Windows NT, a DB2 Version 7 warehouse control database is created along with the warehouse server. If you have a Visual Warehouse warehouse control database, you must upgrade the DB2 server containing the warehouse control database to DB2 Version 7.1 before the metadata in the warehouse control database can be migrated for use by the DB2 Version 7.1 Data Warehouse Center. You must migrate any warehouse control databases that you want to continue to use to Version 7.1. The metadata in your active warehouse control database is migrated to Version 7.1 during the DB2 Version 7.1 install process. To migrate the metadata in any additional warehouse control databases, use the Warehouse Control Database Migration utility, which you start by selecting Start --> Programs --> IBM DB2 --> Warehouse Control Database Management on Windows NT. For information about migrating your warehouse control databases, see DB2 Universal Database for Windows Quick Beginnings.
The following tables list the version and release levels of the sources
and targets that the Data Warehouse Center supports.
Table 3. Version and release levels of supported IBM warehouse sources
Source | Version/Release |
---|---|
IMS | 5.1 |
DB2 Universal Database for Windows NT | 5.2 - 7.1 |
DB2 Universal Database Enterprise-Extended Edition | 5.2 - 7.1 |
DB2 Universal Database for OS/2 | 5.2 - 7.1 |
DB2 Universal Database for AS/400 | 3.7 - 4.5 |
DB2 Universal Database for AIX | 5.2 - 7.1 |
DB2 Universal Database for Solaris Operating Environment | 5.2 - 7.1 |
DB2 Universal Database for OS/390 | 4.1 - 5.1.6 |
DB2 DataJoiner | 2.1.2 |
DB2 for VM | 3.4 - 5.3.4 |
DB2 for VSE | 7.1 |
Source | Windows NT | AIX |
---|---|---|
Informix | 7.2.2 - 8.2.1 | 7.2.4 - 9.2.0 |
Oracle | 7.3.2 - 8.1.5 | 8.1.5 |
Microsoft SQL Server | 7.0 |
|
Microsoft Excel | 97 |
|
Microsoft Access | 97 |
|
Sybase | 11.5 | 11.9.2 |
Table 4. Version and release levels of supported IBM warehouse targets
Source | Version/Release |
---|---|
DB2 Universal Database for Windows NT | 6 - 7 |
DB2 Universal Database Enterprise-Extended Edition | 6 - 7 |
DB2 Universal Database for OS/2 | 6 - 7 |
DB2 Universal Database for AS/400 | 3.1-4.5 |
DB2 Universal Database for AIX | 6 -7 |
DB2 Universal Database for Solaris Operating Environment | 6 -7 |
DB2 Universal Database for OS/390 | 4.1 - 6 |
DB2 DataJoiner | 2.1.2 |
DB2 DataJoiner/Oracle | 8 |
DB2 for VM | 3.4 - 5.3.4 |
DB2 for VSE | 3.2, 7.1 |
CA/400 | 3.1.2 |
The DB2 Version 7.1 Information Catalog Manager subcomponents, as configured by the DB2 Version 7.1 install process, support access to information catalogs stored in DB2 Version 6 and DB2 Version 7.1 databases. You can modify the configuration of the subcomponents to access information catalogs that are stored in DB2 Version 5 databases. The DB2 Version 7.1 Information Catalog Manager subcomponents do not support access to data from DB2 Version 2 or any other previous versions.
To set up the Information Catalog Administrator, the Information Catalog User, and the Information Catalog Initialization Utility to access information catalogs that are stored in DB2 Version 5 databases:
DB2 Connect Enterprise Edition is included as part of DB2 Universal Database Enterprise Edition and DB2 Universal Database Enterprise Extended Edition. If Version 6 of either of these DB2 products is installed, you do not need to install DB2 Connect separately.
Restriction: | You cannot install multiple versions of DB2 on the same Windows NT or OS/2 workstation. You can install DB2 Connect on another Windows NT workstation or on an OS/2 or UNIX workstation. |
For information about cataloging databases, see the DB2 Universal Database Installation and Configuration Supplement.
The following DB2 commands give an example of binding to v5database, a hypothetical DB2 version 5 database. Use the DB2 Command Line Processor to issue the following commands. db2cli.lst and db2ajgrt are located in the \sqllib\bnd directory.
db2 connect to v5database user userid using password db2 bind db2ajgrt.bnd db2 bind @db2cli.lst blocking all grant public
where userid is the user ID for v5database and password is the password for the user ID.
An error occurs when db2cli.list is bound to the DB2 Version 5 database. This error occurs because large objects (LOBs) are not supported in this configuration. This error will not affect the warehouse agent's access to the DB2 Version 5 database.
Fixpak 14 for DB2 Universal Database Version 5, which is available in June, 2000, is required for accessing DB2 Version 5 data through DB2 Connect. Refer to APAR number JR14507 in that fixpak.
The following table contains additions to the supported non-IBM
database sources:
Database | Operating system | Database client requirements |
---|---|---|
Informix | AIX | Informix-Connect and ESQL/C version 9.1.4 or later |
Informix | Solaris Operating Environment | Informix-Connect and ESQL/C version 9.1.3 or later |
Informix | Windows NT | Informix-Connect for Windows Platforms 2.x or Informix-Client Software Developer's Kit for Windows Platforms 2.x |
Oracle 7 | AIX | Oracle7 SQL*Net and Oracle7 SQL*Net shared library (built by the genclntsh script) |
Oracle 7 | Solaris Operating Environment | Oracle7 SQL*Net and Oracle7 SQL*Net shared library (built by the genclntsh script) |
Oracle 7 | Windows NT | The appropriate DLLs for the current version of SQL*Net, plus OCIW32.DLL. For example, SQL*Net 2.3 requires ORA73.DLL, CORE35.DLL, NLSRTL32.DLL, CORE350.DLL and OCIW32.DLL. |
Oracle 8 | AIX | Oracle8 Net8 and the Oracle8 SQL*Net shared library (built by the genclntsh8 script) |
Oracle 8 | Solaris Operating Environment | Oracle8 Net8 and the Oracle8 SQL*Net shared library (built by the genclntsh8 script) |
Oracle 8 | Windows NT | To access remote Oracle8 database servers at a level of version
8.0.3 or later, install Oracle Net8 Client version
7.3.4.x, 8.0.4, or later.
On Intel systems, install the appropriate DLLs for the Oracle Net8 Client (such as Ora804.DLL, PLS804.DLL and OCI.DLL) on your path. |
Sybase | AIX |
|
Sybase | Solaris Operating Environment |
|
Sybase | Windows NT | Sybase Open Client-Library 10.0.4 or later and the appropriate Sybase Net-Library. |
If you get the following message::
FLG0083E: You do not have a valid license for the IBM Information Catalog Manager Initialization utility. Please contact your local software reseller or IBM marketing representative.
You must purchase the DB2 Warehouse Manager or the IBM DB2 OLAP Server and install the Information Catalog Manager component, which includes the Information Catalog Initialization utility.
If you installed the DB2 Warehouse Manager or IBM DB2 OLAP Server and then installed another Information Catalog Manager Administrator component (using the DB2 Universal Database CD-ROM) on the same workstation, you might have overwritten the Information Catalog Initialization utility. In that case, from the \sqllib\bin directory, find the files createic.bak and flgnmwcr.bak and rename them to createic.exe and flgnmwcr.exe respectively.
If you install additional Information Catalog Manager components from DB2 Universal Database, the components must be on a separate workstation from where you installed the Data Warehouse Manager. For more information, see Chapter 3, Installing Information Catalog Manager components, in the DB2 Warehouse Manager Installation Guide.
Chapter 6. Exchanging metadata with other products: "Converting MDIS-conforming metadata into a tag language file", page 97
You cannot issue the MDISDGC command from the MS-DOS command prompt. You must issue the MDISDGC command from a DB2 command window. The first sentence of the section, "Converting a tag language file into MDIS-conforming metadata," also says you must issue the DGMDISC command from the MS-DOS command prompt. You must issue the DGMDISC command from a DB2 command window.