Prasad wrote:
Quote:
We have definition only indexes on the nicknames. db2look does not have
the option to capture definitions of nicknames and other objects
depending on nicknames.
>
We are upgrading to V9 next year. This issue has come up now.
|
Well, db2look does extract wrapper, server, user mapping, nickname, and
index specification definitions:
$ db2look -d test -e | less
-- ---------------------------
-- DDL Statements for WRAPPER
-- ---------------------------
CREATE WRAPPER "DRDA"
LIBRARY 'libdb2drda.so'
OPTIONS (DB2_FENCED 'Y'
);
-- ---------------------------
-- DDL Statements for SERVER
-- ---------------------------
CREATE SERVER "SRV1"
TYPE DB2/UDB
VERSION '8'
WRAPPER "DRDA"
OPTIONS
(DBNAME 'remote'
);
-- --------------------------------
-- DDL Statements for USER MAPPING
-- --------------------------------
CREATE USER MAPPING FOR STOLZE
SERVER "SRV1"
OPTIONS
(REMOTE_AUTHID 'stolze'
,REMOTE_PASSWORD ''
);
-- --------------------------------
-- DDL Statements for NICKNAME
-- --------------------------------
-- DEFINER = STOLZE
CREATE NICKNAME "STOLZE "."N1"
FOR "SRV1"."STOLZE"."T1";
-- --------------------------------
-- DDL Statements for CREATE INDEX...SPECIFICATION ONLY
-- --------------------------------
CREATE INDEX "STOLZE"."IDX"
ON "STOLZE"."N1" (A ASC)
SPECIFICATION ONLY;
--
Knut Stolze
DB2 Information Integration Development
IBM Germany