Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Version 2 Release 1
User’s Guide
SC27-2716-00
IBM Optim Database Relationship Analyzer
Version 2 Release 1
User’s Guide
SC27-2716-00
Note
Before using this information and the products that it supports, read the information in “Notices” on page 155.
This edition applies to Version 2 Release 1 of IBM Optim Database Relationship Analyzer for Linux, UNIX, and
Windows (product number 5724-U77) and IBM Optim Database Relationship Analyzer for z/OS (product number
5655-U78) and to all subsequent releases and modifications until otherwise indicated in new editions.
© Copyright International Business Machines Corporation 2008, 2009.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
Contents
Tables . . . . . . . . . . . . . . . v Uninstalling the Optim Database Relationship
Analyzer server . . . . . . . . . . . . 27
Figures . . . . . . . . . . . . . . vii Uninstalling the Optim Database Relationship
Analyzer server from Windows systems . . . 28
Uninstalling the Optim Database Relationship
About this information . . . . . . . . ix Analyzer server from UNIX systems . . . . 28
Service updates and support information . . . . ix Installing Optim Database Relationship Analyzer
Highlighting conventions . . . . . . . . . . x server for z/OS . . . . . . . . . . . . . 29
How to look up message explanations . . . . . . x Optim Database Relationship Analyzer server
Using LookAt . . . . . . . . . . . . . x software requirements for z/OS . . . . . . 30
How to send your comments . . . . . . . . . x Binding the DB2 JDBC (JCC) driver package on
z/OS . . . . . . . . . . . . . . . 30
Chapter 1. Optim Database Relationship Creating and configuring metadata information
Analyzer overview . . . . . . . . . . 1 for z/OS . . . . . . . . . . . . . . 31
Optim Database Relationship Analyzer architecture . 2 Defining the Optim Database Relationship
Benefits of using Optim Database Relationship Analyzer Java stored procedures to DB2 on z/OS 33
Analyzer. . . . . . . . . . . . . . . . 4 Establishing authorizations on a z/OS server . . 33
Scenario: Validating database changes by using Installing Optim Database Relationship Analyzer
Optim Database Relationship Analyzer . . . . . 5 client . . . . . . . . . . . . . . . . 34
Scenario: Discovering hard-to-find relationships by Optim Database Relationship Analyzer client
using Optim Database Relationship Analyzer . . . 7 software requirements . . . . . . . . . . 35
Scenario: Managing data governance with Optim Optim Database Relationship Analyzer client
Database Relationship Analyzer . . . . . . . 11 hardware requirements . . . . . . . . . 35
Optim Database Relationship Analyzer functions . . 13 | Installing the Optim Database Relationship
The Optim Database Relationship Analyzer | Analyzer client by using the installation wizard . 35
group discovery process . . . . . . . . . 13 Installing the Optim Database Relationship
The Optim Database Relationship Analyzer Trace Analyzer client by using the silent installation . . 37
Analyzer . . . . . . . . . . . . . . 14 Optim Database Relationship Analyzer client
The Optim Database Relationship Analyzer environment variables . . . . . . . . . . 38
integration APIs function . . . . . . . . . 16 Uninstalling the Optim Database Relationship
Summary of changes . . . . . . . . . . . 17 Analyzer client . . . . . . . . . . . . 38
Optim Database Relationship Analyzer Uninstalling the Optim Database Relationship
documentation and updates . . . . . . . . . 18 Analyzer client by using the silent uninstallation . 39
Accessibility . . . . . . . . . . . . . . 18 | Uninstalling IBM Installation Manager . . . . 39
Starting the Optim Database Relationship Analyzer
Chapter 2. Installing and configuring components . . . . . . . . . . . . . . 39
Optim Database Relationship Analyzer . 21
Installing the Optim Database Relationship Analyzer
Chapter 3. Discovering relationships
server for UNIX and Windows systems . . . . . 21 with Optim Database Relationship
Optim Database Relationship Analyzer server Analyzer . . . . . . . . . . . . . . 41
software requirements for UNIX and Windows Optim Database Relationship Analyzer process
systems. . . . . . . . . . . . . . . 21 overview . . . . . . . . . . . . . . . 41
Optim Database Relationship Analyzer server The Optim Database Relationship Analyzer
hardware requirements . . . . . . . . . 22 metadata database . . . . . . . . . . . 42
Installing the Optim Database Relationship | User databases . . . . . . . . . . . . 42
Analyzer server by using the installation wizard . 23 Sets, group discovery configurations, versions,
Optim Database Relationship Analyzer server and groups . . . . . . . . . . . . . 43
environment variables . . . . . . . . . . 24 | Creating a database connection to an Optim
Installing the Optim Database Relationship | Database Relationship Analyzer metadata database . 45
Analyzer server by using silent installation . . . 24 | Connecting to a user database . . . . . . . . 46
Setting up login credentials to Optim Database | Switching user databases . . . . . . . . . . 46
Relationship Analyzer server . . . . . . . 25 | Switching Optim Database Relationship Analyzer
Starting and stopping the Optim Database | metadata databases . . . . . . . . . . . . 47
Relationship Analyzer server . . . . . . . 26 | Creating sets and group discovery configurations. . 47
Setting up the group discovery process . . . . . 48
For a DB2® for z/OS server installation, this information also assumes a working
knowledge of:
v The OS/390® or z/OS® operating system
v SMP/E
v DB2 Universal Database™ for z/OS
v Microsoft® Windows
For an installation on a DB2 for Linux, UNIX, or Windows server, this information
assumes a working knowledge of:
v Linux, UNIX, or Windows operating systems
v DB2 Universal Database or Oracle Database for the appropriate operating system
v Microsoft Windows
Always check the Optim™ Solutions Library page for the most current version of
this publication:
www.ibm.com/software/data/data-management/optim/library.html
www.ibm.com/software/data/data-management/optim/support/
Using LookAt
LookAt is an online facility that you can use to look up explanations for most of
the IBM messages you encounter, as well as for some system abends and codes.
Using LookAt to find information is faster than a conventional search because in
most cases LookAt goes directly to the message explanation.
You can use LookAt from the following locations to find IBM message
explanations for z/OS elements and features, z/VM®, VSE/ESA, and Clusters for
AIX® and Linux:
v The Internet. You can access IBM message explanations directly from the LookAt
Web site at http://www.ibm.com/eserver/zseries/zos/bkserv/lookat/.
v Your z/OS TSO/E host system. You can install code on your z/OS or z/OSe
systems to access IBM message explanations, using LookAt from a TSO/E
command line (for example, TSO/E prompt, ISPF, or z/OS UNIX System
Services running OMVS).
v Your Microsoft Windows workstation. You can install code to access IBM
message explanations on the z/OS Collection (SK3T-4269) using LookAt from a
Microsoft Windows command prompt (also known as the DOS command line).
v Your wireless handheld device. You can use the LookAt Mobile Edition with a
handheld device that has wireless access and an Internet browser (for example,
Internet Explorer for Pocket PCs, Blazer, or Eudora for Palm OS, or Opera for
Linux handheld devices). Link to the LookAt Mobile Edition from the LookAt
Web site.
You can obtain code to install LookAt on your host system or Microsoft Windows
workstation from a disk on your z/OS Collection (SK3T-4269) or from the LookAt
Web site (click Download, and select the platform, release, collection, and location
that suit your needs). More information is available in the LOOKAT.ME files
available during the download process.
The purpose of Optim Database Relationship Analyzer is to discover and save the
table relationship information in the form of groups, and to administer these
relationship groups for the enterprise environment. The groups are available for
any DBMS tools or DBMS applications that find the information vital for
performing administrative tasks. Optim Database Relationship Analyzer can help
you to:
v Discover the many relationships between tables in an enterprise environment,
including the relationships that are hard to find and manage, such as monthly or
year-end, dynamic, or transient applications
v Enable the grouping of related tables based on their usage in the environment,
such as inventory and sales tables
v Identify relationship groupings to keep data relationally intact for archiving,
recovering, testing, and replicating with other tools
v Flag changes between groups to help the DBA validate that the application
changes are correct
The following figure illustrates the uses for Optim Database Relationship Analyzer,
and how the tool receives and processes data.
The Optim Database Relationship Analyzer metadata database, which holds all of
the Optim Database Relationship Analyzer metadata, exists on the Optim Database
Relationship Analyzer server. The Optim Database Relationship Analyzer client
connects to the Optim Database Relationship Analyzer metadata database through
the Apache Derby client/server connection. Then, Optim Database Relationship
Analyzer connects to the user databases through the DB2 and Oracle clients that
are found on the Optim Database Relationship Analyzer server system.
The Optim Database Relationship Analyzer client connects to the Optim Database
Relationship Analyzer server on z/OS through DB2 Connect™ with JDBC
connection. The Optim Database Relationship Analyzer metadata database is
created on the same system as the DB2 user database. The Optim Database
Relationship Analyzer client can access the Optim Database Relationship Analyzer
metadata database through the Optim Database Relationship Analyzer Java™
engine.
Each time that you want to discover relationships between tables that are based on
a given set of parameters, Optim Database Relationship Analyzer creates a new
version of a group or groups. This process is called group discovery. You can run a
catalog-wide group discovery, or you can find only the tables that are related to
your starting point table. You can also take advantage of the group validation
feature to compare one version of a group of tables to another version of a group
of tables to determine if any changes have occurred in the DBMS environment or
in the applications that reference the tables in the groups. Understanding the
relationships that exist within your database can have numerous benefits, for
example:
v Finding table relationship data can help you to perform impact analysis across
databases before you delete or modify information (such as changing phone
numbers or renaming columns).
v The group validation feature helps you to analyze information before and after
you make such changes to the database as deleting or creating tables or making
application updates that affect runtime table interactions.
v The Trace Analyzer feature helps you find table relationships that are not
defined in the catalog and helps you to observe the runtime table interactions of
external applications that access your database.
v Understanding table relationships makes it much easier to identify and remove
duplicate or unused objects, which can increase system performance.
v A clear picture of table relationships can also help ensure data consistency by
keeping data relationally intact, which is essential for archiving, backup and
recovery, creating practical test environments, and understanding relationships
in replication subscriptions.
The following task provides the detailed steps to complete this scenario:
1. Steve creates an Optim Database Relationship Analyzer inventory application
set. Within the set, Steve creates a group discovery configuration that contains
the specific options that will result in the discovery of a group of related tables.
Steve will:
a. Right-click the user database and select Create New Set or click the toolbar
icon and name the set in the Create New Set wizard.
b. Right-click the set and select Create New Group Discovery Configuration
from the menu options. He can also click the Create New Group Discovery
Configuration icon from the toolbar to complete this step.
c. Enter the name of the new configuration and click Finish. The Group
Discovery Configuration Editor opens.
Results
The type of validation information that Steve discovers with Optim Database
Relationship Analyzer will help him to understand the changes that other people
make to the database and help him to catch inconsistencies or mistakes quickly.
Related tasks
“Validating changes by using version comparison” on page 75
You can validate changes that were made to your database or database application
by comparing different versions of your group discovery results.
Sameer is a new DBA who has just been hired by a banking company. Sameer
wants to change and restructure the Customer table of one of the company’s
databases. Specifically, Sameer wants to change the column data type in the
Customer table from varchar(18) to varchar(128), and he wants to break the
Customer table into two tables: Customer and Customer_Info.
The following task provides the detailed steps to complete this scenario:
1. Sameer turns on the SQL trace on the user database for 24 hours. Depending
on the type of the database server, he has the following options:
Results
Sameer can now examine the groups of related tables to determine the impact that
the changes to the Customer table will have on the database. After impact analysis,
Sameer and his team can change the Customer table column data type to varchar
(128), add the Customer_Info table, and make all of the necessary changes to the
tables that are related to the Customer table. Additionally, Sameer can now notify
the developers of the applications to update the applications according to the new
database structure.
Related concepts
“The Optim Database Relationship Analyzer Trace Analyzer” on page 14
The Trace Analyzer is a program that accesses trace information and finds tables
that are referenced within it. After running the Trace Analyzer, you can run the
group discovery process with the Trace Analyzer results as the relationship source
to discover the relationships between these tables.
Steve, a senior DBA at a banking company, asks Sameer, a junior DBA, to archive
the data for former customers. The archive will function as a restore point for the
customers who want to reopen their old accounts. Steve also wants to use the
archived tables as a test database for the new customer inventory application that
the company is developing. Sameer needs to archive the Customer table from the
company’s database and all of the related tables by using Optim Data Growth or
any other archiving or backup tool. However, Sameer does not know how many
tables are related to the Customer table, so he will use Optim Database
Relationship Analyzer to find the table relationships. Optim Database Relationship
Analyzer can help Sameer answer the following questions:
v How do I know what objects are related so that I can archive them together?
v How do I know what other database objects I need to restore to the same point?
v How do I identify all of the tables that are needed in a test database?
The following task provides the detailed steps to complete this scenario:
1. Sameer creates an Optim Database Relationship Analyzer set. Within the set, he
creates a group discovery configuration with specific discovery options that
will result in the discovery of a group of related tables:
a. Right-click the user database and select Create New Set or click the toolbar
icon and name the set in the Create New Set wizard.
b. Right-click the set and select Create new group discovery configuration
from the menu options. You can also click the Create New Group
Discovery Configuration icon from the toolbar to complete this step. The
Create New Group Discovery wizard is displayed.
c. In the Create New Group Discovery wizard, enter a name for the group
discovery configuration, an optional description, and then click Finish. The
Group Discovery Configuration Editor opens.
2. Sameer will then specify the options that he wants to use to define the group
discovery process. He will:
a. In the Group Discovery Configuration Editor, add the Customer table as the
starting point table and save the configuration. You can access the Group
Discovery Configuration Editor by selecting Create New Group Discovery
Configuration or by right-clicking the group discovery configuration and
selecting Edit group discovery configuration from the menu.
3. Run the group discovery process.
a. Right-click the group discovery configuration and select Run Group
Discovery from the menu options.
b. In the Run Group Discovery wizard, review the group discovery
configuration.
c. Enter a job description. A meaningful job description can help Sameer
identify this group discovery process job run at a later time.
d. Click Finish to start the group discovery process.
The Group Discovery Results window opens when the process is finished.
Sameer now has a version of the group of all of the tables that are related to
the Customer table.
4. Sameer can now review the results of the group discovery process. He will:
a. If Sameer has closed the Group Discovery Results window, he can open it
by right-clicking the version and selecting View Relationships for This
Version. He can also right-click a group and select View Relationships for
This Group to view the relationships for that group. In the Group
Discovery Results window, he can click on the nodes the represent groups
of tables to explore the column based relationships within them. See
“Analyzing group discovery results” on page 71 for more information.
5. If the group discovery process captured all of the tables that he wanted, Sameer
can finalize his group discovery configuration. He can right-click the
configuration and select Finalize.
After Sameer finalizes the group discovery configuration, each run of the group
discovery process that uses that configuration will create a new version. If he
does not finalize the configuration , each new run of the group discovery
process with that configuration will replace the current version.
Results
Relationship Sources
Starting point
tables
Database catalog
Group
Discovery
Group
SQL trace discovery
configuration
Trace Analyzer scope
results
Related reference
“Group discovery stored procedure” on page 88
Use the GRDDISCRUN stored procedure to run the group discovery process.
When SQL trace is activated, the database trace monitors and records database
activity such as the SQL statements that are transmitted from the application to the
database using the database connection. The Trace Analyzer analyzes these SQL
statements and records the tables that are referenced within them into the Optim
Database Relationship Analyzer metadata database.
Groups
output
Group
input Discovery
Process
DB
Trace Analyzer
output results
input Trace
Analyzer
SQL Trace
Figure 5. Using the Trace Analyzer results with the group discovery process.
The Trace Analyzer can help the group discovery process to find relationships that
are not defined in the database catalog. For example, when an SQL application
regularly accesses and updates a certain number of tables that are not related in
any other way, the Trace Analyzer will still discover all of those tables by
analyzing the SQL statements. Through the group discovery process, you can use
the Trace Analyzer output to find the relationships between tables and the
applications within the database that access those tables. The Trace Analyzer
process supports DDL and DML statements such as, CREATE, ALTER, INSERT,
SELECT, DELETE, UPDATE and LOCK.
The Optim Database Relationship Analyzer integration API function contains a set
of SQL views and stored procedures that are defined on the Optim Database
Relationship Analyzer metadata database. You can use these views and stored
procedures to retrieve group information and table relationship information.
Any DBMS tool or application can use the group discovery configurations to
retrieve information that might be helpful in administering your environment.
DBMS applications can call these stored procedures. Optim Database Relationship
Analyzer provides sample code statements that you can use to create a sample
program to call integration stored procedures.
Summary of changes
This topic summarizes the technical changes for this edition.
New and changed information is indicated by a vertical bar (|) to the left of a
change. Editorial changes that have no technical significance are not noted.
| Optim Database Relationship Analyzer v 2.1 includes the following new features:
| New Eclipse-based user interface
| Optim Database Relationship Analyzer client comes in an Eclipse v 3.4.2
| IDE-based user interface, which provides shell-shared capability with other
| Eclipse-based applications such as Optim Designer.
| Column-based table relationships
| Optim Database Relationship Analyzer now discovers column-based table
| relationships for package, trigger, and Trace Analyzer relationship sources.
| Version Comparison Results dialog improvements
| Icons are now used in the Version Comparison Results view to highlight
| the added, deleted, and starting point tables.
| Version comparison API
| Version comparison API provides the ability to run the option from a user
| application or from the command line.
| User-defined relationships and additional relationships sharing
| The group discovery process no longer consider the user-defined
| relationship information as a relationship source. You can specify
| user-defined relationships on the database level and import these
| relationships into your group discovery configuration as additional
| relationships. The user-defined relationship information is global, and it
| can be shared between the database users. You can also export your
| additional relationships into the list of user-defined relationships, so that
| they can be shared between users. You can also import from the
| user-defined relationships list into the ignored relationships list in the
| group discovery process. You can not export from the ignored relationships
| into the user-defined list because ignored relationships do not have column
| information.
| Terminology changes
| The term view used in Optim Database Relationship Analyzer v 1.1 has
| been changed to group discovery configuration.
| The term user-defined RI is no longer used because user-defined RIs are no
| longer a relationship source for the group discovery process. User-defined
| relationships are relationships that can be imported into your group
| discovery process as additional relationships or ignored relationships.
The Optim Solutions Library page provides current product documentation that
you can view, print, and download. To locate publications with the most
up-to-date information, refer to the following Web page:
http://www.ibm.com/software/data/data-management/optim/library.html
The Data Management Tools Solutions Web site shows how IBM solutions can help
IT organizations maximize their investment in DB2 and IMS™ databases while
staying ahead of today’s top data management challenges:
http://www.ibm.com/software/data/db2imstools/solutions/index.html
To automatically receive a weekly email that notifies you when new technote
documents are released, when existing product documentation is updated, and
when new product documentation is available, you can register with the IBM My
Support service. You can customize the service so that you receive information
about only those IBM products that you specify.
Accessibility
Accessibility features are included to help users who have a physical disability,
such as restricted mobility or limited vision, to use this software product
successfully.
Important: In the Version Comparison Results view, any row with a blank entry in
the Comments column indicates that the table in that row is common
to the two versions. A screen reader program might read the table,
The following platforms are supported for the Optim Database Relationship
Analyzer server installation:
v Windows XP, 2003, 2008, and Vista (32 bit)
v AIX Version 5.3, and 6.1 (64 bit)
To install Optim Database Relationship Analyzer server, you must have one or
more of the following clients installed on your system (check the product
README file for the latest maintenance information):
v IBM DB2 UDB client V9.7 for Linux, UNIX, and Windows or later
v IBM DB2 UDB client V9.5 for Linux, UNIX, and Windows or later
v IBM DB2 UDB client V9.1 for Linux, UNIX, and Windows Fix Pack 4 or later
v Oracle Database 10g client
Attention: The JDBC driver for Oracle needs to be in the classpath on the server
for Optim Database Relationship Analyzer to be able to connect to an Oracle
database.
The Optim Database Relationship Analyzer server has the following hardware
requirements:
v Memory and disk space sufficient to fulfill DB2 or Oracle minimum
requirements
v Temporary disk space for product installation:
– Approximately 250 MB on Windows
– Approximately 360 MB on AIX
– Approximately 400 MB on Solaris
Important: For Windows systems, the installation program uses the directory in
the TEMP environment variable to store the temporary files. For
UNIX, the installer uses /tmp as the default temporary directory.
Prior to running the installation program, ensure that you have
enough disk space in these directories.
v Disk space requirements for installing the product files:
– Approximately 150 MB on Windows
– Approximately 175 MB on AIX
– Approximately 210MB on Solaris
To install the Optim Database Relationship Analyzer server on UNIX systems, you
must be logged in as a database instance owner with root authority.
1. Place the Optim Database Relationship Analyzer CD into the CD drive or
unzip the install archive into a temporary directory and run the installation file
draxxxsvrsetup where xxx stands for the specific platform that you want to use.
For example, the installation file for Windows systems is drawin32svrsetup.exe
.
2. On the Introduction page, click Next to continue the installation. If the Optim
Database Relationship Analyzer server is already installed on the machine, you
will be asked to exit the installation program.
3. On the next page, accept the terms of the license agreement and click Next
4. Choose the destination folder on the next page and click Next. The default
installation location is set to C:\Program Files\IBM\ for Windows and /opt/IBM
for UNIX.
5. Enter the schema names for the metadata tables and stored procedures for the
Optim Database Relationship Analyzer metadata database and click Next. The
default value for both fields is GRDV2.
6. If the installation process cannot automatically reserve a port number for the
Optim Database Relationship Analyzer metadata database, enter a new port
number. By default, the installation wizard will try to reserve port 49953. If this
port is not available, the process will try the next 24 consecutive port numbers
from 49954 to 49977. If none of the port numbers are available, you will need to
enter a different port number between 50000 and 60000. If the host name and
the port number are identified, the installation wizard will display the values
on the Collect Configuration Information page and ask if you want to start the
network server.
7. Click Yes if you want to start the Optim Database Relationship Analyzer server
after the installation.
8. On the summary page, verify that you have enough disk space and click
Install. The Optim Database Relationship Analyzer server installation process
starts. After copying the files, the installation program will create the Optim
Database Relationship Analyzer metadata database and start the Optim
Database Relationship Analyzer server if you chose to start the server during
the installation.
9. When the installation is complete, click Done to exit the wizard.
Results
After installation, go to the server directory to verify that the metadata database is
created successfully. View the grddbcreate.out and grdnetwork.out log files in the
DatabaseRelationshipAnalyzer2.1\server\log directory. If the grddbcreate.out file
has errors, you should correct them and reinstall Optim Database Relationship
Analyzer. If there are errors in the grdnetwork.out file, you can rerun the
grdStartNetworkServer script.
Related concepts
“The Optim Database Relationship Analyzer metadata database” on page 42
The Optim Database Relationship Analyzer metadata database (GRDDBV2) is a
collection of program configuration data, user database connections, user actions,
trace information, and other data that is used by Optim Database Relationship
Analyzer.
Related tasks
“Creating and configuring metadata information for z/OS” on page 31
For z/OS systems, you need to create and configure the Optim Database
Relationship Analyzer metadata information.
Chapter 2, “Installing and configuring Optim Database Relationship Analyzer,” on
page 21
The general process of installing and configuring Optim Database Relationship
Analyzer consists of installing the server and client components, and configuring
the client to connect to the server metadata database.
INSTALLER_UI=silent
LICENSE_ACCEPTED=true
#Choose Install Folder
#---------------------
USER_INSTALL_DIR=C:\\Program Files\\IBM
In the response file, the lines that start with a pound symbol (#) are comments,
the USER_INSTALL_DIR parameter defines the installation directory, the
USER_SCHEMA_1 parameter defines the schema name for the metadata
database tables, the USER_SCHEMA_2 parameter defines the schema name for
the metadata database stored procedures, and the
USER_NETWORK_RESULTS_1 parameter defines if you want to start the
network server after the installation.
2. Save the response file. For example, you can save it as server.properties.
3. Start the silent installation by adding the -f option with the response file name
to the installation command. For example, for Windows systems, type:
drawin32svrsetup.exe -f C:\server.properties
Where xxx is the platform that you want to use and server.properties is the
absolute path to the response file.
Results
to add johnsmith as a user with a password of temp4now. The user name and
the password are case sensitive.
4. Restart the Optim Database Relationship Analyzer server.
Related concepts
“The Optim Database Relationship Analyzer for Linux, UNIX, and Windows server
security” on page 87
Because the Optim Database Relationship Analyzer for Linux, UNIX, and Windows
server uses an Apache Derby database to store metadata information, the Optim
Database Relationship Analyzer for Linux, UNIX, and Windows server follows the
Apache Derby security policy to protect the database.
Related tasks
“Starting and stopping the Optim Database Relationship Analyzer server”
To start the Optim Database Relationship Analyzer server manually, run the
grdStartNetworkServer script while you are logged in as the database instance
owner. Use the grdStopNetworkServer script to stop the Optim Database
Relationship Analyzer network server.
For UNIX systems, the instance owner will need root authority to run the
grdStartNetworkServer and grdStopNetworkServer scripts.
The Optim Database Relationship Analyzer network server, which holds all of the
user metadata, serves as a connection between your Oracle or DB2 databases and
the Optim Database Relationship Analyzer client. When you first install the Optim
Database Relationship Analyzer server application, the installation program will
ask you if you want to start the Optim Database Relationship Analyzer server
automatically. If you click Yes, the Optim Database Relationship Analyzer server
will start, and you can run Optim Database Relationship Analyzer immediately.
The Optim Database Relationship Analyzer network server stops whenever the
system is shut down, so you need to restart the server manually every time you
restart the system.
1. Change to the DatabaseRelationshipAnalyzer2.1\server\config directory for a
Windows system or change to the DatabaseRelationshipAnalyzer2.1/server/
config directory for UNIX systems. For Windows platforms, you can also click
Start → All Programs → IBM Optim Database Relationship Analyzer Server 2.1
and select the Start Server or Stop Server options.
2. Run either the start or stop scripts for your system.
UNIX: For UNIX systems, you must have a database instance owner with
root authority to start the network server.
If you want to use Optim Database Relationship Analyzer with a DB2
database, you need to be in a DB2 environment (for example, you need to
have an environment set up by the db2profile script). To use Optim Database
Relationship Analyzer with an Oracle database, you must verify that the
ORACLE_HOME environment variable is set up.
Important: If you install Oracle on the same machine that you want to
install the Optim Database Relationship Analyzer server and that
machine has a dynamic IP address, then you must start the
network server with 0.0.0.0 as the HostName, which is the third
parameter inside the start and stop server scripts. You must do
this because Oracle requires that a loopback adapter is installed
for this kind of configuration. However, the Optim Database
Relationship Analyzer server, Derby, assumes that you are using
a local system if there is a loopback. That would mean that only
a client on the same system could access the server using
localhost. In order for remote clients to access to this kind of
server system (dynamic IP and Oracle installed), the 0.0.0.0 needs
to be set when you start the Optim Database Relationship
Analyzer server.
v To stop the Optim Database Relationship Analyzer server, run the
grdStopNetworkServer.bat script for Windows systems or the
grdStopNetworkServer.sh script for UNIX systems.
Important: For UNIX systems, you need to have root authority to stop the
Optim Database Relationship Analyzer server.
Related concepts
“The Optim Database Relationship Analyzer for Linux, UNIX, and Windows server
security” on page 87
Because the Optim Database Relationship Analyzer for Linux, UNIX, and Windows
server uses an Apache Derby database to store metadata information, the Optim
Database Relationship Analyzer for Linux, UNIX, and Windows server follows the
Apache Derby security policy to protect the database.
Related tasks
“Setting up login credentials to Optim Database Relationship Analyzer server” on
page 25
Optim Database Relationship Analyzer administrator with root authority can
change the default user password or add more user entries to manage access to the
Optim Database Relationship Analyzer server.
When you uninstall the Optim Database Relationship Analyzer server, the
uninstallation removes all of the files created by the installation process as well as
the metadata database.
Uninstalling the Optim Database Relationship Analyzer server will also shut down
the Optim Database Relationship Analyzer network server if it is running.
1. Launch the uninstaller. You have the following options:
v Select IBM Optim Database Relationship Analyzer Server 2.1 from the list
of programs in the Add or Remove Programs window in Windows Control
Panel and click Change/Remove.
v Run Uninstaller.exe from the uninst folder in your Optim Database
Relationship Analyzer server home directory.
2. Follow the instructions of the uninstallation wizard.
Attention: If you used silent installation to install Optim Database
Relationship Analyzer server, the uninstallation process will also be performed
silently without displaying the uninstallation wizard.
Results
The Optim Database Relationship Analyzer server is removed from your system.
Restriction: You must be logged in as the root user to perform this procedure.
Uninstalling the Optim Database Relationship Analyzer server will also shut down
the Optim Database Relationship Analyzer network server if it is running.
1. Change to the $GRDV2SERVERHOME/uninst directory.
2. Launch the uninstaller by running ./Uninstaller. The initial uninstallation
window is displayed for all supported platforms.
3. Follow the instructions of the uninstallation wizard.
Attention: If you used silent installation to install Optim Database
Relationship Analyzer server, the uninstallation process will also be performed
silently without displaying the uninstallation wizard.
Results
The Optim Database Relationship Analyzer server is removed from your system.
The Optim Database Relationship Analyzer server has the following software
requirements:
v IBM z/OS Version 1 Release 9 or later, with UNIX System Services (USS),
Workload Manager (WLM), and Resource Recovery Services (RRS)
v DB2 UDB for z/OS V8 or V9 with a DB2 JDBC/SQLJ driver
v REXX language support for DB2
v Java 6 SDK for z/OS
The Universal JDBC driver does not use the same JDBC packages as the z/OS
JDBC drivers. It also uses a different process for binding its packages. The
Universal JDBC driver uses a DRDA-based connection to the target DB2 system
when creating the required packages (JCC).
To bind the JCC drivers, you can either run the supplied GRDJBIND member in
SGRDSAMP data set, or you can bind the drivers manually, which requires UNIX
System Services (USS) access. To bind the drivers manually, complete the following
steps.
1. Update your CLASSPATH, PATH, and LIBPATH.
If you are using your own USS directory to bind the packages, make sure that
you have the correct CLASSPATH, PATH, and LIBPATH settings to run the JCC
Binder. You can avoid manually updating the CLASSPATH by ensuring that the
USS profile is updated correctly with the CLASSPATH, PATH, and LIBPATH
information or by ensuring that your USERIDs profile contains the correct
CLASSPATH, PATH, and LIBPATH information. You can update the
CLASSPATH, PATH, and LIBPATH statements in the /etc/profile file or in the
.profile file in your home directory. The following examples show the proper
settings for the CLASSPATH, PATH, and LIBPATH environment variables:
CLASSPATH
CLASSPATH=/usr/lpp/db2/db2810/jcc/classes/db2jcc_license_cisuz.jar
CLASSPATH=/usr/lpp/db2/db2810/jcc/classes/db2jcc.jar:$CLASSPATH
export CLASSPATH
PATH
PATH=/usr/lpp/java160/J6.0/bin:$PATH
PATH=/usr/lpp/db2/db2810/jcc/bin:$PATH
export PATH
LIBPATH
LIBPATH=/usr/lpp/db2/db2810/lib:$LIBPATH
LIBPATH=/usr/lpp/db2/db2810/jcc/lib:$LIBPATH
export LIBPATH
2. Invoke the JDBC bind from the command line, for example:
What to do next
For information about Java in USS and WLM environments, see the DB2 for z/OS
Stored Procedures: Through the CALL and Beyond at http://www.redbooks.ibm.com/
Redbooks.nsf/RedbookAbstracts/sg247083.html?Open.
Tip: Use the default schema name GRDV2 without any change. If, however,
for any reason a different schema name is required, be sure to change
the schema names consistently in the copies of all members of the
SGRDSAMP target library that have the GRDV2 schema names.
3. Set up the default properties in the GRD_USERPROPS table by running the
GRDDEFPR member in the SGRDSAMP data set. Optim Database Relationship
Analyzer adds a new row with the user name into GRD_USERPROPS table
while connecting from client to server. The following information can help you
configure the member:
Table 1. The values and descriptions for the GRD_USERPROPS table.
Property Default value Description
USERID DRA_DEFAULT_PROPS The authorization ID to
access to the Optim Database
Relationship Analyzer
metadata database
GRD_METADATA_OWNER GRDV2 The schema name for the
Optim Database Relationship
Analyzer metadata tables
GRD_STORPROC_SCHEMA GRDV2 The schema name for the
Optim Database Relationship
Analyzer stored procedure
LOGFILE USERID The default high-level
qualifier that Optim
Database Relationship
Analyzer uses to allocate log
files; with the default
USERID value, the log files
will be named
user_ID.GRDLOG and
user_ID.GRDDBG.LOG
LOGLEVEL 2 Provides the logging level for
the Optim Database
Relationship Analyzer log
files. You can use the
following values:
v 1 for log execution,
warning, and error
information
v 2 for warning, and error
information
v 3 for error information
only
When you install Optim Database Relationship Analyzer client, you have the
option of:
v Creating a new Eclipse installation (also called a package group)
Using a new Eclipse installation is recommended if you are a new user of Optim
Database Relationship Analyzer client because it is the simplest and easiest way
to install Optim Database Relationship Analyzer client.
v Using an existing package group that was created for other products that were
installed with IBM Installation Manager
v Extending an existing Eclipse installation (version 3.4.2)
Extending an existing Eclipse installation is recommended only if you have a
complete understanding of your environment and requirements.
The following platforms are supported for the Optim Database Relationship
Analyzer client:
v Windows XP (32 bit)
v Windows Vista (32 bit)
The Optim Database Relationship Analyzer client has the following hardware
requirements:
v Approximately 750 MB of temporary disk space for product installation
| Results
Results
All of the files are installed into the destination directory in the
DatabaseRelationshipAnalyzer1.1\client subdirectory.
The Optim Database Relationship Analyzer client is removed from your system.
Tip: You can also uninstall the Optim Database Relationship Analyzer client from
the Windows Control Panel. Click Start → Control Panel → Add/Remove
programs → IBM Optim Database Relationship Analyzer client and click
Remove.
Results
The Optim Database Relationship Analyzer client is removed from your system.
| Results
The process
The following process describes the high-level steps that you will take to discover
relationships with Optim Database Relationship Analyzer:
1. Create a new database connection to the Optim Database Relationship Analyzer
metadata database.
2. Connect to a user database.
3. Configure the options that you want to use during the group discovery process.
4. Run the group discovery process.
5. Review the results of the group discovery process.
6. Turn on the SQL trace on your database and run the Trace Analyzer to find
tables that are referenced within trace information. After running the Trace
Analyzer, you can run the group discovery process with the Trace Analyzer
results as the relationship source to discover relationships between these tables.
7. Edit, change, and modify the options for the group discovery process to fit
your needs.
8. Finalize the group discovery configuration for reuse.
9. Use the relationships that Optim Database Relationship Analyzer discovers to
make informed decisions when working with your database and database
applications.
The Optim Database Relationship Analyzer metadata database for Linux, UNIX,
and Windows is an Apache Derby database, and it is serviced by the Derby
Network Server, which is started by the Optim Database Relationship Analyzer
server. The Optim Database Relationship Analyzer metadata database is configured
during the server installation process and resides in the server subdirectory of
your main installation directory.
To use an Optim Database Relationship Analyzer server for Linux, UNIX, and
Windows and to configure the Optim Database Relationship Analyzer client to
connect to it, you need to start the Derby Network Server first. You can start the
Derby Network Server after you have finished configuring the Optim Database
Relationship Analyzer metadata database during the Optim Database Relationship
Analyzer server installation. The Derby Network Server will stop every time you
shut down the server system. Therefore, you will need to restart the Derby
Network Server to continue using Optim Database Relationship Analyzer.
z/OS
The Optim Database Relationship Analyzer metadata database for z/OS is a DB2
database, and it is configured during the installation process.
Related concepts
“Optim Database Relationship Analyzer server log and debug log files” on page
123
Use Optim Database Relationship Analyzer server log and debug log files to detect
problems and collect diagnostic information before you contact IBM Software
Support.
Related tasks
“Installing the Optim Database Relationship Analyzer server by using the
installation wizard” on page 23
You can install the Optim Database Relationship Analyzer server on Windows and
UNIX systems by using the installation wizard.
“Creating and configuring metadata information for z/OS” on page 31
For z/OS systems, you need to create and configure the Optim Database
Relationship Analyzer metadata information.
Chapter 2, “Installing and configuring Optim Database Relationship Analyzer,” on
page 21
The general process of installing and configuring Optim Database Relationship
Analyzer consists of installing the server and client components, and configuring
the client to connect to the server metadata database.
| User databases
| User databases are databases that contain user objects that Optim Database
| Relationship Analyzer can analyze to discover relationships. Optim Database
| Relationship Analyzer metadata database stores connections to user databases.
Sets
A set is a collection of group discovery configurations. You can create a set with
group discovery configurations that apply to the same application or that have
similar functions or purposes. For example, you can create one set to work with
accounting applications and another set for product order related work. Under the
same set you can create several group discovery configurations to discover
relationships with different discovery options.
The following figure shows that a set can contain various group discovery
configurations with different names.
Set
You can perform the following tasks with group discovery configurations:
v Refine the group discovery configuration in a pre-finalized state
v Rerun the group discovery process
v Run the Trace Analyzer and view the results
v Copy or delete group discovery configurations
v Update the properties of group discovery configurations
v Lock or unlock group discovery configurations
v Finalize group discovery configurations
Versions
A version is the result of running the group discovery process. Each version
contains a collection of different groups that are created by running the group
discovery process with a certain configuration. Each version appears in the tree
navigation view under the configuration that was used to create it.
Groups
You can view the table relationships that were returned by the group discovery
process. The options that you specify in the Group Discovery Configuration Editor
determine what is returned in your groups. While the group discovery
configuration is in the pre-finalized state, you can refine those options until you
have the desired groups of related tables.
| The connection has been saved under your database connections. From now on,
| you can right-click the database connection and select Connect to connect to the
| metadata database.
| Before you can connect to a user database, you must configure an Optim Database
| Relationship Analyzer metadata database connection, and your user database must
| be set up.
| You can set up your user database in one of the following ways:
| v From the Data Source Explorer tab, create a DB2 for Linux, UNIX, and Windows
| or Oracle database connection.
| v From the Optim Database Relationship Analyzer server system, define the user
| database by using DB2 Configuration Assistant or Oracle Net Configuration
| Assistant. Refer to DB2 or Oracle documentation for more information on how
| to use the appropriate configuration assistant.
| 1. In the Optim Database Relationship Analyzer perspective, click on the Data
| Source Explorer tab.
| 2. Right-click your Optim Database Relationship Analyzer metadata database in
| the Database Connections folder and select Connect. Now you are connected to
| your Optim Database Relationship Analyzer metadata database.
| 3. Click on the Discovery Explorer tab and click on the Select a Metadata
| Database icon.
| 4. Select your Optim Database Relationship Analyzer metadata database from the
| list and click Next. A list of user databases is displayed.
| 5. Follow the instructions in the wizard to establish the connection.
| Results
| The user database that you are currently logged into is the first object that is
| shown in the Discovery Explorer view. The expandable sections show the sets,
| group discovery configurations, versions, and groups for the user database that
| Optim Database Relationship Analyzer analyzes. If this is not the user database
| that you want to work with, you can switch to another database.
| Results
| The user database is now the root of the navigation tree in the Discovery Explorer
| view.
| The user database or subsystem that you are currently logged into is the first
| object that is shown in the Discovery Explorer view. If this is not the subsystem or
| the user database that you want to analyze, you can switch to a different Optim
| Database Relationship Analyzer metadata database.
| 1. Select Select a Metadata Database from the drop-down menu of the Discovery
| Explorer tab or select the corresponding toolbar item. The Select a Metadata
| Database wizard opens.
| 2. If you have already configured a metadata database, select that database from
| the list of metadata databases in the Select a Metadata Database wizard and
| click Connect. If the metadata database that you want to use is not shown in
| the list, you need to connect to it through the database connection in the Data
| Source Explorer view. See “Creating a database connection to an Optim
| Database Relationship Analyzer metadata database” on page 45 for more
| information.
| 3. If the metadata database is on a Linux, UNIX, and Windows system, click Next.
| A list of user databases is displayed. Select the user database that you want to
| analyze and enter your user name and password.
| Remember: For z/OS systems, the metadata database and the user database
| that you are analyzing are in the same subsystem.
| 4. Click Finish
| Results
| Depending on your platform, the user database or the subsystem is now the root
| of the navigation tree in the Discovery Explorer view.
You can specify options for the group discovery configuration, and Optim
Database Relationship Analyzer uses those options to search the database catalog
and Trace Analyzer results. Optim Database Relationship Analyzer discovers
related tables and returns these tables in a group.
The group discovery process begins with a list of tables specified as the starting
point table or starts the catalog-wide search. The group discovery process finds
column-based table relationships and reference information depending on the
relationship sources specified as group discovery configuration options. The group
discovery process then pulls the discovered tables and their related tables such as
parent tables, child tables, and reference tables into the same group.
You can also specify options to restrict or expand the group discovery process
scope. To restrict the scope, you can specify boundary tables or define relationships
to ignore in the group discovery configuration options. To expand the scope, you
can specify additional relationships for the specified group discovery configuration.
You can specify the options that guide the group discovery process in the Group
Discovery Configuration Editor. Optim Database Relationship Analyzer saves these
options so you do not have to retype them each time you run the group discovery
process.
Before you run the group discovery process, you should configure the options that
determine the rules for the group discovery. If you do not want the group
discovery process to consider every table in the database catalog, you must specify
starting point tables to reduce the scope of the discovery. You can also specify
additional relationships between tables that might not be found in the catalog, as
well as tables and relationships that you want the group discovery process to
ignore.
1. Select the group discovery configuration with which you want to work,
right-click, and select Edit Group Discovery Configuration. The Group
Discovery Configuration Editor opens.
Results
After you configure the options, they are saved within Optim Database
Relationship Analyzer for quick reference each time you run a group discovery
using that group discovery configuration. You can continue refining the discovery
options, expanding or restricting the discovery scope. Once you are satisfied with
the options, you should set the associated group discovery configuration to the
finalized state.
Restriction: Multiple users cannot simultaneously edit the group discovery options
for a given configuration.
If you want the group discovery process to consider every table in the user
database catalog and treat it as a starting point table, you need to select the
catalog-wide option. However, if you want to limit the scope of the group
discovery to a certain subset of tables, you must specify those tables as your
starting point tables. Optim Database Relationship Analyzer will then group the
starting point tables and all of the tables that are related to them into one or more
groups during the group discovery process.
1. In the Group Discovery Configuration Editor, select the Set the Scope tab.
2. Depending on your preference, select either the Catalog-wide or the Starting
point tables option.
3. If you selected Starting point tables, click Add Starting Point Tables to add
one or more starting point tables.
4. Follow the instructions in the Starting Point Tables wizard to complete the task.
5. Press Ctrl + S to save the group discovery configuration.
Results
When you run the group discovery process for this configuration, Optim Database
Relationship Analyzer will discover tables and table relationships that are related
to your starting point table or tables.
If Catalog with the Trigger option is selected as the relationship source for the
group discovery configuration option, the group discovery process will use trigger
events and actions on tables as a criteria for discovering the column-based table
relationships. Relationships derived from triggers are strictly unidirectional. The
parent table of the discovered relationship is always the table that the trigger is
defined on and the child tables are always the tables that are involved in the
triggered action. For example, consider the following table definitions:
If Catalog with the Package option is selected as the relationship source for the
group discovery configuration option, the group discovery process will use
package and its executable objects (static SQL) as a criteria for discovering the
column-based table relationships. For example, consider the following table
definitions:
| Choosing between application level and unit of work level granularity for Trace
| Analyzer results:
| If Trace Analyzer results is selected as the relationship source for the group
| discovery configuration option, the group discovery process will use Trace
| Analyzer results as a criteria for discovering the column-based table relationships
| and trace context information.
| Restriction: Unit of work level granularity is not supported on DB2 for z/OS user
| databases.
| The group discovery process can discover column-based table relationships in the
| Trace Analyzer results in two different ways depending on the behavior of your
| SQL applications in the trace. With the application level granularity, the group
| discovery process groups the tables found in the trace based on the applications
| that accessed the tables. With the unit of work level granularity, the group
| discovery process groups the tables based on the unit of work within the
| applications.
| Tip: If your application uses auto commit after every statement, the unit of work
| level granularity is not useful, and it is better to use the application level
| granularity.
| The group discovery process can also discover trace context information from the
| Trace Analyzer results relationship source. Based on the group discovery
| configuration options, the trace context information shows tables along with all the
| other tables referenced within the same application or unit of work depending on
| your Trace Analyzer granularity selection.
| The Trace Analyzer will find the following results and assign them an internal ID,
| Trace ID, based on the application and the unit of work:
| Table 6. Trace Analyzer based on Application A and Application B
| Application Unit of work Trace ID Table
| APPLA UOW1 APPLA_UOW1 COMPANY
| APPLA UOW1 APPLA_UOW1 ORG
| APPLA UOW1 APPLA_UOW1 PAYSCALE
| APPLB UOW1 APPLB_UOW1 DEPARTMENT
| APPLB UOW1 APPLB_UOW1 EMPLOYEE
| APPLB UOW1 APPLB_UOW1 EMP_ACT
| Running the group discovery process with the application level granularity
| When application level granularity is specified, the group discovery process will
| consider all the tables within the same application ID to be related. If you specify
| EMPLOYEE as the starting point table and Trace Analyzer results with the
| application level granularity as the relationship source in your group discovery
| configuration, the group discovery process will return the following tables:
| Table 7. Tables discovered with the application level granularity
| Application Tables discovered within the application
| APPLA COMPANY, ORG, PAYSCALE
| APPLB DEPARTMENT, EMPLOYEE, ORG,
| EMP_ACT, PROJECT
|
| The following table shows the column-based table relationships discovered through
| the analysis of the table columns in the SQL statements for the applications.
| Running the group discovery process with the unit of work level granularity
| When unit of work level granularity is specified, the group discovery process will
| consider all the tables within the same trace ID to be related. If you specify
| EMPLOYEE as the starting point table and Trace Analyzer results with the unit of
| work level granularity as the relationship source in your group discovery
| configuration, the group discovery process will return the following tables:
| Table 10. Tables discovered with the application level granularity
| Tables discovered within
| Application Unit of work the application
| APPLA UOW1 COMPANY, ORG,
| PAYSCALE
| APPLB UOW1 DEPARTMENT, EMPLOYEE,
| EMP_ACT
| UOW2 DEPARTMENT, ORG,
| PROJECT
|
| The following table shows trace context information for the starting point table
| EMPLOYEE:
| Table 12. Trace context information discovered with the application level granularity
| Tables discovered within
| Application Unit of work the application
| APPLA UOW1 COMPANY, ORG,
| PAYSCALE
| APPLB UOW1 DEPARTMENT, EMPLOYEE,
| EMP_ACT
| UOW2 DEPARTMENT, ORG,
| PROJECT
|
| Related concepts
| “The Trace Analyzer process” on page 76
| The Trace Analyzer process finds user tables that are accessed by applications
| based on their appearance in the SQL trace.
If a table is related to other tables that you do not want to include in your group
discovery, you can add it as a boundary table in your group discovery options. In
this case, during a group discovery, the tables that would have been considered
related to the boundary table will not be drawn into the group (unless they are
drawn together as a result of another relationship). However, the boundary tables
themselves can still be discovered. For example, in the following image, T1 is the
starting point table and T7 is a boundary table:
T2 T4 T7 T9 T11
T5 T12
T6 T8 T13
In this example, the tables T9, T10, T11, T12, and T13 will not be included in the
group discovery results because T7 is a boundary table, and the relationship
between T7 and T9 is not considered by the group discovery process.
The tables that are related to the boundary table can still be discovered by the
group discovery process if they are related to the starting point table in some other
way. For example, in the following image, T1 is the starting point table, T7 is a
boundary table, and a relationship exists between T8 and T13:
T1 T3 T10
T2 T4 T7 T9 T11
T5 T12
T6 T8 T13
In this example, all the tables will be included in the group discovery results
because even though T7 is a boundary table, the relationship between T8 and T13
allows the group discovery process to find the rest of the tables.
1. In the Group Discovery Configuration Editor, select the Restrict the Scope tab.
2. Click Add boundary tables to add one or more boundary tables.
3. Follow the instructions in the Boundary Tables wizard to complete the task.
4. Press Ctrl + S to save the group discovery configuration.
The boundary table is added to the group discovery configuration options. Now,
the tables that are related to this table will not be considered during the group
discovery process.
For example, in the following image T1 is the starting point table, T7 is a boundary
table, and the relationship between T4 and T5 is ignored:
T1 T3 T10
T2 T4 T7 T9 T11
T5 T12
T6 T8 T13
For this example, only the tables T1, T2, T3, T4, and T7 will be included in the
group discovery results.
Important: Ignored relationships are directional. Only the relationships from the
parent table to the child table will be ignored. Relationships from the
child table to the parent table will be considered during the group
discovery process unless you also define an ignored relationship in the
reverse order. Also, if a table is related to other tables in the group by
two different relationships, both relationships will need to be ignored
for the table to be excluded from the group. For example, if Table A is
included into the group because it is related to both Table B and Table
C, then you need to define the relationship between Table A and Table
B and the relationship between Table A and Table C as ignored
relationships to exclude Table A from the group.
1. In the Group Discovery Configuration Editor, select the Restrict the Scope tab.
2. Click Define a relationship to ignore to define one or more relationships. You
can also click Import from User-defined Relationships to add a relationship
that has already been defined and saved in the user-defined relationships list.
Results
The relationship that you have defined will be ignored during the group discovery
process.
| Remember: The group discovery process does not consult the list of
| user-defined relationships. You can use the entries in the list to
| import the relationships into group discovery configurations. The
| relationships will be used during the group discovery process only
| if they are imported and saved.
| 6. Press Ctrl + S to save the group discovery configuration.
| Results
| The relationship that you have defined will be considered during the group
| discovery process.
| The group discovery process behaves differently depending on the state of your
| group discovery configuration:
| Pre-finalized (locked or unlocked) group discovery configurations:
| Pre-finalized group discovery configurations can be either locked or
| unlocked. When you create a group discovery configuration, the
| configuration is in the pre-finalized state and locked by you. You can
| unlock the configuration by right-clicking it and selecting Unlock.
| Unlocked configurations in the pre-finalized state are available for other
| users to lock and work with them. You must lock the configuration to edit
| the options, run the group discovery process, delete the configuration, or
| finalize it.
| What to do next
| Check the job status of the group discovery to ensure that the process ran
| successfully. The result of the run is shown in the Progress view. If the run failed,
| click on the link to bring up the error dialog.
| Tip: If you specified a catalog-wide group discovery, the process might run for a
| long time. In this case, you have the option of running in the background
| mode. See “Running the group discovery process in the background” for
| more information. Even if you do not run the group discovery process in the
| background mode, you can still continue using Optim Database Relationship
| Analyzer while the process is running.
| What to do next
| Check the job status of the group discovery to ensure that the process ran
| successfully.
| The job description that you enter for the Trace Analyzer or group discovery
| process jobs appears in the Description column of the Job Status window. The
| description can help you distinguish between the jobs.
| 1. Right-click the database or the configuration in the Discovery Explorer view.
| 2. Select Check Job Status. The Job Status window opens and displays two tabs:
| v Active Jobs
| v Completed Jobs
| What to do next
| Jobs under the Active tab will have a status of Running. Jobs with a status of
| Running have been submitted but have not yet started. When a job has finished
| running, it will move to the Completed Jobs tab. If a failure occurs while a job is
| running, the job ends and a message is displayed in the Message column under
| the Completed Jobs tab.
| See “Running the group discovery process” on page 68 for more information about
| finalized and pre-finalized group discovery configurations.
| You can now reuse this group discovery configuration to keep track of your groups
| of related tables.
Review the results of the group discovery process to see if the group discovery
process returned the objects that you wanted. If the results are not exactly like you
want them, you can edit the group discovery configuration and run the group
discovery process again.
Results
| From the Group Discovery Results window, you can view column-to-column
| relationships within a tree structure. You can view trace context information and
| table reference information.
| You can click each table in the tree to view the detailed information about the
| selected table and the relationships for it. The detailed information about the table
| specifies, for example, if the table is a starting point table, a boundary table, if it
| has multiple parents, or if it is a part of a circular relationship. A circular
| relationship is a relationship where the child table links back to the parent table.
| The direction of the relationship depends on the active tab. If the Parents tab is
| active, then the selected table in the tab is the parent table and the table above the
| tab is the child table. If the Children tab is active, then the selected table in the tab
| is the child table and the table above the tab is the parent table.
| Click the Children tab or the Parents tab to explore all the child or parent
| relationships for the selected table. For each relationship, you can view the parent
| and child column mapping information, the constraint name, and the relationship
| source.
Restriction: These options are available only for pre-finalized and locked group
discovery configurations.
You can change your starting point tables, expand or restrict the scope of your
search through options such as boundary tables, and then rerun the group
discovery process for more accurate results.
Restriction: These options are available only for pre-finalized and locked group
discovery configurations.
1. Right-click the group discovery configuration that you want to change and
select Edit Group Discovery Configuration. The Group Discovery
Configuration Editor opens.
2. In the Group Discovery Configuration Editor, select the tab that corresponds
with the options that you want to change and make your changes.
3. Press Ctrl + S to save the group discovery configuration.
Results
Merging groups
You can merge two groups in a version created from a pre-finalized group
discovery configuration by specifying a relationship between any two tables in the
two groups.
You need to define a relationship between tables within two groups to merge them
and have the resultant grouping exist in subsequent group discovery runs. To
accomplish this, the group merge process creates an additional relationship
between one or more tables in the merged groups.
1. Select a group in the version that you want to use.
2. Press and hold the Ctrl key and select another group that you want the first
group to be merged into. Both groups will now be highlighted in the
navigation tree.
3. Right-click one of the highlighted groups and select Merge with Each Other.
You can only select two groups at a time.
4. In the Group Merge dialog, define one or more relationships between the two
groups.
a. Select the parent table and the child table. The list of columns in each table
is displayed. The type of each column is shown next to it.
b. Select a column from the parent table and a column from the child table
and click Add Column Mapping. The columns must be of exactly the same
type.
5. Review the list of relationships that is displayed in the lower part of the Group
Merge dialog to ensure that it is complete and click OK. The relationships you
have defined will be added to the list of additional relationships in your group
discovery configuration.
Results
When you run the group discovery process again, the groups will be merged into
one group.
Related tasks
“Specifying group discovery options” on page 49
Group discovery options belong to a specific group discovery configuration and
will affect only group discoveries that are run for that configuration. You can
specify several different options for a pre-finalized group discovery configuration,
and these options will ultimately affect the number of groups and contents of the
groups that are returned by the group discovery process.
| While analyzing your group discovery results, you can add tables from the
| Column-based Relationships view to the list of boundary tables and relationships
| to the list of ignored relationships and then rerun the group discovery process for
| more accurate results.
| Restriction: These options are available only for pre-finalized group discovery
| configuration that you have locked.
| 1. In the Group Discovery Results wizard, select a table from the hierarchy tree of
| the column-based relationships.
| Results
You will need a baseline version of a run of the group discovery process with
which to compare a second version.
1. After changes have been made to your database, you can run the group
discovery process again using the same group discovery configuration that you
ran before. The group discovery configuration must be in the finalized state.
a. Select your group discovery configuration and click Run Group Discovery.
A new version of the group discovery configuration is created.
2. Compare the groups in the first version to the groups in the latest version of
the group discovery results.
Any two versions of a finalized group discovery configuration can be
compared. The comparison is chronological. Regardless of which two versions
are chosen or in what order they are selected, the direction is from the oldest
version to the most recent version.
a. Select DefaultVersion_1 in the navigation tree.
b. With the Ctrl key pressed, select DefaultVersion_2. DefaultVersion_1 and
DefaultVersion_2 are the default names that are assigned to your versions if
you do not rename them.
c. Right-click DefaultVersion_2 and select Compare with Each Other from the
menu options. The Version Comparison Results window opens.
d. Compare DefaultVersion_1 on the left-hand side of the Version Comparison
Results window to DefaultVersion_2 on the right-hand side of the window.
Ensure that the appropriate changes appear in the versions.
You can use the check boxes at the bottom of the window to select which
content is shown and how that content is identified. You can toggle the
highlighting of the added, deleted, and starting point tables. You can use
the Hide Similarities option to visually suppress the tables that are
common between the two versions. You can use the Align to radio buttons
to control how the content is organized. If the alignment is used and there
are scroll bars in the two versions, the scroll bars move in unison, so that
you can move through both versions simultaneously. When the unaligned
option is used, the scroll bars for each version will move independently of
the other.
Results
The type of validation information that you can discover with Optim Database
Relationship Analyzer will help you to better understand the changes that other
people make to your database or database application and help you to quickly
catch inconsistencies or mistakes.
Related tasks
“Scenario: Validating database changes by using Optim Database Relationship
Analyzer” on page 5
This scenario describes how a DBA can use Optim Database Relationship Analyzer
to quickly validate that the correct changes were made to a database.
The Optim Database Relationship Analyzer group discovery process with the Trace
Analyzer results as a relationship source uses the Trace Analyzer results to find
relationships between the tables. Using the Trace Analyzer information is optional
and is not required for running the group discovery process.
Remember: If you want to use the Trace Analyzer results during the group
discovery process, you have to run the Trace Analyzer first.
Important: You can run the Trace Analyzer for a group discovery configuration
that is in either pre-finalized state or finalized state. For a group
discovery configuration in pre-finalized state, you must lock the
configuration first.
Before running the Trace Analyzer, you need to turn on the SQL trace on the
database that you are trying to monitor. To turn the trace on for a DB2 for Linux,
UNIX, and Windows server, you need to create a DB2 event monitor and start the
trace. For example:
create event monitor name for statements write to table
set event monitor name state=1
Where state=1 turns on the monitor. You will need the monitor name to provide
Optim Database Relationship Analyzer with the event monitor statement table
name. Refer to DB2 for Linux, UNIX, and Windows documentation for more
information on how to create a DB2 statement event monitor. Stop the trace before
you run the Trace Analyzer.
Restriction: The user IDs that run the Trace Analyzer must have the appropriate
permissions to access the DB2 event monitor statement table.
1. Start the Optim Database Relationship Analyzer client.
2. Create a new Optim Database Relationship Analyzer set and configuration if
needed.
a. Right-click the user database and select Create New Set or click the toolbar
icon and name the set in the Create New Set wizard.
b. Right-click the set and select Create New Group Discovery Configuration
from the menu options. You can also click the Create New Group
Discovery Configuration icon from the toolbar to complete this step.
c. Enter a name for the group discovery configuration and click Finish. Optim
Database Relationship Analyzer locks the group discovery configuration.
The group discovery configuration must be locked before you can run the
Trace Analyzer.
3. Run the Trace Analyzer on the group discovery configuration.
a. Right-click the group discovery configuration and select Run Trace
Analyzer from the menu options.
b. Enter the DB2 event monitor statement table name and the date and time
range for the results of the SQL trace to be considered. You can click
Browse to select an event monitor statement table from your user database.
Attention: If you create an event monitor, DB2 will by default create a
statement table with the name consisting of the STMT_ prefix and your
monitor name. For example, if the monitor name is DRASAMPLE, then the
statement table name is STMT_DRASAMPLE.
Remember: Deleting the previous Trace Analyzer results does not delete
any information from your existing groups.
d. Enter a job description. A meaningful job description can help you identify
this Trace Analyzer job at a later time.
e. Click Finish to start the Trace Analyzer.
The Trace Analyzer examines the SQL trace results within the specified date
and time range and records the tables that were accessed by different
applications into the Optim Database Relationship Analyzer metadata database.
4. After the Trace Analyzer has finished running, right-click your group discovery
configuration and select View Trace Analyzer Results to view the results.
Optim Database Relationship Analyzer displays a list of tables that are grouped
by the trace IDs. Optim Database Relationship Analyzer displays the trace ID,
the table and schema name and the date and the time.
Results
The result of the run is shown in the Progress view. If the run failed, click on the
link to bring up the error dialog for more information.
Before running the Trace Analyzer, you need to start the SQL trace on the database
that you are trying to monitor. To start the trace for an Oracle server, enable the
audit trace. For example, you can issue the following command from your SQL
PLUS:
ALTER SYSTEM SET audit_trail=xml,extended SCOPE=SPFILE;
You can use either the xml,extended or the db,extended parameters. Make sure the
keyword extended is used; otherwise, SQL statements will not be logged by the
audit trace. For more information, refer to Oracle documentation.
Important: If the db,extended parameter is used, you can see the following error:
ORA-02002: error while writing to audit trail. To avoid the error,
change the parameter to xml,extended or, as a workaround, update the
following parameter and try again: Set _OPTIM_PEEK_USER_BINDS =
false. This problem has been fixed in the following releases of the
Oracle database: A105 A204 B106.
Once you issue the ALTER SYSTEM command to enable the trace, you will need to
stop and start the Oracle instance, so that the parameter settings can take effect.
Issue the appropriate AUDIT statements for ALTER, INSERT, SELECT, DELETE
and CREATE activities to capture the user trace information.
Remember: Deleting the previous Trace Analyzer results does not delete
any information from your existing groups.
d. Enter a job description. A meaningful job description can help you identify
this Trace Analyzer job at a later time.
e. Click Finish to start the Trace Analyzer.
The Trace Analyzer examines the SQL trace results within the specified date
and time range and records the tables that were accessed by different
applications into the Optim Database Relationship Analyzer metadata database.
4. After the Trace Analyzer has finished running, right-click your group discovery
configuration and select View Trace Analyzer Results to view the results.
Optim Database Relationship Analyzer displays a list of tables that are grouped
by the trace IDs. Optim Database Relationship Analyzer displays the trace ID,
the table and schema name and the date and the time.
Results
The result of the run is shown in the Progress view. If the run failed, click on the
link to bring up the error dialog for more information.
Before running the Trace Analyzer process, you need to turn on the SQL trace on
the database that you are trying to monitor. Complete the steps in “Starting a trace
before running the Trace Analyzer on a DB2 for z/OS server” on page 81 to turn
on the trace.
Restriction: The user IDs that run the Trace Analyzer must have the appropriate
permissions to access the IFCID 63 record table.
1. Start the Optim Database Relationship Analyzer client.
2. Create a new Optim Database Relationship Analyzer set and configuration if
needed.
a. Right-click the user database and select Create New Set or click the toolbar
icon and name the set in the Create New Set wizard.
b. Right-click the set and select Create New Group Discovery Configuration
from the menu options. You can also click the Create New Group
Discovery Configuration icon from the toolbar to complete this step.
c. Enter a name for the group discovery configuration and click Finish. Optim
Database Relationship Analyzer locks the group discovery configuration.
The group discovery configuration must be locked before you can run the
Trace Analyzer.
3. Run the Trace Analyzer on the group discovery configuration.
a. Right-click the group discovery configuration and select Run Trace
Analyzer from the menu options.
b. Enter the IFCID 63 record table name and the date and time range for the
results of the SQL trace to be considered. You can click Browse to look for
the IFCID 63 record table from your user database. The boundaries for date
and time are inclusive and the precision is down to the second. You should
have created the table while starting the trace. See “Starting a trace before
running the Trace Analyzer on a DB2 for z/OS server” on page 81.
c. If you want to accumulate Trace Analyzer results with the previous runs of
the Trace Analyzer, uncheck the Delete existing Trace Analyzer results for
this configuration check box.
Remember: Deleting the previous Trace Analyzer results does not delete
any information from your existing groups.
d. Enter a job description. A meaningful job description can help you identify
this Trace Analyzer job at a later time.
e. Click Finish to start the Trace Analyzer.
The Trace Analyzer examines the SQL trace results within the specified date
and time range and records the tables that were accessed by different
applications into the Optim Database Relationship Analyzer metadata database.
4. After the Trace Analyzer has finished running, right-click your group discovery
configuration and select View Trace Analyzer Results to view the results.
Optim Database Relationship Analyzer displays a list of tables that are grouped
by the trace IDs. Optim Database Relationship Analyzer displays the trace ID,
the table and schema name and the date and the time.
The result of the run is shown in the Progress view. If the run failed, click on the
link to bring up the error dialog for more information.
| You can start the DB2 trace by using the Generalized Trace Facility (GTF) or the
| System Management Facilities (SMF).
| Important: GRDNCFSQ has the DDL needed to create the record trace table
| (IFCID 63). Use the column names provided in the DDL without
| changes. Subsequent processing by the Trace Analyzer depends on
| some of these column names.
| 6. Load your trace data into the IFCID 63 record table. The DDL for the load
| statement is provided in hlq.SGRDSAM2(GRDNLFSQ). Ensure that the data set
| name you specify on the SYSREC DD card in the LOAD step of your JCL
| matches the name that you use on the RTFILDD1 DD card.
| Results
| Once the data is loaded into the IFCID 63 record table, you can run the Trace
| Analyzer to analyze the trace information.
You can start the DB2 trace by using the Generalized Trace Facility (GTF) or the
System Management Facilities (SMF).
1. Start the DB2 performance trace for IFCID 63. To create a record trace report,
you need to collect data by using DB2 trace. Since the Trace Analyzer is
interested in the SQL activity, start the performance trace with IFCID 63 (you
can specify the destination as GTF or SMF):
start trace(perfm) DEST(GTF) class(30) ifcid(63)
2. Run your applications for which you want to analyze the trace relationships.
Note the data set where the DB2 trace data was collected.
3. Create an OMEGAMON XE for DB2 Performance Expert Record Trace report.
Use your ISPF editor to create a JCL job, as shown in the following example.
Remember to change the setup information (starting with // in your JCL) as
appropriate for your installation. The FILE option is used to store data about
individual DB2 events in data sets that can be used with the DB2 LOAD utility.
//* Notes = *//
//* 1. Add a valid job card *//
//* 2. Change the prefix of the OMEGAMON XE for DB2 PE load *//
//* library db2ompe *//
//* 3 Change the input data set db2trace to your SMF/GTF trace data set *//
//* 4. Change the output data set outputdd and verify *//
//* DD parameters (allocation quantities, etc.) *//
//PMV110 EXEC PGM=DB2PM
//STEPLIB DD DISP=SHR, DSN=db2ompe.TKANMOD
//INPUTDD DD DISP=SHR, DSN=db2trace
//RTFILDD1 DD DSN=outputdd,
// DCB=(RECFM=VB,LRECL=9072,BLKSIZE=9076),
// SPACE=(CYL,(1,1),,,ROUND),
Results
Once the data is loaded into the IFCID 63 record table, you can run the Trace
Analyzer to analyze the trace information.
| Important: The group discovery process does not consult the list of user-defined
| relationships. You can use the entries in the list to import the
| relationships into group discovery configurations. Only once the
| relationships are imported and saved, they will be used during the
| group discovery process.
| 1. Right-click your database and select Edit User-Defined Relationships. The list
| of user-defined relationships opens.
| 2. Click Add Relationships to add one or more relationships. Follow the
| instructions in the User-Defined Relationship wizard to complete this step. You
| will need to specify the child and the parent tables and the column mapping
| between these tables.
| 3. Click Show Column Mappings to display the column mapping information for
| the selected relationship.
| 4. To remove a relationship from the list, click Remove.
| Results
| Now you can use the user-defined relationship when you edit the group discovery
| configuration options.
The new copy of the group discovery configuration will be in the pre-finalized
state. That way you can start with the configuration that you copied and then
customize it to fit your needs. Copying a configuration will not copy any results
from previous runs of the group discovery process.
Results
The new group discovery configuration that you create contains the same group
discovery options as the group discovery configuration that you copied.
Restriction: To delete a set, you need to delete all the group discovery
configurations in that set first.
You can search for tables in a version, in all the versions for a particular user
database, or in all the versions across all user databases using the Find Tables
dialog. The scope of the search depends on the context in which you bring up the
Find Tables dialog.
1. Right-click your database or version, and select Find Table in All Versions for
This User Database or Find Tables in This Version. You can also select Find
Table in All Versions for All User Databases from the drop-down menu of the
Discovery Explorer tab.
2. In the Find Tables dialog, enter the database schema name and the table name.
3. Click OK. The list of tables with group information that match your criteria
appears.
The Optim Database Relationship Analyzer server uses the following security
types:
v Database file encryption
v System-wide user authentication
v Metadata column encryption
Each of the security types is discussed in the following sections.
The database file encryption feature is provided by Apache Derby. With the
database file encryption feature, the physical file system allocated for the Optim
Database Relationship Analyzer metadata database is protected and all of the data
on the physical disk is completely encrypted.
The Optim Database Relationship Analyzer server uses the database file encryption
feature with the dataEncryption and bootPassword options when creating the
Optim Database Relationship Analyzer metadata database. The password for the
metadata database is fixed.
To add a new user to access the Optim Database Relationship Analyzer server
system and its database, the Optim Database Relationship Analyzer server
administrator or the Optim Database Relationship Analyzer DBA can add the new
user information to the derby.properties file that is located under the server
installation directory. The syntax for a new user entry is:
derby.user.user_name=user_password
For example:
derby.user.APP=temp4now
After you update the derby.properties file, restart the Optim Database
Relationship Analyzer server by clicking Start → IBM Optim Database
Relationship Analyzer v2.1 → Stop server and then Start server.
The Optim Database Relationship Analyzer server encrypts certain column data to
protect privacy before inserting the data into the Optim Database Relationship
Analyzer metadata tables or when fetching the data from the metadata tables.
Optim Database Relationship Analyzer provides its own encryption and decryption
functions to encrypt and decrypt the column data.
Related tasks
“Setting up login credentials to Optim Database Relationship Analyzer server” on
page 25
Optim Database Relationship Analyzer administrator with root authority can
change the default user password or add more user entries to manage access to the
Optim Database Relationship Analyzer server.
“Starting and stopping the Optim Database Relationship Analyzer server” on page
26
To start the Optim Database Relationship Analyzer server manually, run the
grdStartNetworkServer script while you are logged in as the database instance
owner. Use the grdStopNetworkServer script to stop the Optim Database
Relationship Analyzer network server.
For z/OS systems, use the following GRDDISCRUN stored procedure prototype:
| CREATE PROCEDURE GRDV2.GRDDISCRUN
| (
| IN METAID VARCHAR(30) FOR MIXED DATA,
| IN USERDATABASEID VARCHAR(30) FOR MIXED DATA,
| IN METASCHEMA VARCHAR(128) FOR MIXED DATA,
| IN TDBID INTEGER,
| IN VIEWID INTEGER,
| IN JOBDSCRB VARCHAR(256),
| OUT RC INTEGER,
| OUT RETURNMSG VARCHAR(4096) FOR MIXED DATA
| )
Input parameters
Output parameters
The following tables show the result sets that the group discovery stored
procedure returns:
1.
Table 13. Group discovery stored procedure group discovery configuration information result
set.
Column name Data type Column description
ID INTEGER The group discovery
configuration ID
2.
Table 14. Group discovery stored procedure version information result set.
Column name Data type Column description
ID INTEGER Version ID
VIEWID INTEGER The group discovery
configuration ID
VERSIONNAME VARCHAR(128) Version Name
DEFINEDBY VARCHAR(30) Version creator or owner
CREATETIME TIMESTAMP Version creation time
REMARKS VARCHAR(256) Version description
JOBID INTEGER Job ID
4.
Table 16. Group discovery stored procedure group information result set.
Column name Data type Column description
ID INTEGER Group ID
SETID INTEGER Version ID
GROUPNAME STRING Group name
DEFINEDBY STRING Group creator
CREATETIME TIMESTAMP The time that the group was
created
REMARK STRING Group description
5.
Table 17. Group discovery stored procedure table information result set.
Column name Data type Column description
TABSCHEMA VARCHAR(128) Table schema name
SETID INTEGER Version ID
GROUPID INTEGER Group ID
DBALIAS CHAR(128) Database alias name
TABNAME VARCHAR(128) Table name
TABSPACENAME VARCHAR(128) Table space name for the
table
DBNAME VARCHAR(8) Database name
USERADDED CHAR(1) Column used to indicate a
table added by a user
COMMONTAB CHAR(1) Column used to indicate a
common table (this column
is not used in the current
version)
6.
Table 18. Group discovery stored procedure group relationship information result set.
Column name Data type Column description
SCHEMANAME1 VARCHAR(128) Schema name for parent
table or object 1
SETID INTEGER Version ID
GROUPID INTEGER Group ID
DBALIAS1 CHAR(128) Database alias name for
parent table or object 1
OBJECTNAME1 VARCHAR(128) Parent table or object 1 name
OBJECTTYPE1 CHAR(1) Parent table or object 1 type
DBALIAS2 CHAR(128) Database alias name for child
table or object 2
SCHEMANAME2 VARCHAR(128) Schema name for child table
or object 2
OBJECTNAME2 VARCHAR(128) Child table or object 2 name
OBJECTTYPE2 CHAR(1) Child table or object 2 type
RELTYPE CHAR(1) Column used to indicate
relationship source
RELSUBTYPE CHAR(1) Column used to indicate
relationship source
SOURCE CHAR(1) Column used to indicate
relationship source
CONSTNAME VARCHAR(128) Relationship constraint name
CREATEDBY VARCHAR(30) The user who created the
relationship
CREATETIME TIMESTAMP Creation time
MODIFIEDBY VARCHAR(30) The user who modified the
relationship
MODIFIEDTIME TIMESTAMP The time the relationship
was modifeid
REMARKS VARCHAR(256) Relationship description
PCOLNAME VARCHAR(128) Parent table column name
CCOLNAME VARCHAR(128) Child table column name
PCOLTYPE VARCHAR(128) Parent table column data
type
CCOLTYPE VARCHAR(128) Child table column data type
COLPOS INTEGER Column position in the
relationship
| See the following table for information on how to determine the source for
| table reference information:
| Table 20. Determining relationship source for table reference information.
| SOURCE RELTYPE RELSUBTYPE Relationship source
| C C Column reference
| relationship (DB2 for
| Linux, UNIX, and
| Windows only)
| C H U Hierarchy reference
| relationship (DB2 for
| Linux, UNIX, and
| Windows only)
| C L Lob table reference
| relationship (DB2 for
| z/OS only)
|
| 7.
Table 21. Group discovery stored procedure trace reference relationship information result
set.
Column name Data type Column description
SETID INTEGER Version ID
GROUPID INTEGER Group ID
DBALIAS1 CHAR(128) Database alias name for trace
ID
OBJECTNAME1 VARCHAR(128) Trace ID
OBJECTTYPE1 CHAR(1) Type for trace id
You can also use the provided GRDRNGRP JCL, which executes the GRDGROUP
REXX program, in the PDS SGRDSAMP (sample library) to run the stored
procedure.
For z/OS systems, use the following TRACESPINNER stored procedure prototype:
CREATE PROCEDURE GRDV2.TRACESPINNER
(
IN METAID VARCHAR(30),
IN USERDATABASEID VARCHAR(30),
IN METASCHEMA VARCHAR(128),
IN TDBID INTEGER,
IN VIEWID INTEGER,
IN TRACE_SCHEMA_NAME VARCHAR(128),
IN TRACE_TABLE_NAME VARCHAR(128),
IN START_DATE VARCHAR(20),
IN END_DATE VARCHAR(20),
IN JOBDSCRB VARCHAR(256),
IN DELETEDYNRELS INTEGER,
OUT RC INTEGER,
OUT RETURNMSG VARCHAR(4096) )
For Linux, UNIX, and Windows systems, use the following TRACESPINNER
stored procedure prototype:
CREATE PROCEDURE GRDV2.TRACESPINNER
(
IN METAID VARCHAR(30),
IN USERDATABASEID VARCHAR(30),
IN METASCHEMA VARCHAR(128),
IN TDBID INTEGER,
IN VIEWID INTEGER,
IN TRACE_SCHEMA_NAME VARCHAR(128),
IN TRACE_TABLE_NAME VARCHAR(128),
IN START_DATE VARCHAR(20),
IN START_DATE VARCHAR(20),
IN END_DATE VARCHAR(20),
IN JOBDSCRB VARCHAR(256),
IN DELETEDYNRELS INTEGER,
OUT RC INTEGER,
OUT RETURNMSG VARCHAR(4096)
)
Input parameters
Output parameters
You can also use the provided GRDRNTRC JCL, which executes the GRDTRACE
REXX program, in the PDS SGRDSAMP (sample library) to run the stored
procedure.
For z/OS systems, Optim Database Relationship Analyzer provides the following
REXX programs in the PDS SGRDSAMP (sample library) to call the Optim
Database Relationship Analyzer integration Java stored procedures:
v For the predefined groups stored procedure, use the provided GRDPRGR JCL,
which executes the GRDLGRPS REXX program.
v For the predefined group data stored procedure, use the provided GRDPRGRD
JCL, which executes the GRDLRELS REXX program.
v For the predefined groups for a specified schema name stored procedure, use
the provided GRDPRSCH JCL, which executes the GRDLSCHE REXX program.
v For the list server product information stored procedure, use the provided
GRDRNPRD JCL, which executes the GRDPROD REXX program.
| v For version comparison, use the provided GRDCOMPR JCL, which executes the
| GRDCOMP REXX program.
If your application is written in Java, it can call the Optim Database Relationship
Analyzer Java APIs and Optim Database Relationship Analyzer Java stored
procedures directly. The Optim Database Relationship Analyzer Java APIs are
// Import statement
import java.sql.*;
import com.ibm.grd.conn.*;
....Application codes........
....Application codes........
Figure 20. Optim Database Relationship Analyzer Java API call example.
For Linux, UNIX, and Windows systems, use the following GRDPREDEFGROUPS
stored procedure prototype:
CREATE PROCEDURE GRDPREDEFGROUPS
(
IN METAID VARCHAR(30),
IN METASCHEMA VARCHAR(128),
IN TBSCHEMA VARCHAR(128),
IN TBNAME VARCHAR(128),
IN DBNAME VARCHAR(128),
IN HOSTNAME VARCHAR(512),
IN PORTNUMBER VARCHAR(6),
OUT RC INTEGER,
OUT RETURNMSG VARCHAR(4096)
)
Input parameters
Important: You can use a percent sign (%) for any value for the DBNAME,
HOSTNAME, and PORTNUMBER parameters. However, if you specify
an asterisk for one of these parameters, you must specify it for all of
these parameters.
Output parameters
The stored procedure also returns a result set with group information for the input
table. The following table shows the columns that are included in the result set:
Table 23. GRDPREDEFGROUPS stored procedure result set.
Column name Column data type Column description
TDBID INTEGER Database ID
Attention: For a group discovery configuration in the finalize state, only the last
version of the group discovery configuration is returned.
You can also use the provided GRDPRGR JCL, which executes the GRDLGRPS
REXX program, in the PDS SGRDSAMP (sample library) to run the stored
procedure.
Input parameters
Output parameters
The stored procedure also returns two result sets with table information and table
relationship information for the input group. The table information result set
returns one or more table relationships for a group. The following tables show the
columns in the result set:
Table 24. Table information for a group
Column name Column data type Column description
TBSCHEMA VARCHAR(128) Table schema name
TBNAME VARCHAR(128) Table name
TBSPACE VARCHAR(128) Table space name for table
TDBNAME VARCHAR(128) Database name for table
TBSTART CHAR(1) Column to indicate if the
table is a starting point table
| See the following table for information on how to determine the source
| for table reference information:
You can also use the provided GRDPRGRD JCL, which executes the GRDLRELS
REXX program, in the PDS SGRDSAMP (sample library) to run the stored
procedure.
Input parameters
Output parameters
You can also use the provided GRDRNPRD JCL, which executes the GRDPROD
REXX program, in the PDS SGRDSAMP (sample library) to run the stored
procedure.
Input parameters
Output parameters
This stored procedure returns the following parameters:
RC
Optim Database Relationship Analyzer return code.
RETURNMSG
Optim Database Relationship Analyzer return message.
The stored procedure also returns a result set with group information for the input
schema. The following table shows the columns that are included in the result set:
Table 28. GRDPREDEFGROUPS stored procedure result set.
Column name Column data type Column description
TDBID INTEGER Database ID
TDBNAME VARCHAR(128) Database name
SETID INTEGER Set ID
SETNAME VARCHAR(128) Set Name
VIEWID INTEGER The group discovery
configuration ID
VIEWNAME VARCHAR(128) The group discovery
configuration name
VERSIONID INTEGER Version ID
VERSIONNAME VARCHAR(128) Version name
GRPID INTEGER Group ID
GRPNAME VARCHAR(128) Group name
Attention: For a group discovery configuration that is in the finalize state, the
stored procedure will only return group information from the last version in the
group discovery configuration.
You can also use the provided GRDPRSCH JCL, which executes the GRDLSCHE
REXX program, in the PDS SGRDSAMP (sample library) to run the stored
procedure.
| To execute the version compare stored procedure on Linux, UNIX, and Windows
| platforms, run one of the following batch files:
| v grdcompare.bat on Windows systems
| v grdcompare.sh on UNIX systems
| These batch files are located in the config directory in the main Optim Database
| Relationship Analyzer server installation directory. The script runs the version
| compare stored procedure and process the returned result sets to determine the
| differences between the specified versions. Use the following syntax to run the
| script:
| grdcompare type[LUW], dbAlias[sampledb], metaUserId[APP], setName,
| groupDicoveryConfigurationName, version1, version2
| Attention: The version1 and version2 parameters are optional. If you do not
| provide these parameters, the utility will compare the two most recent
| versions.
| On z/OS platforms
| To execute the version compare stored procedure on z/OS platforms, modify and
| run the GRDCOMPR.JCL sample JCL.
| Output
| The script will create a compare.out.timestamp output file in the config directory
| in the main Optim Database Relationship Analyzer server installation directory.
GRD_GROUPING
The GRD_GROUPING group discovery configuration provides the group and table
information. The following table shows the columns for the GRD_GROUPING
view:
Table 29. GRD_GROUPING group discovery configuration columns
Name Data type Description
TDBID INTEGER ID for user database
TDBNAME VARCHAR(128) User database name
TDBHOSTNMAE VARCHAR(512) Host name for user database
TDBPORTNUM VARCHAR(6) Port number for user
database
SETID INTEGER ID for set
SETNAME VARCHAR(128) Set name
SETREMARKS VARCHAR(256) Set description
VIEWID INTEGER ID for view
GRD_RELATIONS
| See the following table for information on how to determine the source
| for table reference information:
After you run the group discovery process from the Optim Database Relationship
Analyzer client, the group discovery process generates table relationships and
stores the information in the Optim Database Relationship Analyzer metadata
database on the Optim Database Relationship Analyzer server system.
Optim Database Relationship Analyzer uses its mapping rules to convert table
relationships contained in the metadata database to Optim SQL-like statements in
an Optim export file. In the export file, Optim Database Relationship Analyzer
generates the partial Optim SQL-like statements, so that you can import this file
through the Optim user interface and continue working with the information in
IBM Optim Solutions products.
2. From the Optim Database Relationship Analyzer client, set up your group
discovery options for your group discovery configuration, and run the group
discovery process.
3. View the properties of the created group to obtain the group ID. Group ID is
shown as the Group ID field in the Group Property dialog.
4. On the Optim Database Relationship Analyzer client system, run the provided
grd2optim.bat batch file under the grd subdirectory of the main Optim
Database Relationship Analyzer client installation directory to generate an
Optim export file on the Optim Database Relationship Analyzer client system.
Use the following format:
grd2optim metadata_db_platform metadata_db_hostname
metadata_db_portnumber metadata_db metadata_user_id
metadata_schema optim_info_file
Where:
metadata_db_platform
The platform for the Optim Database Relationship Analyzer server
system. This value can be either LUW for Optim Database Relationship
Analyzer for Linux, UNIX, and Windows systems or ZOS for Optim
Database Relationship Analyzer for z/OS systems.
metadata_db_hostname
The host name of the Optim Database Relationship Analyzer server
system.
To use the provided scenario with the Optim Database Relationship Analyzer
sample data, complete the following steps:
1. Setup your system environment according to the following figure:
Figure 23. Optim Database Relationship Analyzer sample data environment setup.
Attention: For DB2 9.5 and 9.8 systems with the sample database, you need to
modify the grd_smp_ctbl.db2 file because DB2 9.5 and 9.7 default buffer pool
has the 8K page size. Change the create tablespace statement from
CREATE REGULAR TABLESPACE GRDSPACE PAGESIZE 4K
MANAGED BY SYSTEM USING ('GRDSPACE') EXTENTSIZE 16;
to
CREATE REGULAR TABLESPACE GRDSPACE PAGESIZE 8K
MANAGED BY SYSTEM USING ('GRDSPACE') EXTENTSIZE 16;
5. Insert data into the Optim Database Relationship Analyzer sample tables by
issuing the following command.
db2 –ntf grd_smp_insert.db2
Results
The following table provides information that is related to the ORG table:
Table 33. GRDSMPL.ORG
Name Value type Nullable? Description Key
DEPTNUMB SMALLINT NO Department number Primary
DEPTNAME VARCHAR(14) YES Department name
MANAGER SMALLINT YES Manager number
DIVISION VARCHAR(10) YES Division of
corporation
LOCATION VARCHAR(13) YES City
The ORG and STAFF tables are related by a DB2–enforced RI relationship and are
linked through the DEPTNUMB and DEPT columns:
The following table provides information that is related to the EMP_ACT table:
Table 37. GRDSMPL.EMP_ACT
Name Value type Nullable? Description Key
EMPNO CHAR(6) NO Employee number Foreign
PROJNO CHAR(16) NO Project number
ACTNO SMALLINT NO Activity number
EMPTIME DEC(5,2) YES Proportion
employee time
spent on project
EMPSTDATE DATE YES Date of activity
start
EMPENDATE DATE YES Date of activity end
When a row is inserted into or deleted from the EMP_ACT table, the value of the
NUMPROJS column in the EMPLOYEE table is increased or decreased by one,
using the GRDSMPL.GRDTRIGG1 and GRDSMPL.GRDTRIGG2 triggers,
respectively.
Apart from the system-enforced RI, the following figure shows sample
user-defined relationships between the sample tables:
DEPARTMENT
System-enforced RI User-defined RI
EMPLOYEE PROJECT
System-enforced RI User-defined RI
EMP_ACT
The following table provides information that is related to the CL_SCHED table:
Table 39. GRDSMPL.CL_SCHED (Class schedule)
Name Value type Nullable? Description Key
CLASS_CODE CHAR(7) NO Class code Primary
DAY SMALLINT YES Class duration
STARTING TIME YES Class start time
ENDING TIME YES Class end time
The CL_ROOSTER and the CL_SCHED tables are related through the
System-enforced RI by the CLASS_CODE columns.
Make sure that you have installed and configured your Optim Database
Relationship Analyzer system, as shown in “Optim Database Relationship Analyzer
sample data” on page 114.
1. Connect to the Optim Database Relationship Analyzer server as described in
“Creating a database connection to an Optim Database Relationship Analyzer
metadata database” on page 45.
2. Create a new Optim Database Relationship Analyzer set. Within the set, you
create a group discovery configuration with the specific discovery options that
will result in the discovery of a group of related tables.
a. Right-click the user database and select Create New Set or click the toolbar
icon and name the set SampleSet in the Create New Set wizard.
b. Right-click the set and select Create New Group Discovery Configuration
from the menu options. You can also click the Create New Group
Discovery Configuration icon from the toolbar to complete this step. Name
your group discovery configuration SampleConfig in the Create New Group
Discovery Configuration wizard.
c. Enter the name of the new configuration and click Finish. The Group
Discovery Configuration Editor opens.
Attention: The order of the groups might be slightly different from system
to system.
a. To validate the table relationship for the EMPLOYEE table in GROUP2,
right-click GROUP2 and select View Relationships for This Group. The
Group Discovery Results wizard is displayed. Click on the EMPLOYEE
node in the hierarchy tree. The tree shows that EMPLOYEE has two
relationships: EMPLOYEE is a parent table to EMP_ACT and a child table
to DEPARTMENT. Both of the relationships have System Referential
Integrity for the relationship type and Catalog as the relationship source.
You can also explore the column to column information for these
relationships on the right side of the wizard.
5. Run the Trace Analyzer process.
a. Select SampleConfig, right-click and select Run Trace Analyzer.
b. In the Run Trace Analyzer wizard, select the event monitor statement table
name and the date range for the results of the SQL trace to be considered.
You should have created the event monitor while creating and configuring
the sample data environment as described in “Configuring Optim Database
Relationship Analyzer sample tables” on page 115.
c. Enter Demo as the job description.
d. Click Finish to start the Trace Analyzer process. The Trace Analyzer
examines the SQL trace results within the specified date range and writes
the Trace Analyzer results into the Optim Database Relationship Analyzer
metadata database.
e. After Trace Analyzer finishes running, right-click the SampleConfig group
discovery configuration and select View Trace Analyzer Results to view the
Results
Collect all the available trace information about an error before you contact IBM
Software Support.
The Optim Database Relationship Analyzer client log file is GRDClient.log, and it
is located in the grd subdirectory of your client installation directory.
The log file contains information about program environment, user actions,
commands, and processes, as well as exceptions and error messages.
Server log files contain trace information. Support and development members can
use the log files to obtain information about program crashes, information
messages, warnings, errors, and fatal errors.
Debug log files contain key Optim Database Relationship Analyzer execution
points. The trace information is written to the debug log file at normal execution
completion and when a severe error causes Optim Database Relationship Analyzer
to terminate abnormally. Examine the debug log files to determine the action that
is being performed when Optim Database Relationship Analyzer terminated.
The detail level for both server log and debug log files is based on the LOGLEVEL
value that you can specify by editing the user properties in the Metadata Database
User Settings dialog that you can access by selecting Edit User Settings from the
drop-down menu of the Discovery Explorer tab of the Optim Database
Relationship Analyzer client user interface.
Both server log and debug log files contain the following information:
v The date of the event
v The time of the event
v The user ID that performed the operation
Server log file location and naming convention for Linux, UNIX,
and Windows
You can specify the path for the location of the log files in the Metadata Database
User Settings dialog that you can access by selecting Edit User Settings from the
drop-down menu of the Discovery Explorer tab of the Optim Database
Relationship Analyzer client user interface. The default server log location is:
GRDV2SERVERHOME\server. The default names for the server log and debug log files
are:
v <user_id>_<db_name>_<db_type>_tdbid.log for log files
v <user_id>_<db_name>_<db_type>_tdbidDEBUG.log for debug log files
In the template, db_name is the user database name, db_type is the user database
type (such as DB2, Oracle), and tdbid is the user database ID. You can get more
information about the user database by right-clicking on the database in the Optim
Database Relationship Analyzer client user interface and selecting Properties.
The default location of the server log files is the server directory under the main
installation directory unless you specify a different location in the Metadata
Database User Settings dialog.
For example, if you specify the log file path as C:\GRD_LOG and the metadata user
ID is APP, the following log files are created in the C:\GRD_LOG directory:
v APP_SAMPLE_DB2_1.log
v APP_SAMPLE_DB2_1DEBUG.log
In this example, APP is the user ID, SAMPLE is the user database name, DB2 is
the database type, and 1 is the user database ID.
The log data sets are located on a disk volume. The default name for the server log
and debug log files are:
v user_id.GRDLOG for server log files
v user_id.GRDDBG.LOG for debug log files
The default high-level qualifier that Optim Database Relationship Analyzer uses to
allocate the log files is USERID. You can specify the high level qualifier in the
Metadata Database User Settings dialog that you can access by selecting Edit User
Settings from the drop-down menu of the Discovery Explorer tab of the Optim
Database Relationship Analyzer client user interface. For example, if the log file
path that is specified by the user is SYSADM, the following log files are created:
v SYSADM.GRDLOG
v SYSADM.GRDDBG.LOG
| Recovery procedures
| Recovery procedures have been developed for many common Optim Database
| Relationship Analyzer problems.
| When trying to login to a DB2 user database after creating a connection to the
| Optim Database Relationship Analyzer metadata database, the verifying login
| message is shown with the following error:
| GRDG000: com.ibm.grd.exception.GRDException: GRDG000 :
| java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
| Environment
| This problem occurs on the Optim Database Relationship Analyzer servers for
| Linux, UNIX, and Windows.
| User response:
| 1. Make sure CLASSPATH contains DB2 JDBC driver files.
| 2. For UNIX environments, where the sudo command is used to start Optim
| Database Relationship Analyzer server by running the
| grdStartNetworkServer.sh. script, make sure that the CLASSPATH value is
| kept. If the value is not kept, you can use the visudo command to add the
| following entry to the etc/sudoers file:
| Defaults env_keep = "CLASSPATH"
| If you have closed the Optim Database Relationship Analyzer getting started view
| in the Optim Database Relationship Analyzer client user interface, you can open it
| by resetting the Optim Database Relationship Analyzer perspective.
| Environment
| User response:
| 1. Select Window → Reset perspective
| Trace Analyzer does not return any results, or the Optim Database Relationship
| Analyzer shows an empty Trace Analyzer results window.
| User response:
| 1. For Oracle user databases, make sure that you have started the audit trace by
| using the keyword extended. If the keyword extended is not used, Oracle does
| not audit the SQL statements.
| For example, for Oracle 10.2g, issue the following commands to start the trace:
| alter system set audit_trail=xml,extended,scope=spfile;
| alter system set audit_trail=db_extended,scope=spfile
| Important: Restart the Oracle instance for the parameter settings to take effect.
| 2. For Oracle user databases, make sure that the appropriate AUDIT statements
| are issued for INSERT, SELECT, DELETE, UPDATE and CREATE statements.
| 3. For DB2 for Linux, UNIX, and Windows, DB2 for z/OS, and Oracle user
| databases, make sure that the start time and the end time are specified correctly
| when you run Trace Analyzer.
| The Optim Database Relationship Analyzer client displays the following message:
| Unable to retrieve the stored procedure schema name from the metadata database.
| You may need to run GRDDEFPR to populate the User Properties table.
| Causes
| Either the JCL job GRDDEFPR was not executed or the default value
| DRA_DEFAULT_PROPS specified for the USERID column in the JCL job
| GRDDEFPR was modified by the user.
| Environment
| User response:
| 1. Change to USERID column in the GRDDEFPR member back to the default
| value DRA_DEFAULT_PROPS.
| 2. Submit the job GRDDEFPR.
| 3. Do not modify the default values specified for columns USERID,
| GRD_METADATA_OWNER, and GRD_STORPROC_SCHEMA in the JCL job
| GRDDEFPR to avoid errors.
| Causes
| The temporary database and table space were not created. This problem can be
| caused by the DB2 setup when the system creates the temporary database,
| stogroup, and tablespaces.
| Environment
| This problem occurs on the Optim Database Relationship Analyzer servers for
| z/OS.
| User response: Make sure that the temporary database and table space are created.
| The temporary database and table space are required by Optim Database
| Relationship Analyzer.
| Causes
| This problem occurs on the Optim Database Relationship Analyzer servers for
| z/OS.
| User response:
| 1. Include SDSNLOD2 as STEPLIB DD entry in WLM PROC. Both SDSNLOAD
| and SDSNLOD2 are required in WLM PROC.
| 2. When calling GRDJBIND, verify that LIBPATH is also setup correctly.
| Causes
| Environment
| This problem occurs on the Optim Database Relationship Analyzer servers for
| z/OS.
| User response: You need to set up the JMVPROPS field or include RESET_FREQ=-1
| in the JAVAENV data set.
| Symptoms
| Optim Database Relationship Analyzer returns the SLQCODE 471 error with return
| code 00E79109 when you are trying to run the
| GRDV2.GRDSERVERPRODUCTINFO stored procedure.
| Causes
| The JAVAENV entry in WLM PROC is commented, out or the JAVAENV dataset
| content is not correct.
| Environment
| This problem occurs on the Optim Database Relationship Analyzer servers for
| z/OS.
| User response: Verify the contents of WLM, WLM PROC, and the JAVAENV
| dataset.
| On DB2 for z/OS systems, Optim Database Relationship Analyzer returns the
| SQLCODE 430 error. This error indicates that Optim Database Relationship
| Analyzer Java stored procedure has abnormally terminated, which means that the
| z/OS system could run out of space, or there is another reason that causes the
| individual stored procedure or the entire WLM to fail.
| User response: Analyze your DB2 for z/OS system to check what other system
| error could have caused the DB2 error. Correct the error and restart both theOptim
| Database Relationship Analyzer client and server systems.
| The GRDG108 error is usually an indicator that another user has an active process
| on the same group discovery configuration. Sometimes, however, this error can
| indicate that an error has caused the group discovery configuration to become
| unusable.
| User response: The GRDG108 error can occur under several different scenarios and
| the solution for each scenario is different:
| v If a user starts to run the group discovery process, Trace Analyzer or the delete
| process on a group discovery configuration, and a second user tries to run the
| group discovery process, Trace Analyzer or the delete process on the same
| configuration in the same user database before the activity that has been issued
| by the first user is completed, the Optim Database Relationship Analyzer server
| returns the GRDG108 error for the second user. The second user should interpret
| this return code to mean that the group discovery configuration is currently
| unavailable and should try again after the first user’s activity is completed.
| v If you start to run the group discovery process, Trace Analyzer or the delete
| process on a group discovery configuration, and then you attempt to execute
| another activity from another instance of the Optim Database Relationship
| Analyzer user interface on the same configuration in the same user database
| before the first activity is completed, the Optim Database Relationship Analyzer
| server returns the GRDG108 error. To resolve the error, you should try again
| after the first activity is completed.
| v If you start to run the group discovery process, Trace Analyzer or the delete
| process on a group discovery configuration, and the server returns the GRDG108
| error, you should first make sure that there are no other qualifying processes
| running on the same group discovery configuration. If you have confirmed that
| there are no other processes running on the same configuration, and you have
| restarted the process and have received the GRDG108 error again, most likely,
| another error has previously occurred that has made the configuration unusable.
| If you receive an SQLCODE 913 and then SQLCODE 501 on z/OS systems or the
| ″dead statement″ error on Linux, UNIX, and Windows systems, your systems is
| running in a concurrency environment where multiple processes try to access
| Optim Database Relationship Analyzer metadata.
| If you click Cancel from the Run Group Discovery wizard or the Trace Analyzer
| wizard, the corresponding job does not stop.
| The finished time that is specified in the Progress view can be different from the
| end time that is specified the Job Status wizard.
| User response: This situation can happen for the following reasons:
| v The begin and the end time of the job status are generated on the server and
| will reflect the time and timezone of the Optim Database Relationship Analyzer
| server. This time also represents only the running time of the stored procedure
| on the server.
| v The finished time of the Progress view is generated by the Eclipse user interface.
| This time reflects the length of the entire process from the click of the mouse
| that initiated the job. Since this time is generated by Eclipse, it reflects the time
| and timezone of the Optim Database Relationship Analyzer client system.
Message format
Where:
GRD Indicates that the message was issued by Optim Database Relationship
Analyzer
X(X) Indicates the type and the possible subtype of the message:
A Indicates that the message was issued by an API call.
G Indicates that this is a general information message.
D Indicates that the message was issued by the group discovery
process.
UI Indicates that the message was issued by the Optim Database
Relationship Analyzer user interface.
R Indicates that the message was issued by the System RI during the
group discovery process.
SL Indicates that the message was issued by the Trace Analyzer
process for a DB2 Linux, UNIX, and Windows server.
SO Indicates that the message was issued by the Trace Analyzer
process for an Oracle server.
SZ Indicates that the message was issued by the Trace Analyzer
process for a DB2 z/OS server.
NNN Indicates the message identification number
GRDG002 Failed to create a set with name set name. GRDG007 Failed to retrieve table list with schema
name schema name and table name table
Explanation: Create a new set with set name failed
name.
because the user database does not exist in the Optim
Database Relationship Analyzer metadata database. Explanation: Cannot retrieve the list of tables with the
specified schema and table names from the user
User response: Refresh the interface and try to
database.
recreate the set. If the error recurs, contact your Optim
Database Relationship Analyzer system administrator User response: Try performing the action again. If the
to check the Optim Database Relationship Analyzer error persists, contact your Optim Database
metadata database on the Optim Database Relationship Relationship Analyzer administrator and check the user
Analyzer server system. database on the Optim Database Relationship Analyzer
server system.
GRDG003 Failed to create a group discovery
configuration with name GRDG008 Failed to retrieve user-defined
configuration_name. relationship information with schema
name schema name and table name table
Explanation: Create a new group discovery
name.
configuration with configuration_name failed because the
set does not exist in the Optim Database Relationship Explanation: Optim Database Relationship Analyzer
Analyzer metadata database failed to retrieve user-defined relationship information
with the specified schema name and table name.
User response: Refresh the interface and try to
recreate the group discovery configuration. If the error User response: Redo the action. If the error persists,
recurs, contact your Optim Database Relationship contact your Optim Database Relationship Analyzer
Analyzer system administrator to check the Optim administrator and check the schema and table names in
Database Relationship Analyzer metadata database on the Optim Database Relationship Analyzer metadata
the Optim Database Relationship Analyzer server database on the Optim Database Relationship Analyzer
system. server system.
GRDG004 The set set name already exists. Specify GRDG009 Failed to retrieve table information from
another name. the system catalog.
Explanation: An attempt was made to create a new Explanation: Optim Database Relationship Analyzer
set, but a set with this name already exists. failed to retrieve the user table information from the
user database system catalog table.
User response: Create a new set with a different
name. User response: Redo the action. If the error persists,
contact your system administrator and check the user
database.
GRDG005 The group discovery configuration
configuration_name already exists. Specify
another name. GRDG010 Table schema name.table name is not
created.
Explanation: An attempt was made to create a new
configuration, but a group discovery configuration with Explanation: An attempt was made to load a table
this name already exists. that does not exist on the target database.
User response: Create a new configuration with a User response: Verify the table name on the user
different name. database and contact your system administrator.
GRDG006 The schema name schema name is GRDG011 Table schema name.table name is a
reserved. Specify another name. boundary table.
Explanation: The specified schema name is reserved. Explanation: The specified table is in the boundary
Optim Database Relationship Analyzer cannot find, tables list.
add, or search tables with this schema.
User response: Specify a different table that is not in
User response: Specify a different schema name. the boundary objects list.
GRDG013 Failed to submit starting point table(s). GRDG019 Failed to get/refresh group discovery
configuration. Reason unknown.
Explanation: Optim Database Relationship Analyzer
could not submit the starting point table or tables. Explanation: Optim Database Relationship Analyzer
failed to refresh the group discovery configuration tree
User response: Resubmit the starting point tables. If
from the UI.
the error persists, contact IBM Software Support.
User response: Redo the action. If the error persists,
contact your Optim Database Relationship Analyzer
GRDG014 Failed to get job status from the
administrator and check the Optim Database
metadata database table.
Relationship Analyzer metadata database on the Optim
Explanation: Optim Database Relationship Analyzer Database Relationship Analyzer server system.
failed to retrieve job status from the Optim Database
Relationship Analyzer metadata database table
GRDG020 Failed to get/refresh version. Reason
GRD_JOBS .
unknown.
User response: Redo the action. If the error persists,
Explanation: Optim Database Relationship Analyzer
contact your Optim Database Relationship Analyzer
failed to refresh the version tree from the UI.
administrator and check the Optim Database
Relationship Analyzer metadata database on the Optim User response: Redo the action. If the error persists,
Database Relationship Analyzer server system. contact your Optim Database Relationship Analyzer
administrator and check the Optim Database
Relationship Analyzer metadata database on the Optim
GRDG016 Failed to retrieve group discovery
Database Relationship Analyzer server system.
options from the metadata database
table.
GRDG021 Failed to populate Optim Database
Explanation: Optim Database Relationship Analyzer
Relationship Analyzer objects from the
failed to retrieve group discovery options such as
metadata database into memory. Reason
starting point tables, boundary objects, ignored
unknown.
relationships, and additional relationships for the
specified group discovery configuration. Explanation: Optim Database Relationship Analyzer
failed to create objects in memory.
User response: Redo the action. If the error persists,
contact your Optim Database Relationship Analyzer User response: Redo the action. If the error persists,
administrator and check the Optim Database contact IBM Software Support.
Relationship Analyzer metadata database on Optim
Database Relationship Analyzer server system.
GRDG022 Failed to get Trace Analyzer results from
the metadata database table
GRDG017 Failed to remove starting point table GRD_DYNAMICRELS for group
table list from group discovery options. discovery configuration ID
configuration_id.
Explanation: Optim Database Relationship Analyzer
failed to remove the specified starting point tables from Explanation: Optim Database Relationship Analyzer
discovery options. failed to retrieve Trace Analyzer rezults for the
specified group discovery configuration from Optim
User response: Redo the action. If the error persists,
Database Relationship Analyzer metadata database
contact your Optim Database Relationship Analyzer
table GRD_DYNAMICRELS.
administrator and check the Optim Database
User response: Redo the action. If the error persists, User response: Check your system permissions and
contact your Optim Database Relationship Analyzer perform the action again
administrator and check the Optim Database
Relationship Analyzer metadata database on the Optim
GRDG029 Failed to create the file file name in
Database Relationship Analyzer server system.
directory directory name
Explanation: Optim Database Relationship Analyzer
GRDG023 Can not find the dbid id. The database
failed to create a log file with the specified log file
ID is incorrect.
name under the specified directory.
Explanation: The specified database id does not exist
User response: Check your system permissions and
in the Optim Database Relationship Analyzer metadata
perform the action again. If the problem persists,
database table GRD_DATABASEINFO.
contact IBM Software Support.
User response: Reconnect to the database and perform
the action again. If the error persists, contact your
GRDG030 User settings for user user id were
Optim Database Relationship Analyzer administrator
successfuly updated.
and check the Optim Database Relationship Analyzer
metadata database on the Optim Database Relationship Explanation: Optim Database Relationship Analyzer
Analyzer server system. has successfully updated the user settings for the
specified user.
GRDG024 Default connection to database failed. User response: None.
Explanation: The default database connection failed
when using JDBC driver. GRDG031 Failed to update user settings for user
meta user id.
User response: Reconnect to the database and perform
the action again. If the error persists, contact your Explanation: Optim Database Relationship Analyzer
Optim Database Relationship Analyzer administrator failed to update the user setting for the specified user
and check the Optim Database Relationship Analyzer in the Optim Database Relationship Analyzer metadata
metadata database on the Optim Database Relationship database table GRD_USERPROPS.
Analyzer server system.
User response: Redo the action. If the error persists,
contact your Optim Database Relationship Analyzer
GRDG025 Schema name schema name for metadata administrator and check the Optim Database
database table is invalid. Specify the Relationship Analyzer metadata database on the Optim
correct name. Database Relationship Analyzer server system.
Explanation: The specified schema to access the
Optim Database Relationship Analyzer metadata GRDG032 Try-and-Buy license has expired.
database table is incorrect. Purchase the full license.
User response: Contact your Optim Database Explanation: Your try-and buy license has expired.
Relationship Analyzer administrator to get the correct
Optim Database Relationship Analyzer metadata User response: Obtain a new license for Optim
database table schema name and reconnect to the Database Relationship Analyzer.
Optim Database Relationship Analyzer server.
GRDG033 Invalid product license file.
GRDG026 The log file is not accessible. Capture Explanation: The product name in the license file is
all error data. not Optim Database Relationship Analyzer.
Explanation: Optim Database Relationship Analyzer User response: Contact IBM Software Support.
encountered a general error when opening the log file
or writing a message to the log file.
GRDG034 Product license file is not found
User response: Check the log file to see if it is corrupt.
Try to perform the action again. If the error persists, Explanation: The license file does not exist on the
contact IBM Software Support. Optim Database Relationship Analyzer server system.
User response: Check with your Optim Database
GRDG028 Failed to create a directory for directory Relationship Analyzer administrator on the Optim
name. Database Relationship Analyzer server system, and
make sure that the server license file exists.
Explanation: Optim Database Relationship Analyzer
failed to create the specified directory for the log file.
GRDG035 I/O exception reading nodelock file file GRDG040 Can not action. Lock the group discovery
name configuration first.
Explanation: Optim Database Relationship Analyzer Explanation: You need to finalize the group discovery
failed to open the license file. configuration before performing the action. The action
can be running the group discovery process, the Trace
User response: Contact IBM Software Support.
Analyzer, or deleting an object.
User response: Lock the group discovery
GRDG036 Unable to find user settings or default
configuration.
settings in the GRD_USERPROPS table.
Ensure that the default settings exist in
the GRD_USERPROPS table. GRDG041 Can not action. The group discovery
configuration is locked by user user id.
Explanation: The default user settings do not exist in
the Optim Database Relationship Analyzer metadata Explanation: The group discovery configuration is
database table GRD_USERPROPS. The settings are locked by another user. The user ID is provided in the
shown as the first row of the table. message.
User response: Contact your Optim Database User response: You need to perform the action as the
Relationship Analyzer administrator and check the specified user, or you can ask the user to unlock the
Optim Database Relationship Analyzer metadata group discovery configuration. The action can refer to
database on Optim Database Relationship Analyzer running the group discovery process, the Trace
server system. Analyzer process, or deleting an object.
GRDG037 Can not delete JobID job id. Exception GRDG042 Can not edit group discovery
exception message configuration. The group discovery
configuration is in finalize state.
Explanation: Optim Database Relationship Analyzer
failed to delete the specified job from the Optim Explanation: You can no longer edit group discovery
Database Relationship Analyzer metadata database configuration once the group discovery configuration is
table GRD_JOBS with the specified exception in finalize state.
User response: Refer to the message in the exception User response: Work on a different group discovery
to fix this problem. configuration or create a new group discovery
configuration.
GRDG038 Can not lock or unlock the group
discovery configuration. The group GRDG043 Can not edit group discovery
discovery configuration is in the finalize configuration. Lock the group discovery
state. configuration first.
Explanation: The group discovery configuration you Explanation: You cannot edit group discovery
are trying to access is in the finalize state. The group configuration unless you lock the group discovery
discovery configuration cannot be locked or unlocked. configuration first.
User response: Work with a different group discovery User response: Lock the group discovery
configuration. configuration.
GRDG039 Set lock value value to the group GRDG044 Can not finalize the group discovery
discovery configuration failed. configuration. The group discovery
configuration is in pre-finalized state,
Explanation: Optim Database Relationship Analyzer
but is unlocked. Lock the group
failed to lock or unlock the group discovery
discovery configuration first.
configuration, where N stands for unlock and Y stands
for lock. Explanation: You cannot finalize the group discovery
configuration unless you lock the group discovery
User response: Redo the action. If the error persists,
configuration first.
contact your Optim Database Relationship Analyzer
administrator and check the Optim Database User response: Lock the group discovery
Relationship Analyzer metadata database on the Optim configuration.
Database Relationship Analyzer server system.
GRDG045 Can not finalize the group discovery GRDG050 Can not lock the group discovery
configuration. The group discovery configuration. The group discovery
configuration is in pre-finalize state and configuration is locked by user id.
locked by user user id.
Explanation: You cannot lock the group discovery
Explanation: You cannot finalize the group discovery configuration because the group discovery
configuration because the group discovery configuration is already locked by another user. The
configuration is locked by another user. The user ID is user ID is provided in the message.
provided in the message.
User response: Ask the specified user to unlock the
User response: You need to finalize the group group discovery configuration.
discovery configuration as the specified user, or you
can ask the user to unlock the group discovery
GRDG051 Can not edit group discovery
configuration.
configuration. The group discovery
configuration is locked by user id.
GRDG046 The group discovery configuration is
Explanation: You cannot edit group discovery
already in finalize state.
configuration because the group discovery
Explanation: Optim Database Relationship Analyzer configuration is locked by another user. The user ID is
can not set the group discovery configuration to provided in the message.
finalize. The group discovery configuration is already
User response: You need to edit group discovery
finalized.
configuration as the specified user, or you can ask the
User response: None. user to unlock the group discovery configuration.
GRDG047 Failed to set group discovery GRDG052 Failed to retrieve predefined groups for
configuration to the finalize state. table schema name.table name.
Explanation: Optim Database Relationship Analyzer Explanation: Optim Database Relationship Analyzer
failed to finalize the group discovery configuration. failed to retrieve the predefined groups for the
specified table.
User response: Redo the action. If the error persists,
contact IBM Software Support. User response: Redo the action. If the error persists,
contact your Optim Database Relationship Analyzer
administrator and check the Optim Database
GRDG048 The locked value for the group
Relationship Analyzer metadata database on the Optim
discovery configuration needs to be
Database Relationship Analyzer server system.
either ″N″ or ″Y″. The value passed to
the stored procedure was value.
GRDG053 Failed to retrieve tables and table
Explanation: A group discovery configuration can be
relationships for predefined group with
locked or unlocked with the values N or Y only. A
group id group id.
different value has been encountered and specified in
the message text. Explanation: Optim Database Relationship Analyzer
failed to retrieve tables and table relationships for the
User response: Contact IBM Software Support.
predefined group with the specified group ID.
User response: Redo the action. If the error persists,
GRDG049 Can not unlock the group discovery
contact your Optim Database Relationship Analyzer
configuration. The group discovery
administrator and check the Optim Database
configuration is locked by user id.
Relationship Analyzer metadata database on the Optim
Explanation: You cannot unlock the group discovery Database Relationship Analyzer server system.
configuration because the group discovery
configuration is locked by another user. The user ID is
GRDG054 Failed to find table for schema schema
provided in the message.
name and table name table name for
User response: You need to unlock the group system wide search.
discovery configuration as the specified user, or you
Explanation: Optim Database Relationship Analyzer
can ask the user to unlock the group discovery
failed to find the specified table for system wide search.
configuration.
User response: Redo the action. If the error persists,
contact your Optim Database Relationship Analyzer
administrator and check the Optim Database
Relationship Analyzer metadata database on the Optim
Database Relationship Analyzer server system. Optim Database Relationship Analyzer administrator
and check the Optim Database Relationship Analyzer
metadata database on the Optim Database Relationship
GRDG055 The table for schema schema name and
Analyzer server system.
table name table name for system wide
search was found successfully.
GRDG060 Failed to retrieve package information.
Explanation: Optim Database Relationship Analyzer
has successfully found the specified table for system Explanation: Optim Database Relationship Analyzer
wide search. failed to retrieve package information.
User response: None. User response: Redo the action. If the error persists,
contact your Optim Database Relationship Analyzer
administrator and check the Optim Database
GRDG056 Failed to find table for schema schema
Relationship Analyzer metadata database on the Optim
name and table name table name for this
Database Relationship Analyzer server system.
database.
Explanation: Optim Database Relationship Analyzer
GRDG061 Failed to add relationships
failed to find the specified table for the user database.
relationships_IDs.
User response: Redo the action. If the error persists,
Explanation: Optim Database Relationship Analyzer
contact your Optim Database Relationship Analyzer
could not add the specified relationships.
administrator and check the Optim Database
Relationship Analyzer metadata database on the Optim User response: Try to add the relationships again. If
Database Relationship Analyzer server system. the error recurs, contact your Optim Database
Relationship Analyzer system administrator to check
the Optim Database Relationship Analyzer metadata
GRDG057 The table for schema schema name and
database.
table name table name for this database
was found successfully.
GRDG062 Failed to add boundary tables to the
Explanation: Optim Database Relationship Analyzer
boundary list list_name.
has successfully found the specified table for the user
database. Explanation: Optim Database Relationship Analyzer
could not add the specified boundary tables.
User response: None.
User response: Verify that the objects exist. Try to add
the objects again. If the error recurs, contact your
GRDG058 Exception occurred during dumping of
Optim Database Relationship Analyzer system
the log file.
administrator to check the Optim Database
Explanation: Some of the reasons for the exception Relationship Analyzer metadata database.
can be:
v The log file could not be accessed because the log file GRDG063 Failed to add relationships to the ignore
is being opened by the user. list 0.
v The log file could not be created because of access
Explanation: Optim Database Relationship Analyzer
permissions.
could not add the specified ignored relationships.
For a z/OS Optim Database Relationship Analyzer
User response: Try to add the relationships again. If
server system, the log information cannot be written to
the error recurs, contact your Optim Database
a log file, if a user is viewing or browsing the log
Relationship Analyzer system administrator to check
dataset or if the user does not have the permissions to
the Optim Database Relationship Analyzer metadata
create or append to the log dataset.
database.
User response: Check access permissions or close the
data set on the z/OS system and try again.
GRDG064 Failed to add the user-defined
relationships list.
GRDG059 Failed to get row from GRD_DBINFO2
Explanation: Optim Database Relationship Analyzer
table for dbid database ID.
could not add the specified user-defined relationships
Explanation: Optim Database Relationship Analyzer list.
failed to retrieve row information from the metadata
User response: Try to add the user-defined
database.
relationships list again. If the error recurs, contact your
User response: Check your database connection and Optim Database Relationship Analyzer system
redo the action. If the error persists, contact your administrator to check the Optim Database
v * = All relationships
GRDG096 The user-defined relationship Read List
is not formatted correctly. User response: Select a table or a package for the
source and the target objects of this relationship.
Explanation: The Optim Database Relationship
Analyzer client generated a user-defined relationships
list that contains a syntax error. GRDG101 For the relationship type:
relationship_type, the source object must
User response: Contact IBM Software Support.
be a package.
Explanation: An invalid source or target object for this
GRDG097 Table schema_name.table_name does not
relationship type was selected. The source objects must
exist in the user database catalog.
be a package for the following relationship types:
Explanation: The Optim Database Relationship v T = Trigger
Analyzer client cannot find the specified table in the
v P = Package
database catalog. The table might have been deleted or
renamed. v * = All relationships
User response: If the table exists in the database, User response: Select a package for the source object
check your connection and system status. If the table of this relationship.
does not exist, specify a different table.
GRDG102 For the relationship type:
GRDG098 For the relationship type: relationship_type, The target object must
relationship_type, the source and target be a package or a table.
object must be tables. Explanation: An invalid source or target object for this
Explanation: An invalid source or target object for this relationship type was selected. The target objects must
relationship type was selected. The source and the be a package or a table for the following relationship
target objects must be tables for the following types:
relationship types: v T = Trigger
v R = RI v P = Package
v L = LOBS v * = All relationships
v H = Table hierarchy User response: Select a package or a table for the
v C = Column target object of this relationship.
v V = Version specific
User response: Select tables for the source and the GRDG103 For the relationship type:
target objects of this relationship. relationship_type, the source object must
be a table.
GRDG099 The relationship type relationship_type Explanation: An invalid source or target object for this
has an invalid sub-relationship type relationship type was selected. The source object must
subrelationship_type. It should be SMRI or be a table for the following relationship types:
user-defined relationship. v R = RI
Explanation: The Optim Database Relationship v L = LOBS
Analyzer client could not assign a valid v H = Table hierarchy
sub-relationship type to the relationship. The R v C = Column
relationship type (RI), must have either the S (SMRI) or
the U (user-defined relationship) subtype. v V = Version specific
User response: Contact IBM Software Support. User response: Select a table for the source object of
this relationship.
v T = Trigger v R = RI
v P = Package v L = LOBS
v H = Table hierarchy
GRDG110 The Manage Tree Nodes sequence is
v C = Column improperly formatted.
v V = Version specific
Explanation: The Optim Database Relationship
User response: Select a table for the target object of Analyzer client generated a list that contains a syntax
this relationship. error.
User response: Contact IBM Software Support.
GRDG105 The properties list is empty.
Explanation: The Optim Database Relationship GRDG111 Failed to retrieve predefined groups for
Analyzer client failed to generate a correctly formatted schema schema_name
list.
Explanation: The Optim Database Relationship
User response: Contact IBM Software Support. Analyzer client could not retrieve the predefined group
information from the specified schema.
GRDG106 Failed to retrieve package information User response: Verify the name of the schema, and
from the system catalog. make sure that your network connection is established
properly.
Explanation: The Optim Database Relationship
Analyzer client could not access package information in
the catalog. GRDG112 The user ID user_id does not exist in the
metadata database for DBID id. The user
User response: Verify that the package that you are ID is case-sensitive.
trying to access exists in the system catalog. If it does,
check your connection and perform the action again. If Explanation: The Optim Database Relationship
the problem persists, contact IBM Software Support. Analyzer client could not find the specified user ID.
User response: Make sure that you specify the user ID
GRDG107 The package schema_name.package_name that you use when you login to the Optim Database
does not exist in the user database Relationship Analyzer client. Verify that the ID exists in
catalog. the Optim Database Relationship Analyzer metadata
database.
Explanation: The Optim Database Relationship
Analyzer client could not access the specified package
in the catalog. GRDG113 Could not retrieve table column
information with schema name schema
User response: Verify that the package that you are and table name table.
trying to access exists in the system catalog. If it does,
check your connection and perform the action again. If Explanation: Optim Database Relationship Analyzer
the problem persists, contact IBM Software Support. could not retrieve column information such as column
name and data type for the selected column during the
group discovery process.
GRDG108 Can not activity_type. Another process is
running on the same group discovery User response: Check your connection and try again.
configuration. Try again later. If the error persists, contact IBM Software Support.
GRDG116 Could not exclude additional GRDG123 The additional relationships were
relationship. exported successfully .
Explanation: You can exclude additional relationships Explanation: This information message indicates that
at the group discovery configuration level. If you do the specified process has completed successfully.
not want to have a given additional relationship
User response: None.
considered for the group discovery run you can
exclude it. This error is generated when Optim
Database Relationship Analyzer cannot exclude an GRDG124 Could not export the additional
additional relationship. relationships.
User response: Check your connection and try again. Explanation: Optim Database Relationship Analyzer
If the error persists, contact IBM Software Support. could not export the specified additional relationship to
the user-defined relationships list.
GRDG118 The excluded relationship list is empty. User response: Check your connection and try again.
If the error persists, contact IBM Software Support.
Explanation: The specified list of relationships that
Optim Database Relationship Analyzer has sent to the
server does not contain any information. GRDG127 Could not add additional relationship
between tables table1 and table2. This
User response: Check your connection and try again.
relationship already exists.
If the error persists, contact IBM Software Support.
Explanation: The column mapping combination for
additional relationships must be unique.
GRDG119 Could not include an additional
relationship. User response: Make sure that the user-defined
relationship has not been excluded. Remember that you
Explanation: Optim Database Relationship Analyzer
can define user-defined relationships and then exclude
could not include the additional relationship that has
them. The excluded entries are not visible in the listing
previously been excluded from the group discovery
unless the Show excluded relationships check box is
configuration.
selected.
User response: Check your connection and try again.
If the error persists, contact IBM Software Support.
GRDG128 This option is not for additional
relationships, or the parent or the child
GRDG120 The additional relationships were tables are wrong.
excluded successfully .
Explanation: A mismatch occurred between the type
Explanation: This information message indicates that of the relationship and the option.
the specified process has completed successfully.
User response: Check your connection and try again.
User response: None. If the error persists, contact IBM Software Support.
GRDG121 The additional relationships were GRDG129 Could not add the user-defined
included successfully . relationship between tables table1 and
table2.
Explanation: This information message indicates that
the specified process has completed successfully. Explanation: The Optim Database Relationship
Analyzer server could not insert the user-defined
User response: None.
relationship and connection key information into the
Optim Database Relationship Analyzer metadata
database.
User response: If there is an SQL error associated with
this message, resolve the SQL error and try again. If the
error persists, contact IBM Software Support. Analyzer user interface should not allow to add an
additional relationship without column mapping.
Contact IBM Software Support.
GRDG130 A user-defined relationship with id
id_number was not found.
GRDG136 Could not retrieve database ID for
Explanation: Optim Database Relationship Analyzer
database database_name on system
could not find the specified user-defined relationship.
system_name with port number
This error can happen if the relationship has already
port_number.
been deleted by another user.
Explanation: Optim Database Relationship Analyzer
User response: Refresh the navigation tree in the
could not find the database ID for the specified
Discovery Explorer view and try again. If the
database in the Optim Database Relationship Analyzer
relationship is still visible, contact IBM Software
metadata database.
Support.
User response: Verify that the database exists. Check
your connection and try again. If the error persists,
GRDG131 The user-defined relationship was
contact IBM Software Support.
successfully imported.
Explanation: This information message indicates that
GRDG137 Could not retrieve group with group ID
the specified process has completed successfully.
group_id. The group does not exist.
User response: None.
Explanation: Optim Database Relationship Analyzer
could not find the specified group. This error can
GRDG132 The user-defined relationship was not happen if the group has already been deleted or
found. modified by another user.
Explanation: Optim Database Relationship Analyzer User response: Refresh the navigation tree in the
could not find the specified user-defined relationship. Discovery Explorer view and try again. If the problem
This error can happen if the relationship has already persists, contact IBM Software Support.
been deleted by another user.
User response: Refresh the navigation tree in the GRDG206 Oracle database version version_number
Discovery Explorer view and try again. is not supported.
Explanation: The specified user database version is
GRDG133 The export relationship list is empty. not supported. Refer to the list of Optim Database
Relationship Analyzer software requirements for the list
Explanation: The specified list of relationships that of supported databases.
Optim Database Relationship Analyzer has sent to the
server does not contain any information. User response: Use only the supported user
databases.
User response: Check your connection and try again.
If the error persists, contact IBM Software Support.
GRDG207 DB2 database version version_number is
not supported.
GRDG134 The group discovery configuration ID
id_number is not created or has been Explanation: The specified user database version is
deleted. not supported. Refer to the list of Optim Database
Relationship Analyzer software requirements for the list
Explanation: Optim Database Relationship Analyzer of supported databases.
could not find the specified group discovery
configuration. This error can happen if the User response: Use only the supported user
configuration has already been deleted or modified by databases.
another user.
User response: Refresh the navigation tree in the GRDG208 Database type type is not supported.
Discovery Explorer view and try again.
Explanation: The specified database type is not
supported. See the software and hardware requirements
GRDG135 The additional relationship does not sections for the list of supported database types.
have any column mapping information.
User response: Use a supported database type.
Explanation: You must specify column mapping when
defining an additional relationship.
User response: The Optim Database Relationship
User response: Refer to the Optim Database Explanation: The specified group discovery
Relationship Analyzer software requirements for a list configuration has become unusable due to an error.
of supported DB2 clients.
User response: You must copy the group discovery
configuration into a new group discovery configuration
GRDG213 The user defined version name to continue working with it. Contact IBM Software
version_name conflicts with the system Support to restore the original configuration.
default naming convention. Please
choose another version name.
GRDUI000 Unexpected exception: exception
Explanation: The default version names are created
Explanation: Optim Database Relationship Analyzer
according to the following template: DefaultVersionXX,
has returned an unexpected exception.
were XX is the number of the version.
User response: Examine the Optim Database
This error is issued if any of the versions is manually
Relationship Analyzer log files for more information
renamed according to the template. The error prevents
and contact IBM Software Support.
a collision between the manual name and the version
names automatically generated by the group discovery
process. For example, if you try to rename GRDUI001 The Optim Database Relationship
DefaultVersion_1 to DefaultVersion_2, you will receive Analyzer metadata tables could not be
the error. found on this database.
User response: Specify a version name that does not Explanation: The Optim Database Relationship
Analyzer metadata tables are not located on the Explanation: The version and release level for the
database that you have selected. Optim Database Relationship Analyzer client and the
Optim Database Relationship Analyzer server do not
User response: Make sure that the Optim Database
match.
Relationship Analyzer server is properly installed on
the selected database. User response: Make sure that the Optim Database
Relationship Analyzer client and the Optim Database
Relationship Analyzer server are at the same level.
GRDUI002 The following tables are already
selected as starting point tables: table1,
table2 .... A table cannot be both a GRDUI007 The group discovery configuration
starting point and a boundary table. ’configuration_name’ contains unsaved
changes. Save the changes before
Explanation: The specified table or tables are already
running the group discovery process.
selected as starting point tables for this group discovery
configuration. You cannot specify the same table both Explanation: The group discovery configuration
as a starting point table and as a boundary table. contains changes that have not been saved.
User response: If you want to add these tables as User response: Save the changes before running the
boundary tables, you need to remove them from the group discovery process, or to discard the changes,
list of starting point tables. close the Group Discovery Configuration Editor
without saving.
GRDUI003 The following tables are already
selected as boundary tables: table1, table2 GRDUI008 The group discovery configuration is
.... A table cannot be both a starting missing starting point tables. At least
point and a boundary table. one starting point table must be
specified.
Explanation: The specified table or tables are already
selected as boundary tables for this group discovery Explanation: You have not specified any starting point
configuration. You cannot specify the same table both tables for this configuration.
as a starting point table and as a boundary table.
User response: Specify at least one starting point table
User response: If you want to add these tables as or select the catalog-wide group discovery option.
starting point tables, you need to remove them from
the list of boundary tables.
GRDUI009 At least one relationship type must be
selected for the Catalog source.
GRDUI004 This relationship is already defined as
Explanation: You have selected Catalog as the
an ignored relationship.
relationship source, but you have not selected any
Explanation: You cannot add an additional relationship types.
relationship if it is already defined as an ignored
User response: Select one or more of the following
relationship.
relationship types: System Referential Integrity,
User response: You can either specify a different Package, or Trigger.
relationship or, to add the selected relationship, remove
it from the list of ignored relationships.
GRDUI010 At least one relationship source or
additional relationship must be
GRDUI005 This relationship is already defined as specified.
an additional relationship.
Explanation: The group discovery configuration does
Explanation: You cannot add an ignored relationship not have a relationship source or any additional
if it is already defined as an additional relationship. relationships specified. The group discovery process
needs a relationship source to discover relationships.
User response: You can either specify a different
relationship or, to add the selected relationship, remove User response: Specify a relationship source in the Set
it from the list of additional relationships. the Scope tab of the Group Discovery Configuration
Editor or add an additional relationship in the Expand
the Scope tab of the Group Discovery Configuration
GRDUI006 The Optim Database Relationship
Editor.
Analyzer client and the Optim Database
Relationship Analyzer server are not at
the same version and release level.
Client version: version_number; server
version: version_number.
GRDUI011 One or more relationships were not GRDUI016 An unexpected error or exception has
added because of conflicting occurred. Check the log files for more
relationships in the list of ignored information.
relationships.
Explanation: Optim Database Relationship Analyzer
Explanation: One or more of the relationships that has returned an unexpected error or exception.
you are trying to import are already defined as ignored
User response: Examine the Optim Database
relationships. You cannot add an additional relationship
Relationship Analyzer log files for more information
if it is already defined as an ignored relationship.
and contact IBM Software Support.
User response: For the relationships that were not
imported, if you want to import the conflicting
GRDUI017 Unable to retrieve the version
relationships, remove these relationships from the list
information for Optim Database
of ignored relationships first.
Relationship Analyzer on this database.
Explanation: The Optim Database Relationship
GRDUI012 One or more relationships were not
Analyzer server installation might not be correct or
added because they do not have any
complete.
column mapping.
User response: Check your connection and make sure
Explanation: The relationship that you are trying to
that the Optim Database Relationship Analyzer server
import does not have any column mapping associated
installation is complete and successful. For z/OS
with it.
servers, make sure that the stored procedures are
User response: Check the relationship in the list of created properly. See the installation section of the
user-defined relationships. Try deleting and adding it Optim Database Relationship Analyzer users’s guide
again. If the error persists, contact IBM Software for more information.
Support.
GRDUI116 The selected group discovery
GRDUI013 Optim Database Relationship Analyzer configuration cannot be unlocked
cannot find any tables that match your because it contains unsaved changes.
search criteria. Remember that the
Explanation: The group discovery configuration
search is case-sensitive.
contains changes that must be saved.
Explanation: Optim Database Relationship Analyzer
User response: Save the changes before unlocking the
cannot find any tables that match your search criteria.
configuration, or to discard the changes, close the
User response: Verify your search criteria. Group Discovery Configuration Editor without saving.
GRDUI014 An exception occurred while searching GRDUI117 One or more relationships were not
for tables; no results have been added because of conflicting
returned. relationships in the additional
relationship list.
Explanation: An unexpected exception occurred while
Optim Database Relationship Analyzer was processing Explanation: One or more of the relationships that
your search request. you are trying to import are already defined as
additional relationships. You cannot add an ignored
User response: Try searching for the tables again. If
relationship if it is already defined as an additional
the error persists, contact IBM Software Support.
relationship.
User response: For the relationships that were not
GRDUI015 The object that you have selected no
imported, if you want to import the conflicting
longer exists on the Optim Database
relationships, remove these relationships from the list
Relationship Analyzer metadata
of additional relationships first.
database.
Explanation: The object that you are trying to refresh
GRDUI118 This table has already been defined as a
might have been deleted from the Optim Database
starting point table. A table cannot be
Relationship Analyzer metadata database. This error
both a starting point table and a
can occur if multiple users are working with the same
boundary table.
object at the same time.
Explanation: The selected table is already a starting
User response: Right-click the user database in the
point table for this group discovery configuration. You
Discovery Explorer view and select Refresh to refresh
cannot specify the same table both as a starting point
the navigation tree.
table and as a boundary table.
B
boundary tables
You can specify a table as a boundary table to restrict the scope of the
group discovery process in the group discovery configuration options. The
group discovery process can still include the boundary table in the group
discovery results; however, it will not consider it as a source for drawing
additional tables that are related to that table into that group.
C
catalog-wide discovery
A run of the group discovery process that includes all of the tables in the
database catalog.
client A graphical user interface that interacts with the server.
F
finalized group discovery configuration
When a group discovery configuration is in the finalized state, the group
discovery configuration is final and its options cannot be updated.
Multiple users can run finalized group discovery configurations.
G
| granularity
| The way that the group discovery process analyzes and groups the Trace
| Analyzer results. The Trace Analyzer granularity can be either application
| level or unit of work level. See “Choosing between application level and
| unit of work level granularity for Trace Analyzer results” on page 59.
group A collection of related tables.
I
ignored relationship
A relationship that the group discovery process will not use to discover
related tables. For example, if a relationship between tables A and B exists,
then table B will be brought into the group that contains A, unless the
relationship between them is specified as ignored.
M
metadata database
A collection of program configuration data, database connections, user
actions, trace information, and other information that is used by Optim
Database Relationship Analyzer. The Optim Database Relationship
Analyzer metadata database for Linux, UNIX, and Windows is an Apache
Derby database, and it is serviced by the Derby Network Service. The
Optim Database Relationship Analyzer metadata database for z/OS is a
DB2 database. The metadata database is configured during the server
installation process, and it resides wherever you decide to install the
server.
N
user-defined relationships
Referential integrity relationships that are not enforced by database system
constraints, but rather defined by the users for each user database. You can
specify these relationships for a database so that other users can import
them to their group discovery configuration options as additional
relationships.
P
pre-finalized group discovery configurations
When a group discovery configuration is in pre-finalized state, the group
discovery configuration is in the test mode. At this stage, you can update
its options and test different group discovery options. A group discovery
configuration in pre-finalized state allows only one user to test it, using
explicit locking method to enforce this requirement.
S
server The components that run on the server.
set A collection of one or more group discovery configurations.
starting point tables
Tables that the user specifies in the group discovery configuration options
to set the scope of the group discovery process. For example, specifying
tables A and B as starting point tables will direct the group discovery
process to find tables that are related only to tables A and B. The group
T
Trace Analyzer
A program that accesses trace information and finds tables that are
referenced within it. These tables are then used as input to group discovery
process.
Trace Analyzer results
The results of running the Trace Analyzer process. Related tables that were
accessed within the same application for a given time range as determined
through an analysis of the SQL trace.
| trace ID
| An internally generated ID assigned by the Trace Analyzer to the tables
| discovered in trace.
U
| unit of work
| A recoverable sequence of operations within an application process. Refer
| to your user database documentation for more information.
| unit of work level granularity
| An option that defines how the group discovery process analyzes the Trace
| Analyzer results. With the unit of work level granularity option, the group
| discovery process groups tables found within the trace based on their units
| of work. See “Choosing between application level and unit of work level
| granularity for Trace Analyzer results” on page 59.
| user database
| A database that contains user objects that Optim Database Relationship
| Analyzer can analyze to discover relationships. Optim Database
| Relationship Analyzer metadata database stores connections to user
| databases.
V
version
The result of running the group discovery process on a group discovery
configuration. Versions contain groups.
Glossary 153
154 IBM Optim Database Relationship Analyzer User’s Guide
Notices
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in
other countries. Consult your local IBM representative for information on the
products and services currently available in your area. Any reference to an IBM
product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product,
program, or service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user’s responsibility to evaluate and verify the
operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give you
any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106-0032, Japan
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply
to you.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those Web
sites. The materials at those Web sites are not part of the materials for this IBM
product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
The licensed program described in this information and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement,
IBM International Program License Agreement, or any equivalent agreement
between us.
All statements regarding IBM’s future direction or intent are subject to change or
withdrawal without notice, and represent goals and objectives only.
This information contains examples of data and reports used in daily business
operations. To illustrate them as completely as possible, the examples include the
names of individuals, companies, brands, and products. All of these names are
fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
IBM OS/390
DB2 Redbooks
DB2 Universal Database z/OS
IMS
Optim
Adobe, Acrobat, PostScript and all Adobe-based trademarks are either registered
trademarks or trademarks of Adobe Systems Incorporated in the United States,
other countries, or both.
Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo,
Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or
registered trademarks of Intel Corporation or its subsidiaries in the United States
and other countries.
Microsoft, Windows, Windows NT®, and the Windows logo are trademarks of
Microsoft Corporation in the Unites States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other company, product, and service names may be trademarks or service marks
of others.
Notices 157
158 IBM Optim Database Relationship Analyzer User’s Guide
Index
A deleting
group 85
group discovery options
catalog-wide 51
accessibility 18 objects 47 changing 73, 74
adding tables 49 set 85 ignored relationships 67
additional relationships 49, 52 view 85 specifying 49
API 97, 112 diagnostic information starting point tables 51
database object views 109 gathering 131 group discovery process 13
APIs 11, 16, 88 discovering hard-to-find relationships 7 overview 48
application level discovering relationships refining 73
granularity 59 overview 41 reviewing results 71
architecture diagram 2 documentation group discovery results 71
accessing 18 viewing 71
documentation changes 17 Group discovery stored procedure 88
B groups
benefits 4 archiving 11
binding E backing up 11
description 43
JDBC 30 establishing
boundary tables 49, 52 merging 74
authorization on z/OS 33
description 65 viewing group discovery results 71
setting 65
F H
C finalized 70
find
hardware requirementsclient 35
callable interface 88 hardware requirementsserver 22
tables 85
catalog-wide 51 find tables 65
changes
validating 75 I
choosing
Trace Analyzer results G IBM Installation Manager
uninstalling 39
granularity 59 granularity
ignored relationships 49
client application level 59
installing 34
environment variables 38 unit of work level 59
client 35
hardware requirements 35 GRDDISCRUN stored procedure 88
server 21, 23, 29
installation 37 GRDPREDEFGROUPDATA stored
integration APIs 11
installing 35 procedure 102
integration with Database Relationship
log file 123 GRDPREDEFGROUPS stored
Analyzer 97
silent installation 37 procedure 99
database object views 109
software requirements 35 GRDPREDEFGROUPSBYSCHEMA stored
integration with IBM Optim 112
uninstalling 28 procedure 106
integration with IBM Optim 112
configurations GRDSERVERPRODUCTINFO stored
integration with Optim Database
defining relationships 84 procedure 105
Relationship Analyzer 16
configuring GRDVERSIONCOMPARE stored
GRDPREDEFGROUPDATA stored
group discovery options procedure 108
procedure 99, 102
relationship sources 51, 52 group discovery 51
GRDVERSIONCOMPARE stored
server login credentials 25 adding relationships 68
procedure 108
Windows 26 background mode 69
configuring sample tables 115 changing configuration options 73,
connecting 74
metadata database 45 checking status 70 J
user database 46 ignoring relationships 67 JDBC
creating relationship sources 52 binding 30
metadata for z/OS 31 running 68 jobs
new objects 47 setting boundary tables 65 running 69
specifying relationship sources 51 jobs, group discovery
user-defined relationships 84 checking status 70
D group discovery configuration
description 43
data governance 11
database changes
group discovery configurations
copying 84
L
validating 5 legal notices
finalizing 70
database object views 109 trademarks 157
M S
merging groups 74 sample data scenario 115, 120 T
message retrieval tool sample relationships 116 table relationships
LookAt x sample tables 116 uses 4
messages samples 115 tables
methods for accessing x configuring sample tables 115 searching 85
overview 131 sample data scenario 120 starting point 51
metadata database 42 security technotes 18
connecting 45 server 87 trace
user ID and password 25 server relationships 52
metadata databases debug log files 123 trace analysis
switching 47 environment variables 24 overview 76
MySupport 18 hardware requirements 22 running on a DB2 for LUW server 77
installation 24 running on a DB2 for z/OS
installing 21, 23, 29 server 80, 81, 82
N log files 123
login 25
running on an Oracle server 78
starting the trace for z/OS 81, 82
network server
security 87 trace analysis relationships 49
starting 26
silent installation 24 Trace Analyzer 7, 59, 76
software requirements 21 overview 14
software requirements for z/OS 30 restrictions 14
O uninstalling 28, 38, 39 running on an Oracle server 78
overview UNIX 28 running on DB2 for Linux, UNIX, and
architecture 2 Windows 38, 39 Windows 77
discovering relationships 41 server installation wizard 23 running on DB2 for z/OS 80
Optim Database Relationship Server product information stored starting the trace for z/OS 81, 82
Analyzer 1 procedure 105 Trace Analyzer results
sets granularity 59
description 43 Trace Analyzer stored procedure 95
P settings 83
silent installation 24, 37
trace context 59
trace information 123
pre-finalized 70
software requirements for TRACESPINNER stored procedure 95
problems
z/OSserver 30 trademarks 157
diagnostic information about 131
software requirementsclient 35 troubleshooting 123, 131
product functions 13
software requirementsserver 21
properties
specifying
viewing object 84
catalog-wide 51
starting point tables 51
U
uninstalling
specifying group discovery options 49
R starting
client 28, 38, 39
IBM Installation Manager 39
recovery procedures Optim Database Relationship
server 27, 28
overview 125 Analyzer components 39
unit of work level
reference 87 starting point tables 49, 52
granularity 59
referential integrity specifying 51
user database
relationship source 51, 52 status, checking 70
connecting 46
refining stored procedure
user databases 43
group discovery 73, 74 schema name 83
switching 46
group discovery process 73 stored procedures 88
using Optim Database Relationship
relationship sources 52 GRDDISCRUN stored procedure 88
Analyzer 41
relationships 71 GRDPREDEFGROUPDATA stored
adding 68 procedure 102
ignoring 67 GRDPREDEFGROUPS stored
sources 52 procedure 99 V
specifying sources 51 GRDPREDEFGROUPSBYSCHEMA validating changes 75
trace analysis 76 stored procedure 106 validating database changes 5
user-defined 84 GRDSERVERPRODUCTINFO stored version comparison 75
relationships to ignore 52 procedure 105 versions
reviewing GRDVERSIONCOMPARE stored description 43
group discovery process 71 procedure 108 specifying relationship sources 51
table relationships 71
Z
z/OS
authorization 33
z/OS metadata information 31
z/OS metadata information 31
Index 161
162 IBM Optim Database Relationship Analyzer User’s Guide
Printed in USA
SC27-2716-00