Restore backup files for the samples databases
The following sample databases and associated files are provided with IBM Cognos Business Intelligence. For Microsoft SQL Server, each database is delivered as a Microsoft SQL Server backup file. For Oracle, uncompress the file that is named GS_DB_ORA.tar.gz. For IBM DB2, uncompress the file that is named GS_DB.tar.gz. Databases can be found in the following locations.
Databases |
File Location |
---|---|
IBM DB2 |
GS_DB\data |
Oracle |
GS_DB_ORA\data |
Database or schema description |
File name |
---|---|
Great Outdoors sales |
GS_DB.tar.gz |
Great Outdoors retailers |
GS_DB.tar.gz |
Great Outdoors sales data warehouse |
GS_DB.tar.gz |
Great Outdoors market research |
GS_DB.tar.gz |
Great Outdoors human resources |
GS_DB.tar.gz |
Database or schema description |
File name |
---|---|
Great Outdoors sales |
GOSALES.zip |
Great Outdoors retailers |
GOSALES.zip |
Great Outdoors sales data warehouse |
GOSALESDW.zip |
Great Outdoors market research |
GOSALES.zip |
Great Outdoors human resources |
GOSALES.zip |
Database or schema description |
File name |
---|---|
Great Outdoors sales |
GS_DB_ORA.tar.gz |
Great Outdoors retailers |
GS_DB_ORA.tar.gz |
Great Outdoors sales data warehouse |
GS_DB_ORA.tar.gz |
Great Outdoors market research |
GS_DB_ORA.tar.gz |
Great Outdoors human resources |
GS_DB_ORA.tar.gz |
To restore the samples databases, ensure that you take the following actions:
- Give the restored databases the same names as the backup or export
file names.
The names are case-sensitive.
Use the correct user name and password.
- Create users with select privileges for tables in multiple schemas.
To set up the GO Data Warehouse packages specify a single connection object and user signon. Create a single user that is named GOSALESDW with the select privilege to tables in a single schema named GOSALESDW.
The GO Sales packages specify a single connection object and user signon. Create a single user that is named GOSALES with the select privilege to tables in the following schemas: GOSALES, GOSALESHR, GOSALESMR, and GOSALESRT.
- Use the UTF-8 character set on the Microsoft Windows operating
system computer that is the Oracle or DB2 client
to see reports in multiple languages.
For DB2, you must set the DB2CODEPAGE environment variable to a value of 1208. For Oracle, you must set the NLS_LANG environment variable to a value that is specific to a region. For example, set NLS_LANG for Americas to American_America.UTF8.
- Have sufficient disk space available in the target location. Reserve 150 MB for the GO Sales data (four schemas) and 200 MB for the GO Data Warehouse data (one schema).
IBM DB2 samples
The data files for db2move (a database movement tool command) and the scripts to add constraints are in the data directory. The data directory is created when you extract the GS_DB.tar.gz file.
If you use WinZip to extract the DB2 move file on in a Microsoft Windows environment, ensure that the TAR file smart CR/LF conversion option is not selected.
After you extract the DB2 move file, restore the schemas to a database named GS_DB.
To add views, constraints, user privileges, and stored procedures to GS_DB, prepare and run the gs_db_modify files that are included with the samples in the following order:
- Update the user name and password in gs_db_modify.sql and save it.
- Run gs_db_modify.bat
Memory requirements are affected by the size and type of your database system. The GO sample database whose tables are organized by column might require more memory than the typical row-based setup.
Oracle samples
To create foreign key constraints in tables that reference different schemas, you must run gs_or_modify.sql, found in the same folder as the .dmp files.