473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How is refresh of nickname definition done?

Hi,

We have DB2 7 fixpak 14 on AIX 5.1. There are federated links
(nicknames) established for tables in Informix database.

One of the table was modified in Informix. The table has now got 3 new
columns. These columns are not seen in DB2 nickname definition. When we
run the queries, we do not see these columns in the result. When we
describe the nickname, these columns are not present.

Now, How can we refresh the nickname defininton without dropping and
recreating it? There is a stored procedure nnstat in Version 8. But we
are at version 7.

Please can someone help.

Thanks,
Prasad

Nov 24 '06 #1
6 6171
Prasad wrote:
Hi,

We have DB2 7 fixpak 14 on AIX 5.1. There are federated links
(nicknames) established for tables in Informix database.

One of the table was modified in Informix. The table has now got 3 new
columns. These columns are not seen in DB2 nickname definition. When we
run the queries, we do not see these columns in the result. When we
describe the nickname, these columns are not present.

Now, How can we refresh the nickname defininton without dropping and
recreating it? There is a stored procedure nnstat in Version 8. But we
are at version 7.
DROP and CREATE is the only way in V7.

Given that V7 is out of service for 1 year now, you should consider moving
to V8 or even V9.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 24 '06 #2
Thank you for your response. We are in the process of upgrade. In the
meantime, this requirement came up.

Is there any way to capture the definitions of all the nicknames,
indexes & views etc created on the nicknames? db2look does not give
this information.

Nov 24 '06 #3
Prasad wrote:
Thank you for your response. We are in the process of upgrade. In the
meantime, this requirement came up.

Is there any way to capture the definitions of all the nicknames,
indexes & views etc created on the nicknames? db2look does not give
this information.
There are no indexes on nicknames. db2look (V8) does collect this
information. So again, the my answer would be to upgrade to V8 or V9.

Have a look at your V7 manual (or "db2look -h" to see if it covers any
federated objects).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 24 '06 #4
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.

Nov 27 '06 #5
Prasad wrote:
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
Nov 27 '06 #6
I executed the same command (with our DB name) you provided on our
system. It does not provide the nickname definitions. Did you execute
the command on v7 system?

Nov 27 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
27879
by: Matt | last post by:
By using javascript, is it possible to disable the REFRESH functionality (F5 or refresh icon) in a browser? Please advise. Thanks!!
0
1788
by: aj | last post by:
DB2 WSE LUW 8.1 Fixpak 5 Red Hat AS 2.1 I'm trying to set up a federated view from one DB2 database to another in the same instance on the same server. I do a: create server <SERVER> type...
6
3018
by: _link98 | last post by:
Problem: getting SQL0181N for queries on nicknames to remote Union-All-View. Can't see what I'm doing wrong yet, maybe someone has seen this before. Environment: UDB ESE 8.1 + FIXPAK 9A, on...
5
15787
by: Jiggaz | last post by:
Hi, Look my stored procedure : __________________ ALTER PROCEDURE dbo.CreateAccount @Nickname varchar(30), @Password varchar(15), @Email varchar(50), @Date datetime,
2
8154
by: Robert | last post by:
I am trying to give the user dynamic search capabilities to select almost any record in the database from criteria they select. Everything seems to work except when I open the display form to...
3
7620
by: Jean-Marc Blaise | last post by:
Hi, Is there any reason why a CREATE NICKNAME statement fails if the remote object is an ALIAS ? I actually have an ALIAS that is used to point to the correct table in the remote DB, and...
5
10074
by: Asphalt Blazer | last post by:
OS: AIX 5L, DB2 UDB v8.2 the nicknames are created like this create nickname <schema-name>.<tab-name for <remote-db-name>.<remote-schema-name>.<remote-tabname> The schema name is usually...
5
14461
by: Ben | last post by:
Hi! I need to refresh an entire database. I can recompile SPs with sp_recompile (or DBCC FLUSHPROCINDB), and refresh views with sp_refreshView, but I cannot find any way to refresh my...
13
3304
by: CindySue | last post by:
I have a table of providers that has a license number and fullname field, among others. Deman helped me with being able to enter a nickname and having it change to the fullname if a nickname exists...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.