IBM Support

Data Server Manager (DSM) showing "<table_name>" is an undefined name SQLCODE=-204, SQLSTATE=42704 error

Question & Answer


Question

Why is Data Server Manager (DSM) showing the "

" is an undefined name SQLCODE=-204, error when running Query Tuning?

Cause

The <table_name> was not created during the initial DSM setup.

Answer

Rebuild the missing table by following these steps:
1. Stop DSM (via stop.bat or stop.sh script from <DSM_install>/bin directory). Make sure that there is no DSM processes running.

2. Backup the DSM repository database

3. Connect to the DSM repository database

4. "AUTOMATIC STORAGE" needs to be set to "YES" for the DSM repository database. Run the following DB2 command:
ALTER DATABASE <DSM_repository_database> ADD STORAGE ON '<storage_path>

5. From <DSM_install>/samples/DB2LUW directory, run the create.sql against the repository database (for example: db2 -tvf create.sql > create.log)
This command will attempt to create tables and functions needed for DSM in the repository database.
If the objects already exist, that creation will fail and the script proceeds to the next creation. It won't drop the existing objects, and missing objects will be created.

6. Check if all SQLs in create.log output file were executed successfully.

7. From <DSM_install>/samples/DB2LUW directory, run the validate.sql against the repository database (for example: db2 -tvf validate.sql > validate.log), to verify that all the needed repository tables and functions exist. Confirm that all ran successfully.
If you have errors referring to the schema DB2OSC, that schema is for z/OS databases, and it can be ignored if you are monitoring LUW databases only.

8. Start DSM (via start.bat or start.sh script from <DSM_install>/bin directory)

[{"Product":{"code":"SS5Q8A","label":"IBM Data Server Manager"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"},{"code":"PF002","label":"AIX"}],"Version":"1.1.1;1.1;1.1.2","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

More support for:
IBM Data Server Manager

Software version:
1.1.1, 1.1, 1.1.2

Operating system(s):
Linux, Windows, AIX

Document number:
281035

Modified date:
16 June 2018

UID

swg21984534

Manage My Notification Subscriptions
Overview Annual report Corporate social responsibility Financing Investor Newsroom Security, privacy & trust Senior leadership Careers with IBM Website Blog Publications Automotive Banking Consumer Goods Energy Government Healthcare Insurance Life Sciences Manufacturing Retail Telecommunications Travel Our strategic partners Find a partner Become a partner - Partner Plus Partner Plus log in IBM TechXChange Community LinkedIn X Instagram YouTube Subscription Center Participate in user experience research Podcasts Contact IBM Privacy Terms of use Accessibility United States — English