Installing and setting up the sample database
Learn how to download, install, and set up the sample database on your Netezza Performance Server.
Procedure
- Download
sample-databases.tarfrom Fix Central.- Go to Find Product, and in the Product Selector field type IBM Cloud Pak for Data System.
- Select your Netezza Performance Server version and platform.
- Download
sample-databases.tar.
- Unpack
sample-databases.tar:tar -xvf sample-databases.tarThe
sample-databases.tarfile contains a database schema, data, and queries, which you can run, and aREADMEfile, which includes these installation steps.For more information about the package itself, see The sample-databases.tar package.
- As
root, installpip:yum install python3-pipThe command installs Python3, pip and all of the dependencies that are necessary to build Python modules.
- As
root, installpytest:pip3 install pytest - When
pipandpytestare installed, switch to thenzuser:su nz - Add the following two lines to the /export/home/nz/.bashrc
file:
-
NZ_USER=admin export -
NZ_PASSWORD=password
-
- Change ownership of the
sample-databasesdirectory:chown -R nz:nz sample-databases - Go to the
sample-databasesdirectory. - Run the python3 test_sample_test_cases.py script. To get more information about the script, you can run the following command:
python3 test_sample_test_cases.py --help